org.mbari.siam.utils
Class NodeEventCallbackService
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
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
| Fields inherited from class java.rmi.server.RemoteObject |
ref |
|
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 |
NodeEventCallbackService
public NodeEventCallbackService()
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
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.