public class ClientObservationManager extends ClientObject implements ObservationManager
ClientObservationManager
class
This class uses an instance of the
ClientEventPoll
class for the
actual registration and event dispatching.
This class does not require the
LocalAdapterFactory
and consequently
calls the base class constructor with a null
factory.
See the observation
package comment for a description on how event listener registration and
notification is implemented.
ClientEventPoll
Constructor and Description |
---|
ClientObservationManager(Workspace workspace,
RemoteObservationManager remote)
Creates an instance of this class talking to the given remote observation
manager.
|
Modifier and Type | Method and Description |
---|---|
void |
addEventListener(EventListener listener,
int eventTypes,
String absPath,
boolean isDeep,
String[] uuid,
String[] nodeTypeName,
boolean noLocal) |
EventJournal |
getEventJournal() |
EventJournal |
getEventJournal(int eventTypes,
String absPath,
boolean isDeep,
String[] uuid,
String[] nodeTypeName) |
EventListenerIterator |
getRegisteredEventListeners() |
void |
removeEventListener(EventListener listener) |
void |
setUserData(String userData) |
getFactory, getItem, getNode, getNodeTypeArray
public ClientObservationManager(Workspace workspace, RemoteObservationManager remote)
remote
- The RemoteObservationManager
backing this
client-side observation manager.workspace
- The Workspace
instance to which this
observation manager belongs.public void addEventListener(EventListener listener, int eventTypes, String absPath, boolean isDeep, String[] uuid, String[] nodeTypeName, boolean noLocal) throws RepositoryException
addEventListener
in interface ObservationManager
RepositoryException
public void removeEventListener(EventListener listener) throws RepositoryException
removeEventListener
in interface ObservationManager
RepositoryException
public EventListenerIterator getRegisteredEventListeners()
getRegisteredEventListeners
in interface ObservationManager
public EventJournal getEventJournal() throws RepositoryException
getEventJournal
in interface ObservationManager
RepositoryException
public EventJournal getEventJournal(int eventTypes, String absPath, boolean isDeep, String[] uuid, String[] nodeTypeName) throws RepositoryException
getEventJournal
in interface ObservationManager
RepositoryException
public void setUserData(String userData) throws RepositoryException
setUserData
in interface ObservationManager
RepositoryException
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.