Package org.opends.server.extensions
Class DynamicGroupSearchThread
- java.lang.Object
-
- java.lang.Thread
-
- org.opends.server.api.DirectoryThread
-
- org.opends.server.extensions.DynamicGroupSearchThread
-
- All Implemented Interfaces:
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 org.opends.server.api.DirectoryThread
DirectoryThread.Factory
-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
-
Fields inherited from class org.opends.server.api.DirectoryThread
DIRECTORY_THREAD_GROUP
-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleInternalSearchEntry(InternalSearchOperation searchOperation, SearchResultEntry searchEntry)Performs any processing necessary for the provided search result entry.voidhandleInternalSearchReference(InternalSearchOperation searchOperation, SearchResultReference searchReference)Performs any processing necessary for the provided search result reference.voidrun()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, initiateShutdown, isShutdownInitiated, setAssociatedTask, startWork, stopWork
-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
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.
-
handleInternalSearchEntry
public void handleInternalSearchEntry(InternalSearchOperation searchOperation, SearchResultEntry searchEntry) throws DirectoryException
Description copied from interface:InternalSearchListenerPerforms any processing necessary for the provided search result entry.- Specified by:
handleInternalSearchEntryin interfaceInternalSearchListener- 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)
Description copied from interface:InternalSearchListenerPerforms any processing necessary for the provided search result reference.- Specified by:
handleInternalSearchReferencein interfaceInternalSearchListener- Parameters:
searchOperation- The internal search operation being processed.searchReference- The search result reference to be processed.
-
-