public class DynamicGroupSearchThread extends DirectoryThread implements SearchResultHandler
Thread.State, Thread.UncaughtExceptionHandler
DIRECTORY_THREAD_GROUP
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
handleEntry(SearchResultEntry entry)
Invoked each time a search result entry is returned from an asynchronous
search operation.
|
boolean |
handleReference(SearchResultReference ignored)
Invoked each time a search result reference is returned from an
asynchronous search operation.
|
void |
run()
Performs the set of searches and provides the results to the associated member list.
|
getAssociatedTask, getCreationStackTrace, getDebugProperties, getParentThread, initiateShutdown, isShutdownInitiated, setAssociatedTask, startWork, stopWork
activeCount, checkAccess, clone, 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
public DynamicGroupSearchThread(DynamicGroupMemberList memberList, Dn[] baseDNs, SearchFilter[] filters, LDAPURL[][] memberURLs)
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.public void run()
public boolean handleEntry(SearchResultEntry entry)
SearchResultHandler
handleEntry
in interface SearchResultHandler
entry
- The search result entry.true
if this handler should continue to be notified of
any remaining entries and references, or false
if the
remaining entries and references should be skipped for some
reason (e.g. a client side size limit has been reached).public boolean handleReference(SearchResultReference ignored)
SearchResultHandler
handleReference
in interface SearchResultHandler
ignored
- The search result reference.true
if this handler should continue to be notified of
any remaining entries and references, or false
if the
remaining entries and references should be skipped for some
reason (e.g. a client side size limit has been reached).Copyright 2010-2020 ForgeRock AS.