com.sun.spot.peripheral.radio
Class BasestationManager
java.lang.Object
com.sun.spot.peripheral.radio.BasestationManager
public class BasestationManager
- extends Object
BasestationManager
This class manages a basestation SPOT that is to be shared between two or more host processes. It should normally
be launched from ant scripts, for example
ant start-shared-basestation
or
ant -Dmulti.process.basestation.sharing=true run
If you're developing tools that need to launch this directly, then
new BasestationManager().start(false, false);
launches normally in the current VM.
Method Summary |
static void |
main(String[] strings)
Wrapper to allow launching from command line |
void |
start(boolean testOnly,
boolean dontCreateProxyMac_ForTesting)
Launch a BasestationManager |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CMD_DISCOVER
public static final byte CMD_DISCOVER
- See Also:
- Constant Field Values
BasestationManager
public BasestationManager()
main
public static void main(String[] strings)
throws IOException
- Wrapper to allow launching from command line
- Parameters:
strings
- array of strings, for non-test purposes, an empty array.
- Throws:
IOException
start
public void start(boolean testOnly,
boolean dontCreateProxyMac_ForTesting)
throws IOException
- Launch a BasestationManager
- Parameters:
testOnly
- true if only called to test correct creation of MAC layersdontCreateProxyMac_ForTesting
- true if testing does not require access to a SPOT basestation
- Throws:
IOException
Copyright © 2006, 2007 Sun Microsystems, Inc. All Rights Reserved.