org.mbari.siam.moos.deployed
Class MOOSNodeService

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by org.mbari.siam.core.NodeService
                  extended by org.mbari.siam.moos.deployed.MOOSNodeService
All Implemented Interfaces:
java.io.Serializable, java.rmi.Remote, java.util.EventListener, PowerListener, MOOSNode, Node, RemoteService

public class MOOSNodeService
extends NodeService
implements MOOSNode, PowerListener

MOOSNodeService implements the MOOSNode interface, and manages multiple Devices (including Instruments).

Author:
Bob Herlien
See Also:
Serialized Form

Field Summary
protected  EnvironmentDiagnostics _diagnostics
           
protected  MOOSWDTManager _moosWDTManager
           
static java.lang.String WDT_FILENAME
           
 
Fields inherited from class org.mbari.siam.core.NodeService
_aggregator, _auxComms, _dateFormat, _leaseDuration, _leaseRenewalInterval, _networkManager, _nodeManager, _nodeProperties, _parentAddr, _parentHost, _portManager, _ports, _scratchProperties, _surfaceAddr, _turbinator, _typeFilters, _wdtStatus
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Fields inherited from interface org.mbari.siam.distributed.Node
SERVER_NAME
 
Method Summary
 void disableWDT()
           
 java.lang.String getDiagnosticsStatusSummary()
          Get the Status Summary from the Diagnostics
 DpaPortStatus[] getDpaPortStatus()
          Report status of all DPA ports
 DpaPortStatus getDpaPortStatus(byte[] pName)
          Get status of power port associated with specified comm port.
protected  Environmental getEnvironmental()
          Return Environmental service proxy.
 NodeInfo getNodeInfo()
          Get basic information about node and its subnodes
protected  void pingWDT(NodeSessionInfo sessionInfo)
           
 void quitApplication(int delaySec)
          Disables the watchdog timer.
 byte[] readWDT()
          Read watchdog timer (WDT) state
 byte[] renewWDT()
          Keep watchdog timer (WDT) from expiring
 void runDiagnostics(java.lang.String note)
          Run diagnostic procedure; called through Parent interface
 void wakeupAllNodes()
          Send signal to wakeup all nodes.
 void wakeupNode(java.net.InetAddress node)
          Send signal to wakeup specified node.
 
Methods inherited from class org.mbari.siam.core.NodeService
addEventCallback, addSchedule, annotate, cpuLease, enterSafeMode, enterSafeMode, establishLease, establishLease, exitApplication, exitApplication, failureDetected, getDevice, getDevice, getDevicePackets, getDevicePackets, getDevicePackets, getDevicePackets, getDevices, getDeviceService, getId, getLeases, getLocation, getMetadata, getName, getNetworkManager, getPortConfiguration, getPortDiagnostics, getPorts, getPowerSwitches, getProperties, getRemoteSerialPort, getRemoteSerialPort, getSchedule, getSchedule, getSchedule, getScheduleOwner, getStatus, getSubnodeObjects, getSubnodes, getWdtStatus, host, initialize, instrumentRegistryStatus, lookupService, notifyParent, notifyParentLinkConnected, notifyParentLinkDisconnecting, parentIsPrimary, ping, powerDownPort, powerOff, powerUpPort, readLog4jConfig, removeSchedule, removeSubnode, renewLease, renewLease, resetPortDiagnostics, restartService, resumeNormalMode, resumeSchedule, resumeService, runCommand, scanPort, scanPort, scanPorts, setBackups, setProperties, shoreLinkDownCallback, shoreLinkUpCallback, shutdown, shutdownDeviceService, shutdownDeviceService, shutdownServices, startComms, startSession, summarizing, suspendSchedule, suspendService, syncSchedule, terminateLease, terminateLease, terminateLease, terminateLeases, test, writePostExitScript
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.mbari.siam.distributed.Node
addEventCallback, addSchedule, annotate, cpuLease, enterSafeMode, enterSafeMode, establishLease, establishLease, exitApplication, exitApplication, getDevice, getDevice, getDevicePackets, getDevicePackets, getDevicePackets, getDevicePackets, getDevices, getId, getLeases, getLocation, getMetadata, getName, getPortConfiguration, getPorts, getPowerSwitches, getProperties, getRemoteSerialPort, getRemoteSerialPort, getSchedule, getSchedule, getSchedule, getStatus, getSubnodeObjects, getSubnodes, host, initialize, instrumentRegistryStatus, lookupService, powerDownPort, powerOff, powerUpPort, readLog4jConfig, removeSchedule, removeSubnode, renewLease, renewLease, restartService, resumeNormalMode, resumeSchedule, resumeService, runCommand, scanPort, scanPort, scanPorts, setProperties, shoreLinkDownCallback, shoreLinkUpCallback, shutdownDeviceService, startSession, summarizing, suspendSchedule, suspendService, syncSchedule, terminateLease, terminateLease, terminateLeases, test
 
Methods inherited from interface org.mbari.siam.distributed.RemoteService
ping
 
Methods inherited from interface org.mbari.siam.core.PowerListener
failureDetected, shutdown
 

Field Detail

WDT_FILENAME

public static final java.lang.String WDT_FILENAME
See Also:
Constant Field Values

_diagnostics

protected EnvironmentDiagnostics _diagnostics

_moosWDTManager

protected MOOSWDTManager _moosWDTManager
Method Detail

getEnvironmental

protected Environmental getEnvironmental()
                                  throws DeviceNotFound
Return Environmental service proxy. Throws DeviceNotFound if environmental service is not found.

Throws:
DeviceNotFound

runDiagnostics

public void runDiagnostics(java.lang.String note)
                    throws java.lang.Exception
Run diagnostic procedure; called through Parent interface

Overrides:
runDiagnostics in class NodeService
Throws:
java.lang.Exception

getDiagnosticsStatusSummary

public java.lang.String getDiagnosticsStatusSummary()
Get the Status Summary from the Diagnostics

Overrides:
getDiagnosticsStatusSummary in class NodeService

getNodeInfo

public NodeInfo getNodeInfo()
                     throws java.lang.Exception,
                            java.rmi.RemoteException
Get basic information about node and its subnodes

Specified by:
getNodeInfo in interface Node
Overrides:
getNodeInfo in class NodeService
Throws:
java.lang.Exception
java.rmi.RemoteException

quitApplication

public void quitApplication(int delaySec)
                     throws java.rmi.RemoteException
Disables the watchdog timer.

Overrides:
quitApplication in class NodeService
Throws:
java.rmi.RemoteException

disableWDT

public void disableWDT()

pingWDT

protected void pingWDT(NodeSessionInfo sessionInfo)
Overrides:
pingWDT in class NodeService

getDpaPortStatus

public DpaPortStatus getDpaPortStatus(byte[] pName)
                               throws NotSupportedException,
                                      DeviceNotFound
Get status of power port associated with specified comm port. Throws NotSupportedException if no power port is associated with specified comm port.

Specified by:
getDpaPortStatus in interface MOOSNode
Throws:
NotSupportedException
DeviceNotFound

getDpaPortStatus

public DpaPortStatus[] getDpaPortStatus()
Report status of all DPA ports

Specified by:
getDpaPortStatus in interface MOOSNode

renewWDT

public byte[] renewWDT()
                throws java.rmi.RemoteException,
                       java.io.IOException,
                       java.io.FileNotFoundException
Keep watchdog timer (WDT) from expiring

Specified by:
renewWDT in interface MOOSNode
Throws:
java.rmi.RemoteException
java.io.IOException
java.io.FileNotFoundException

readWDT

public byte[] readWDT()
               throws java.rmi.RemoteException,
                      java.io.IOException,
                      java.io.FileNotFoundException
Read watchdog timer (WDT) state

Specified by:
readWDT in interface MOOSNode
Throws:
java.rmi.RemoteException
java.io.IOException
java.io.FileNotFoundException

wakeupNode

public void wakeupNode(java.net.InetAddress node)
                throws java.io.IOException
Send signal to wakeup specified node.

Specified by:
wakeupNode in interface MOOSNode
Throws:
java.io.IOException

wakeupAllNodes

public void wakeupAllNodes()
                    throws java.io.IOException
Send signal to wakeup all nodes.

Specified by:
wakeupAllNodes in interface MOOSNode
Throws:
java.io.IOException


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.