com.netscape.jndi.ldap
Class EventService

java.lang.Object
  extended bycom.netscape.jndi.ldap.EventService
All Implemented Interfaces:
java.lang.Runnable

class EventService
extends java.lang.Object
implements java.lang.Runnable

Event Service monitors changes on the server Implemented with the persistent search control. Uses ldapjdk asynchronous interfaces so that multiple search requests can be processed by a single thread


Field Summary
(package private)  java.util.Vector m_eventList
           
(package private)  LdapService m_ldapSvc
           
(package private)  java.lang.Thread m_monitorThread
           
(package private)  LDAPSearchListener m_msgQueue
           
 
Constructor Summary
EventService(LdapService ldapSvc)
          Constructor
 
Method Summary
(package private)  void addListener(LdapContextImpl ctx, java.lang.String name, java.lang.String filter, javax.naming.directory.SearchControls jndiCtrls, javax.naming.event.NamingListener l)
          Add change event listener
(package private)  void removeListener(javax.naming.event.NamingListener listener)
          Remove change event listener
 void run()
          Main monitor thread loop.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_ldapSvc

LdapService m_ldapSvc

m_eventList

java.util.Vector m_eventList

m_monitorThread

java.lang.Thread m_monitorThread

m_msgQueue

LDAPSearchListener m_msgQueue
Constructor Detail

EventService

public EventService(LdapService ldapSvc)
Constructor

Method Detail

addListener

void addListener(LdapContextImpl ctx,
                 java.lang.String name,
                 java.lang.String filter,
                 javax.naming.directory.SearchControls jndiCtrls,
                 javax.naming.event.NamingListener l)
           throws javax.naming.NamingException
Add change event listener

Throws:
javax.naming.NamingException

removeListener

void removeListener(javax.naming.event.NamingListener listener)
              throws javax.naming.NamingException
Remove change event listener

Throws:
javax.naming.NamingException

run

public void run()
Main monitor thread loop. Wait for persistent search change notifications

Specified by:
run in interface java.lang.Runnable