|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.observation.ObservationManagerImpl
public class ObservationManagerImpl
Each Session instance has its own ObservationManager
instance. The class SessionLocalObservationManager implements
this behaviour.
| Constructor Summary | |
|---|---|
ObservationManagerImpl(ObservationDispatcher dispatcher,
SessionImpl session,
ItemManager itemMgr,
ClusterNode clusterNode)
Creates an ObservationManager instance. |
|
| Method Summary | |
|---|---|
void |
addEventListener(EventListener listener,
int eventTypes,
String absPath,
boolean isDeep,
String[] uuid,
String[] nodeTypeName,
boolean noLocal)
|
EventFilter |
createEventFilter(int eventTypes,
String absPath,
boolean isDeep,
String[] uuid,
String[] nodeTypeName,
boolean noLocal)
Creates a new event filter with the given restrictions. |
EventStateCollection |
createEventStateCollection()
Creates an EventStateCollection. |
void |
dispose()
Unregisters all EventListeners. |
EventJournal |
getEventJournal()
Returns an unfiltered event journal for this workspace. |
EventJournal |
getEventJournal(int eventTypes,
String absPath,
boolean isDeep,
String[] uuid,
String[] nodeTypeName)
Returns the event journal for this workspace. |
EventListenerIterator |
getRegisteredEventListeners()
|
void |
removeEventListener(EventListener listener)
|
void |
setUserData(String userData)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ObservationManagerImpl(ObservationDispatcher dispatcher,
SessionImpl session,
ItemManager itemMgr,
ClusterNode clusterNode)
ObservationManager instance.
dispatcher - observation dispatchersession - the Session this ObservationManager
belongs to.itemMgr - ItemManager of the passed
Session.
NullPointerException - if dispatcher, session
or itemMgr is null.| Method Detail |
|---|
public void addEventListener(EventListener listener,
int eventTypes,
String absPath,
boolean isDeep,
String[] uuid,
String[] nodeTypeName,
boolean noLocal)
throws RepositoryException
addEventListener in interface ObservationManagerRepositoryException
public void removeEventListener(EventListener listener)
throws RepositoryException
removeEventListener in interface ObservationManagerRepositoryException
public EventListenerIterator getRegisteredEventListeners()
throws RepositoryException
getRegisteredEventListeners in interface ObservationManagerRepositoryException
public void setUserData(String userData)
throws RepositoryException
setUserData in interface ObservationManagerRepositoryExceptionpublic void dispose()
public EventFilter createEventFilter(int eventTypes,
String absPath,
boolean isDeep,
String[] uuid,
String[] nodeTypeName,
boolean noLocal)
throws RepositoryException
eventTypes - A combination of one or more event type constants encoded as a bitmask.absPath - an absolute path.isDeep - a boolean.uuid - array of UUIDs.nodeTypeName - array of node type names.noLocal - a boolean.
RepositoryException - if an error occurs.
public EventJournal getEventJournal(int eventTypes,
String absPath,
boolean isDeep,
String[] uuid,
String[] nodeTypeName)
throws RepositoryException
getEventJournal in interface ObservationManagereventTypes - A combination of one or more event type constants encoded as a bitmask.absPath - an absolute path.isDeep - a boolean.uuid - array of UUIDs.nodeTypeName - array of node type names.
UnsupportedRepositoryOperationException - if this repository does
not support an event journal (cluster journal disabled).
RepositoryException - if another error occurs.ObservationManager.getEventJournal(int, String, boolean, String[], String[])
public EventJournal getEventJournal()
throws RepositoryException
getEventJournal in interface ObservationManagerUnsupportedRepositoryOperationException - if this repository does
not support an event journal (cluster journal disabled).
RepositoryException - if another error occurs.public EventStateCollection createEventStateCollection()
EventStateCollection.
Creates an EventStateCollection tied to the session
which is attached to this ObservationManager instance.
createEventStateCollection in interface EventStateCollectionFactoryEventStateCollection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||