org.apache.jackrabbit.rmi.client
Class ClientObservationManager

java.lang.Object
  extended by org.apache.jackrabbit.rmi.client.ClientObject
      extended by org.apache.jackrabbit.rmi.client.ClientObservationManager
All Implemented Interfaces:
ObservationManager

public class ClientObservationManager
extends ClientObject
implements ObservationManager

The 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.

See Also:
ClientEventPoll

Constructor Summary
ClientObservationManager(Workspace workspace, RemoteObservationManager remote)
          Creates an instance of this class talking to the given remote observation manager.
 
Method Summary
 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)
           
 
Methods inherited from class org.apache.jackrabbit.rmi.client.ClientObject
getFactory, getItem, getNode, getNodeTypeArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientObservationManager

public ClientObservationManager(Workspace workspace,
                                RemoteObservationManager remote)
Creates an instance of this class talking to the given remote observation manager.

Parameters:
remote - The RemoteObservationManager backing this client-side observation manager.
workspace - The Workspace instance to which this observation manager belongs.
Method Detail

addEventListener

public void addEventListener(EventListener listener,
                             int eventTypes,
                             String absPath,
                             boolean isDeep,
                             String[] uuid,
                             String[] nodeTypeName,
                             boolean noLocal)
                      throws RepositoryException

Specified by:
addEventListener in interface ObservationManager
Throws:
RepositoryException

removeEventListener

public void removeEventListener(EventListener listener)
                         throws RepositoryException

Specified by:
removeEventListener in interface ObservationManager
Throws:
RepositoryException

getRegisteredEventListeners

public EventListenerIterator getRegisteredEventListeners()

Specified by:
getRegisteredEventListeners in interface ObservationManager

getEventJournal

public EventJournal getEventJournal()
                             throws RepositoryException
Specified by:
getEventJournal in interface ObservationManager
Throws:
RepositoryException

getEventJournal

public EventJournal getEventJournal(int eventTypes,
                                    String absPath,
                                    boolean isDeep,
                                    String[] uuid,
                                    String[] nodeTypeName)
                             throws RepositoryException
Specified by:
getEventJournal in interface ObservationManager
Throws:
RepositoryException

setUserData

public void setUserData(String userData)
                 throws RepositoryException
Specified by:
setUserData in interface ObservationManager
Throws:
RepositoryException


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.