This class maintains a list of listeners all interested in the same "search" request. It creates a thread that does the persistent search and blocks, collecting the results of the search. For each result that it receives from the search, it fires the corresponding event to its listeners. If an exception is encountered, it fires a NamingExceptionEvent.
| Modifier and Type | Field and Description |
|---|---|
| private LdapCtx | |
| private static final boolean | |
| private EventContext | |
| pack-priv NotifierArgs | |
| private Vector | |
| private NamingEnumeration | |
| private EventSupport | |
| private Thread |
| Access | Constructor and Description |
|---|---|
| pack-priv | NamingEventNotifier(EventSupport support, LdapCtx ctx, NotifierArgs info, NamingListener firstListener)
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| private void | |
| private void | |
| private void | fireObjectAdded(Binding newBd, long changeID)
Fire an "object added" event to registered NamingListeners. |
| private void | fireObjectChanged(Binding newBd, long changeID)
Fires an "object changed" event to registered NamingListeners. |
| private void | fireObjectRemoved(Binding oldBd, long changeID)
Fire an "object removed" event to registered NamingListeners. |
| private void | fireObjectRenamed(Binding newBd, String oldDN, long changeID)
Fires an "object renamed" to registered NamingListeners. |
| pack-priv boolean | |
| pack-priv void | |
| public void | |
| pack-priv void |
| context | back to summary |
|---|---|
| private LdapCtx context | |
| debug | back to summary |
|---|---|
| private static final boolean debug | |
| eventSrc | back to summary |
|---|---|
| private EventContext eventSrc | |
| info | back to summary |
|---|---|
| pack-priv NotifierArgs info | |
| namingListeners | back to summary |
|---|---|
| private Vector<NamingListener> namingListeners | |
| results | back to summary |
|---|---|
| private NamingEnumeration<SearchResult> results | |
| support | back to summary |
|---|---|
| private EventSupport support | |
| worker | back to summary |
|---|---|
| private Thread worker | |
| NamingEventNotifier | back to summary |
|---|---|
| pack-priv NamingEventNotifier(EventSupport support, LdapCtx ctx, NotifierArgs info, NamingListener firstListener) throws NamingException | |
| addNamingListener | back to summary |
|---|---|
| pack-priv void addNamingListener(NamingListener l) | |
| cleanup | back to summary |
|---|---|
| private void cleanup() | |
| fireNamingException | back to summary |
|---|---|
| private void fireNamingException(NamingException e) | |
| fireObjectAdded | back to summary |
|---|---|
| private void fireObjectAdded(Binding newBd, long changeID) Fire an "object added" event to registered NamingListeners. | |
| fireObjectChanged | back to summary |
|---|---|
| private void fireObjectChanged(Binding newBd, long changeID) Fires an "object changed" event to registered NamingListeners. | |
| fireObjectRemoved | back to summary |
|---|---|
| private void fireObjectRemoved(Binding oldBd, long changeID) Fire an "object removed" event to registered NamingListeners. | |
| fireObjectRenamed | back to summary |
|---|---|
| private void fireObjectRenamed(Binding newBd, String oldDN, long changeID) Fires an "object renamed" to registered NamingListeners. | |
| hasNamingListeners | back to summary |
|---|---|
| pack-priv boolean hasNamingListeners() | |
| removeNamingListener | back to summary |
|---|---|
| pack-priv void removeNamingListener(NamingListener l) | |
| run | back to summary |
|---|---|
| public void run() Implements java. Execute "persistent search". For each result, create the appropriate NamingEvent and queue to be dispatched to listeners.
| |
| stop | back to summary |
|---|---|
| pack-priv void stop() Stop the dispatcher so we can be destroyed. package private; used by EventSupport | |