Package org.apache.jackrabbit.rmi.server
Class ServerEventCollection.ServerEvent
- java.lang.Object
-
- java.rmi.server.RemoteObject
-
- java.rmi.server.RemoteServer
-
- java.rmi.server.UnicastRemoteObject
-
- org.apache.jackrabbit.rmi.server.ServerObject
-
- org.apache.jackrabbit.rmi.server.ServerEventCollection.ServerEvent
-
- All Implemented Interfaces:
Serializable
,Remote
,RemoteEventCollection.RemoteEvent
- Enclosing class:
- ServerEventCollection
public static class ServerEventCollection.ServerEvent extends ServerObject implements RemoteEventCollection.RemoteEvent
Server side implementation of theRemoteEventCollection.RemoteEvent
interface. Base class for remote adapters. The purpose of this class is to centralize the handling of the RemoteAdapterFactory instance used to instantiate new server adapters.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.rmi.server.RemoteObject
ref
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getDate()
Remote version of theEvent.getDate()
method.String
getIdentifier()
Remote version of theEvent.getIdentifier()
method.Map
getInfo()
Remote version of theEvent.getInfo()
method.String
getPath()
Remote version of theEvent.getPath()
method.int
getType()
Remote version of theEvent.getType()
method.String
getUserData()
Remote version of theEvent.getUserData()
method.String
getUserID()
Remote version of theEvent.getUserID()
method.-
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, exportObject, exportObject, unexportObject
-
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
-
-
-
-
Method Detail
-
getPath
public String getPath() throws RepositoryException
Remote version of theEvent.getPath()
method.- Specified by:
getPath
in interfaceRemoteEventCollection.RemoteEvent
- Returns:
- the absolute path associated with this event or
null
. - Throws:
RepositoryException
- on repository errors
-
getType
public int getType()
Remote version of theEvent.getType()
method.- Specified by:
getType
in interfaceRemoteEventCollection.RemoteEvent
- Returns:
- the type of this event.
-
getUserID
public String getUserID()
Remote version of theEvent.getUserID()
method.- Specified by:
getUserID
in interfaceRemoteEventCollection.RemoteEvent
- Returns:
- the user ID.
-
getIdentifier
public String getIdentifier() throws RepositoryException, RemoteException
Remote version of theEvent.getIdentifier()
method.- Specified by:
getIdentifier
in interfaceRemoteEventCollection.RemoteEvent
- Returns:
- the identifier associated with this event or
null
. - Throws:
RepositoryException
- on repository errorsRemoteException
- on RMI errors
-
getInfo
public Map getInfo() throws RepositoryException, RemoteException
Remote version of theEvent.getInfo()
method.- Specified by:
getInfo
in interfaceRemoteEventCollection.RemoteEvent
- Returns:
- A
Map
containing parameter information for instances of aNODE_MOVED
event. - Throws:
RepositoryException
- on repository errorsRemoteException
- on RMI errors
-
getUserData
public String getUserData() throws RepositoryException, RemoteException
Remote version of theEvent.getUserData()
method.- Specified by:
getUserData
in interfaceRemoteEventCollection.RemoteEvent
- Returns:
- The user data string.
- Throws:
RepositoryException
- on repository errorsRemoteException
- on RMI errors
-
getDate
public long getDate() throws RepositoryException, RemoteException
Remote version of theEvent.getDate()
method.- Specified by:
getDate
in interfaceRemoteEventCollection.RemoteEvent
- Returns:
- the date when the change was persisted that caused this event.
- Throws:
RepositoryException
- on repository errorsRemoteException
- on RMI errors
-
-