org.opends.server.extensions
Class DynamicGroupSearchThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.opends.server.api.DirectoryThread
          extended by org.opends.server.extensions.DynamicGroupSearchThread
All Implemented Interfaces:
java.lang.Runnable, InternalSearchListener

public class DynamicGroupSearchThread
extends DirectoryThread
implements InternalSearchListener

This class implements a Directory Server thread that will be used to perform a background search to retrieve all of the members of a dynamic group.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
DynamicGroupSearchThread(DynamicGroupMemberList memberList, DN[] baseDNs, SearchFilter[] filters, LDAPURL[][] memberURLs)
          Creates a new dynamic group search thread that is associated with the provided member list and that will perform the search using the provided information.
 
Method Summary
 void handleInternalSearchEntry(InternalSearchOperation searchOperation, SearchResultEntry searchEntry)
          Performs any processing necessary for the provided search result entry.
 void handleInternalSearchReference(InternalSearchOperation searchOperation, SearchResultReference searchReference)
          Performs any processing necessary for the provided search result reference.
 void run()
          Performs the set of searches and provides the results to the associated member list.
 
Methods inherited from class org.opends.server.api.DirectoryThread
getAssociatedTask, getCreationStackTrace, getDebugProperties, getParentThread, setAssociatedTask
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, 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

DynamicGroupSearchThread

public DynamicGroupSearchThread(DynamicGroupMemberList memberList,
                                DN[] baseDNs,
                                SearchFilter[] filters,
                                LDAPURL[][] memberURLs)
Creates a new dynamic group search thread that is associated with the provided member list and that will perform the search using the provided information.

Parameters:
memberList - The dynamic group member list with which this thread is associated.
baseDNs - The set of base DNs to use for the search requests.
filters - The set of search filters to use for the search requests.
memberURLs - The set of member URLs to use when determining if entries match the necessary group criteria.
Method Detail

run

public void run()
Performs the set of searches and provides the results to the associated member list.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

handleInternalSearchEntry

public void handleInternalSearchEntry(InternalSearchOperation searchOperation,
                                      SearchResultEntry searchEntry)
                               throws DirectoryException
Performs any processing necessary for the provided search result entry.

Specified by:
handleInternalSearchEntry in interface InternalSearchListener
Parameters:
searchOperation - The internal search operation being processed.
searchEntry - The matching search result entry to be processed.
Throws:
DirectoryException - If a problem occurred while handling the provided entry. Search processing will be terminated, and the search operation will result will be set based on this exception.

handleInternalSearchReference

public void handleInternalSearchReference(InternalSearchOperation searchOperation,
                                          SearchResultReference searchReference)
Performs any processing necessary for the provided search result reference.

Specified by:
handleInternalSearchReference in interface InternalSearchListener
Parameters:
searchOperation - The internal search operation being processed.
searchReference - The search result reference to be processed.