|
SunSPOT API V6.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.spot.resources.Resource
com.sun.spot.service.BasicService
com.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, READY, 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 com.sun.spot.resources.Resource |
|---|
addTag, getTags, getTagValue, hasTag, removeTag |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.sun.spot.resources.IResource |
|---|
addTag, getTags, getTagValue, hasTag, removeTag |
| 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 IServicesetServiceName in class BasicServicewho - the name for this servicepublic void setEnabled(boolean enable)
setEnabled in interface IServicesetEnabled in class BasicServiceenable - true if the service should be started automatically on rebootpublic boolean stop()
stop in interface IServicestop in class BasicServicepublic boolean start()
start in interface IServicestart in class BasicServicepublic boolean resume()
resume in interface IServiceresume in class BasicServicepublic boolean pause()
pause in interface IServicepause in class BasicServicepublic boolean isRunning()
isRunning in interface IServiceisRunning in class BasicServicepublic int getStatus()
getStatus in interface IServicegetStatus in class BasicServicepublic String getName()
public String getServiceName()
getServiceName in interface IServicegetServiceName in class BasicServicepublic boolean getEnabled()
getEnabled in interface IServicegetEnabled in class BasicService
|
SunSPOT API V6.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||