|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.spot.networktools.NetManagementServer
public class NetManagementServer
A daemon that responds to network management requests
Field Summary | |
---|---|
static int |
NET_MANAGEMENT_SERVER_PORT
default port number for this service |
static String |
systemProperty
the spot property that enables this server |
Fields inherited from interface com.sun.spot.service.IService |
---|
PAUSED, PAUSING, RESUMING, RUNNING, STARTING, STOPPED, STOPPING |
Constructor Summary | |
---|---|
protected |
NetManagementServer()
A server for creating and answering network management related requests |
Method Summary | |
---|---|
boolean |
getEnabled()
Return whether service is started automatically on reboot. |
String |
getName()
Return the name of this service. |
static IService |
getNetManagementServer()
create and return the NetManagementServer singleton |
String |
getServiceName()
return the name of the NetManagementServer |
int |
getStatus()
Return the current status of this service. |
boolean |
isRunning()
Return whether the service is currently running. |
static void |
main(String[] args)
|
boolean |
pause()
Pause the service, and return whether successful. |
static String |
requestRoute(long src,
long dst)
retrieve route information to a destination from a remote node |
static LowPanStats |
requestStats(long target)
Retrieve LowPan statistics from a remote node |
boolean |
resume()
Resume the service, and return whether successful. |
void |
run()
main execution thread of this server |
void |
setEnabled(boolean enable)
Enable/disable whether service is started automatically. |
void |
setServiceName(String who)
Assign a name to this service. |
boolean |
start()
Start the service, and return whether successful. |
boolean |
stop()
Stop the service, and return whether successful. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String systemProperty
public static final int NET_MANAGEMENT_SERVER_PORT
Constructor Detail |
---|
protected NetManagementServer()
Method Detail |
---|
public static void main(String[] args)
public static IService getNetManagementServer()
public static String requestRoute(long src, long dst)
src
- the node to be queried for informationdst
- the address of the route destination of interest
public static LowPanStats requestStats(long target)
target
- address of the target node
public void run()
run
in interface Runnable
Thread.run()
public void setServiceName(String who)
setServiceName
in interface IService
who
- the name for this servicepublic void setEnabled(boolean enable)
setEnabled
in interface IService
enable
- true if the service should be started automatically on rebootpublic boolean stop()
stop
in interface IService
public boolean start()
start
in interface IService
public boolean resume()
resume
in interface IService
public boolean pause()
pause
in interface IService
public boolean isRunning()
isRunning
in interface IService
public int getStatus()
getStatus
in interface IService
public String getName()
public String getServiceName()
getServiceName
in interface IService
public boolean getEnabled()
getEnabled
in interface IService
|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |