|
SunSPOT host API V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.spot.peripheral.radio.BasestationManager
public class BasestationManager
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.
| Nested Class Summary | |
|---|---|
static class |
BasestationManager.DiscoverResult
The result of discovering a shared basestation |
| Field Summary | |
|---|---|
static byte |
CMD_DISCOVER
|
| Constructor Summary | |
|---|---|
BasestationManager()
|
|
| Method Summary | |
|---|---|
static BasestationManager.DiscoverResult[] |
discover()
Discover all shared basestations |
static BasestationManager.DiscoverResult[] |
discover(String requiredHostIP,
String requiredCommsPort,
boolean stopAfterFirstReply)
Discover shared basestations that match the specified host and port |
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 |
| Field Detail |
|---|
public static final byte CMD_DISCOVER
| Constructor Detail |
|---|
public BasestationManager()
| Method Detail |
|---|
public static void main(String[] strings)
throws IOException
strings - array of strings, for non-test purposes, an empty array.
IOException
public void start(boolean testOnly,
boolean dontCreateProxyMac_ForTesting)
throws IOException
testOnly - true if only called to test correct creation of MAC layersdontCreateProxyMac_ForTesting - true if testing does not require access to a SPOT basestation
IOException
public static BasestationManager.DiscoverResult[] discover()
throws IOException
IOException
public static BasestationManager.DiscoverResult[] discover(String requiredHostIP,
String requiredCommsPort,
boolean stopAfterFirstReply)
throws IOException
requiredHostIP - the IP of the host on which the basestation manager is running, or null if you don't carerequiredCommsPort - the port name of the comms port to which the actual basestation is connected, or null if you don't carestopAfterFirstReply - if true then only return one result
IOException
|
SunSPOT host API V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||