LDAP Classes
Implements Java LDAP

com.novell.ldap.events
Class LDAPEventSource.EventsGenerator

java.lang.Object
  extended byjava.lang.Thread
      extended bycom.novell.ldap.events.LDAPEventSource.EventsGenerator
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
LDAPEventSource

protected class LDAPEventSource.EventsGenerator
extends java.lang.Thread

This inner Thread is used to notify the Registered Listener when an LDAPResponse occurs.


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
LDAPEventSource.EventsGenerator(LDAPEventSource aeventsource, LDAPMessageQueue queue, LDAPEventListener listener, LDAPConnection aconnection, int amessageid)
          Default Constructor for EventGenerator.
 
Method Summary
protected  void processmessage(LDAPMessage response)
          Processes the Message Receive on the queue.
 void run()
          Waits for the Messages on the Queue and notifies the Listener of the same.
 void stopEventGeneration()
          Stop the Persistence Search Events Generation by abandoning the Search Request.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LDAPEventSource.EventsGenerator

public LDAPEventSource.EventsGenerator(LDAPEventSource aeventsource,
                                       LDAPMessageQueue queue,
                                       LDAPEventListener listener,
                                       LDAPConnection aconnection,
                                       int amessageid)
Default Constructor for EventGenerator.

Parameters:
aeventsource - The Source Object which is required for LDAPEvents generation.
queue - LDAPSearchqueue which contains the LDAPResponse objects.
listener - LDAPEventListener which needs to be notified of the events.
aconnection - LDAPConnection used to create this searchqueue.
amessageid - LDAPMessage Id for the message send. events.
Method Detail

run

public final void run()
Waits for the Messages on the Queue and notifies the Listener of the same.

See Also:
Runnable.run()

processmessage

protected void processmessage(LDAPMessage response)
Processes the Message Receive on the queue. This method actually sends the notification to the LDAPEventListener.

Parameters:
response -

stopEventGeneration

public final void stopEventGeneration()
                               throws LDAPException
Stop the Persistence Search Events Generation by abandoning the Search Request.

Throws:
LDAPException - When Cancelling of LDAPConnection Fails.

LDAP Classes
Implements Java LDAP

Copyright © 2002 Novell, Inc. All Rights Reserved.
Novell, Inc.
1800 South Novell Place
Provo, Ut 84606
Phone: (801) 861-5000