org.apache.jackrabbit.rmi.server
Class ServerEventCollection

java.lang.Object
  extended byjava.rmi.server.RemoteObject
      extended byjava.rmi.server.RemoteServer
          extended byjava.rmi.server.UnicastRemoteObject
              extended byorg.apache.jackrabbit.rmi.server.ServerObject
                  extended byorg.apache.jackrabbit.rmi.server.ServerEventCollection
All Implemented Interfaces:
Remote, RemoteEventCollection, Serializable

public class ServerEventCollection
extends ServerObject
implements RemoteEventCollection

The ServerEventCollection class implemnts the RemoteEventCollectionevent to actually sent the server-side event to the client.

This class does not directly relate to any JCR class because beside the list of events the unique identifier of the client-side listener has to be provided such that the receiving listener may be identified on the client-side.

This class does not require the RemoteAdapterFactoryand consequently calls the base class constructor with a null factory.

Author:
Felix Meschberger
See Also:
Serialized Form

Nested Class Summary
static class ServerEventCollection.ServerEvent
          Server side implementation of the RemoteEvent interface.
 
Nested classes inherited from class org.apache.jackrabbit.rmi.remote.RemoteEventCollection
RemoteEventCollection.RemoteEvent
 
Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Method Summary
 RemoteEventCollection.RemoteEvent[] getEvents()
          Returns the list of events to be sent to the client-side listener identified by RemoteEventCollection.getListenerId().
 long getListenerId()
          Returns unique identifier of the client-side listener to which the enclosed events should be sent.
 
Methods inherited from class org.apache.jackrabbit.rmi.server.ServerObject
getFactory, getRemoteItem, getRemoteNode, getRemoteNodeTypeArray, getRepositoryException
 
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
 

Method Detail

getListenerId

public long getListenerId()
Returns unique identifier of the client-side listener to which the enclosed events should be sent.

Specified by:
getListenerId in interface RemoteEventCollection
Returns:
unique listener identifier

getEvents

public RemoteEventCollection.RemoteEvent[] getEvents()
Returns the list of events to be sent to the client-side listener identified by RemoteEventCollection.getListenerId().

Specified by:
getEvents in interface RemoteEventCollection
Returns:
list of events


Copyright © 2004-2006 . All Rights Reserved.