org.apache.jackrabbit.rmi.server
Class ServerEventCollection

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

public class ServerEventCollection
extends ServerObject
implements RemoteEventCollection

The ServerEventCollection class implements 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.

See Also:
Serialized Form

Nested Class Summary
static class ServerEventCollection.ServerEvent
          Server side implementation of the RemoteEvent interface.
 
Nested classes/interfaces inherited from interface 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, getSerialValue, getSerialValues
 
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-2010 The Apache Software Foundation. All Rights Reserved.