org.mbari.siam.utils
Class NodeEventCallbackService

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.utils.NodeEventCallbackService
All Implemented Interfaces:
java.io.Serializable, java.rmi.Remote, NodeEventCallback

public class NodeEventCallbackService
extends java.rmi.server.UnicastRemoteObject
implements NodeEventCallback

Remote NodeService invokes NodeEventCallbackService methods when significant node events are detected; NodeEventCallbackService then notifies local NodeEventListeners.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
NodeEventCallbackService()
           
 
Method Summary
 void addListener(NodeEventListener listener)
          Add a NodeEventListener, which will be notified on events of interest.
 void serviceChanged(long deviceID)
          Called by Node when a service changes state
 void serviceStarted(long deviceID)
          Called by Node when a service is started.
 void serviceTerminated(long deviceID)
          Called by Node when a service is terminated.
 
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
 

Constructor Detail

NodeEventCallbackService

public NodeEventCallbackService()
                         throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException
Method Detail

serviceTerminated

public void serviceTerminated(long deviceID)
                       throws java.rmi.RemoteException
Called by Node when a service is terminated.

Specified by:
serviceTerminated in interface NodeEventCallback
Throws:
java.rmi.RemoteException

serviceStarted

public void serviceStarted(long deviceID)
                    throws java.rmi.RemoteException
Called by Node when a service is started.

Specified by:
serviceStarted in interface NodeEventCallback
Throws:
java.rmi.RemoteException

serviceChanged

public void serviceChanged(long deviceID)
                    throws java.rmi.RemoteException
Called by Node when a service changes state

Specified by:
serviceChanged in interface NodeEventCallback
Throws:
java.rmi.RemoteException

addListener

public void addListener(NodeEventListener listener)
Add a NodeEventListener, which will be notified on events of interest.



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.