|
LDAP Classes Implements Java LDAP |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.novell.ldap.events.LDAPEventSource
The base Class which is used by all Ldap Event Generator. This class is defined abstract so that it cannot be used directly. But it needs to be subclassed to define a EventSource which can also classify events.Since Event Classification is not handled completely in this class.
Nested Class Summary | |
protected class |
LDAPEventSource.EventsGenerator
This inner Thread is used to notify the Registered Listener when an LDAPResponse occurs. |
Constructor Summary | |
LDAPEventSource()
|
Method Summary | |
protected LDAPEventSource.EventsGenerator |
createListeningThread(LDAPMessageQueue queue,
LDAPConnection conn,
LDAPEventListener alistener,
int msgid,
LDAPEventSource source)
This method creates the instance of EventsGenerator Thread, which transforms the ldapresponse received into events. |
long |
getSleepTime()
This method returns the time to sleep (or wait) between two calls to check the ldap message queue for response. |
protected void |
pollforevents(LDAPMessageQueue queue,
LDAPConnection conn,
LDAPEventListener alistener,
int msgid,
LDAPEventSource source)
This method is to register for LDAPEvents generated from a specific LDAPMessageQueue. |
void |
setSleepTime(long l)
This method is used to set the time(in milliseconds) to sleep between two calls to check the ldap messsage queue for response. |
protected void |
stopeventpolling(LDAPEventListener alistener)
Stops and removes the polling Thread for this listener from receiving LDAP events fired by this class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LDAPEventSource()
Method Detail |
protected void stopeventpolling(LDAPEventListener alistener) throws LDAPException
alistener
- Removes the listener from receiving the events
fired by this LDAPEventSource.
LDAPException
- If problem is encountered while removing the
listener.protected void pollforevents(LDAPMessageQueue queue, LDAPConnection conn, LDAPEventListener alistener, int msgid, LDAPEventSource source)
queue
- LDAPMessageQueue for checking the events.conn
- LDAPConnection used to create this MessageQueue ,
required to abandon the message.alistener
- The listener which would get the event.msgid
- The message id for the Message send.source
- The object which would be used as for LDAPEvents
Generated.protected LDAPEventSource.EventsGenerator createListeningThread(LDAPMessageQueue queue, LDAPConnection conn, LDAPEventListener alistener, int msgid, LDAPEventSource source)
queue
- LDAPMessageQueue for checking the events.conn
- LDAPConnection used to create this MessageQueue ,
required to abandon the message.alistener
- The listener which would get the event.msgid
- The message id for the Message send.source
- The object which would be used as for LDAPEvents
Generated.
public long getSleepTime()
public void setSleepTime(long l)
l
- Sleep Time in MilliSeconds.
|
LDAP Classes Implements Java LDAP |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |