|
SunSPOT API V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.spot.networktools.NetManagementServer
public class NetManagementServer
A daemon that responds to network management requests
| Field Summary | |
|---|---|
static int |
NET_MANAGEMENT_RECEIVE_PORT
|
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 RouteTable |
requestRouteTable(long target)
Retrieve Route Table 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
public static final int NET_MANAGEMENT_RECEIVE_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 RouteTable requestRouteTable(long target)
target - address of the target node
public static LowPanStats requestStats(long target)
target - address of the target node
public void run()
run in interface RunnableThread.run()public void setServiceName(String who)
setServiceName in interface IServicewho - the name for this servicepublic void setEnabled(boolean enable)
setEnabled in interface IServiceenable - true if the service should be started automatically on rebootpublic boolean stop()
stop in interface IServicepublic boolean start()
start in interface IServicepublic boolean resume()
resume in interface IServicepublic boolean pause()
pause in interface IServicepublic boolean isRunning()
isRunning in interface IServicepublic int getStatus()
getStatus in interface IServicepublic String getName()
public String getServiceName()
getServiceName in interface IServicepublic boolean getEnabled()
getEnabled in interface IService
|
SunSPOT API V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||