edu.uci.isr.yancees.server.rmi
Class RemoteAbstractSubscriberImplementation
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
edu.uci.isr.yancees.server.rmi.RemoteAbstractSubscriberImplementation
- All Implemented Interfaces:
- RemoteSubscriberInterface, java.io.Serializable, java.rmi.Remote
- Direct Known Subclasses:
- YanceesRMIClient.SubscriberMediator
public abstract class RemoteAbstractSubscriberImplementation
- extends java.rmi.server.UnicastRemoteObject
- implements RemoteSubscriberInterface
This class provides the common functionality for a remote subscriber in the
yancees framework. It provides a remote callback interface to receive events
coming from the yancees remote server. This is a convenience class.
It can be extended in order to implement custom subscribers.
It provides all necessary RMI initializations.
- See Also:
- Serialized Form
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Method Summary |
abstract void |
notify(EventInterface evt)
Receives notification from the remote server. |
abstract void |
notify(EventInterface[] evtList)
Receives notification from the remote server. |
void |
notifyBuffer(java.lang.Object[] objList)
Receives a buffer of single event notifications (not patterns), from the
RMI Yancees server. |
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 |
RemoteAbstractSubscriberImplementation
public RemoteAbstractSubscriberImplementation()
throws java.rmi.RemoteException
- Initialized this remote interface and registers it with the localhost
rmiregistry
- Throws:
java.rmi.RemoteException
notify
public abstract void notify(EventInterface evt)
throws java.rmi.RemoteException
- Receives notification from the remote server.
- Specified by:
notify
in interface RemoteSubscriberInterface
- Parameters:
evt
- is an event container (text or DOM parsed XML)
- Throws:
java.rmi.RemoteException
- in case of connection errors.
notify
public abstract void notify(EventInterface[] evtList)
throws java.rmi.RemoteException
- Receives notification from the remote server.
- Specified by:
notify
in interface RemoteSubscriberInterface
- Parameters:
evtList
- is a list event containers (text or DOM parsed XML)
- Throws:
java.rmi.RemoteException
- in case of connection errors.
notifyBuffer
public void notifyBuffer(java.lang.Object[] objList)
throws java.rmi.RemoteException
- Receives a buffer of single event notifications (not patterns), from the
RMI Yancees server. We need to deserialize them here.
- Specified by:
notifyBuffer
in interface RemoteSubscriberInterface
- Throws:
java.rmi.RemoteException