|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.mbari.siam.core.NodeManager
public class NodeManager
NodeManager implements node functionality, and instantiates component objects including NodeService, PortManager, etc.
| Field Summary | |
|---|---|
protected java.lang.String |
_cfgFile
|
protected java.util.Vector |
_eventCallbacks
|
protected FilteredDeviceLogIF |
_log
|
protected java.net.InetAddress |
_networkSwitchAddress
|
protected NodeConfigurator |
_nodeConfigurator
|
protected long |
_nodeID
|
protected NodeProperties |
_nodeProperties
|
protected NodeService |
_nodeService
|
protected long |
_nodeStartTime
|
protected PortManager |
_portManager
|
protected java.lang.String |
_siamHome
|
protected SleepManager |
_sleepManager
|
protected static NodeManager |
_theNodeManager
|
protected WDTManager |
_wdtManager
|
protected static java.lang.String |
DISK_SPACE_USAGE_CMD
|
protected static java.lang.String |
GET_MAC_ADDRESS_CMD
|
protected static java.lang.String |
GLOBALSTAR_STATUS_CMD
|
protected static java.lang.String |
OPTICAL_STATUS_CMD
|
protected static java.lang.String |
PPP_STATUS_CMD
|
protected static java.lang.String |
RFIO_STATUS_CMD
|
| Method Summary | |
|---|---|
void |
addEventCallback(NodeEventCallback callback)
Add a remote callback to the to-be-notified list. |
protected long |
getId()
Return ISI ID of node. |
static NodeManager |
getInstance()
Method to get singleton instance. |
static NodeManager |
getInstance(NodeConfigurator configurator)
Method to get singleton instance. |
Location |
getLocation(long deviceID)
Return the location of the requested ISI ID. |
java.net.InetAddress |
getNetworkSwitchAddress()
Return Network Switch Inet Address |
NodeConfigurator |
getNodeConfigurator()
Return NodeConfigurator. |
protected NodeProperties |
getNodeProperties()
Return node properties. |
NodeService |
getNodeService()
Return NodeService singleton. |
long |
getNodeStartTime()
Return Node start time |
long |
getParentId()
Return the ISI ID of this node. |
PortManager |
getPortManager()
Return PortManager singleton. |
protected java.lang.String |
getSiamHome()
Return SIAM home directory. |
java.lang.String |
getSleepSummary()
Return summary of sleep manager operations. |
java.lang.String |
getSoftwareVersion()
Return software version information. |
protected java.lang.String |
getStatus(boolean logPackets)
Get status of various node subsystems, and return string representation; log status packets if 'logPackets' is true. |
void |
logMessage(java.lang.String message)
Write a message packet to the Node log. |
protected void |
logNodeConfiguration(java.lang.String prefix)
Log the current instrument list, etc. |
protected void |
logPacket(DevicePacket packet)
Write a DevicePacket to the Node log, and publish the LogSampleServiceEvent |
boolean |
powerAvailable(int milliamp)
Request power from the parent; return true if available, false if not available. |
void |
publish(java.util.EventObject event)
Publish the specified event. |
void |
runDiagnostics(java.lang.String note)
Run diagnostic procedure; called through Parent interface |
void |
serviceInstalled(ServiceEvent event)
Action performed when service installed |
void |
serviceRemoved(ServiceEvent event)
Action performed when service removed |
void |
serviceRequestComplete(ServiceEvent e)
Action performed when service request complete |
void |
serviceSampleLogged(LogSampleServiceEvent e)
|
void |
start(java.lang.String name,
java.lang.String portalHost)
Start the NodeManager. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.lang.String RFIO_STATUS_CMD
protected static final java.lang.String GLOBALSTAR_STATUS_CMD
protected static final java.lang.String GET_MAC_ADDRESS_CMD
protected static final java.lang.String PPP_STATUS_CMD
protected static final java.lang.String OPTICAL_STATUS_CMD
protected static final java.lang.String DISK_SPACE_USAGE_CMD
protected long _nodeID
protected NodeConfigurator _nodeConfigurator
protected PortManager _portManager
protected NodeService _nodeService
protected SleepManager _sleepManager
protected WDTManager _wdtManager
protected static NodeManager _theNodeManager
protected NodeProperties _nodeProperties
protected java.lang.String _siamHome
protected FilteredDeviceLogIF _log
protected java.util.Vector _eventCallbacks
protected java.net.InetAddress _networkSwitchAddress
protected long _nodeStartTime
protected java.lang.String _cfgFile
| Method Detail |
|---|
public static NodeManager getInstance(NodeConfigurator configurator)
public static NodeManager getInstance()
public void start(java.lang.String name,
java.lang.String portalHost)
throws java.io.IOException,
InvalidPropertyException,
MissingPropertyException
java.io.IOException
InvalidPropertyException
MissingPropertyExceptionprotected long getId()
protected NodeProperties getNodeProperties()
protected java.lang.String getSiamHome()
throws MissingPropertyException
MissingPropertyExceptionprotected void logPacket(DevicePacket packet)
public void logMessage(java.lang.String message)
public PortManager getPortManager()
public NodeService getNodeService()
public NodeConfigurator getNodeConfigurator()
protected void logNodeConfiguration(java.lang.String prefix)
public void addEventCallback(NodeEventCallback callback)
public void serviceInstalled(ServiceEvent event)
ServiceListener
serviceInstalled in interface ServiceListenerpublic void serviceRemoved(ServiceEvent event)
ServiceListener
serviceRemoved in interface ServiceListenerpublic void serviceRequestComplete(ServiceEvent e)
ServiceListener
serviceRequestComplete in interface ServiceListenerpublic void serviceSampleLogged(LogSampleServiceEvent e)
public java.lang.String getSleepSummary()
public long getParentId()
getParentId in interface Parentpublic Location getLocation(long deviceID)
getLocation in interface Parent
public void runDiagnostics(java.lang.String note)
throws java.lang.Exception
runDiagnostics in interface Parentjava.lang.Exceptionpublic java.lang.String getSoftwareVersion()
getSoftwareVersion in interface Parentpublic long getNodeStartTime()
public java.net.InetAddress getNetworkSwitchAddress()
public void publish(java.util.EventObject event)
publish in interface Parent
protected java.lang.String getStatus(boolean logPackets)
throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic boolean powerAvailable(int milliamp)
powerAvailable in interface Parent
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||