public abstract class AbstractSearchExecutor extends SearchRequest
Modifier and Type | Field and Description |
---|---|
protected Logger |
logger
Logger for this class.
|
private Cache<SearchRequest> |
searchCache
Cache to use when performing searches.
|
private OperationExceptionHandler<SearchRequest,SearchResult> |
searchExceptionHandler
Handler to handle search exceptions.
|
private OperationResponseHandler<SearchRequest,SearchResult>[] |
searchResponseHandlers
Handlers to handle search responses.
|
private ExecutorService |
service
To submit operations to.
|
Constructor and Description |
---|
AbstractSearchExecutor(ExecutorService es)
Creates a new abstract search executor.
|
Modifier and Type | Method and Description |
---|---|
protected SearchOperation |
createSearchOperation(Connection conn)
Creates a new search operation configured with the properties on this search executor.
|
protected void |
finalize() |
protected ExecutorService |
getExecutorService()
Returns the executor service for this search executor.
|
Cache<SearchRequest> |
getSearchCache()
Returns the search cache.
|
OperationExceptionHandler<SearchRequest,SearchResult> |
getSearchExceptionHandler()
Returns the search exception handler.
|
OperationResponseHandler<SearchRequest,SearchResult>[] |
getSearchResponseHandlers()
Returns the search response handlers.
|
void |
setSearchCache(Cache<SearchRequest> cache)
Sets the search cache.
|
void |
setSearchExceptionHandler(OperationExceptionHandler<SearchRequest,SearchResult> handler)
Sets the search exception handler.
|
void |
setSearchResponseHandlers(OperationResponseHandler<SearchRequest,SearchResult>... handlers)
Sets the search response handlers.
|
void |
shutdown()
Shuts down the executor service.
|
List<Runnable> |
shutdownNow()
Immediately shuts down the executor service.
|
String |
toString() |
equals, getBaseDn, getBinaryAttributes, getDerefAliases, getReturnAttributes, getSearchEntryHandlers, getSearchFilter, getSearchReferenceHandlers, getSearchScope, getSizeLimit, getSortBehavior, getTimeLimit, getTypesOnly, hashCode, newObjectScopeSearchRequest, newObjectScopeSearchRequest, newObjectScopeSearchRequest, newSearchRequest, setBaseDn, setBinaryAttributes, setDerefAliases, setReturnAttributes, setSearchEntryHandlers, setSearchFilter, setSearchReferenceHandlers, setSearchScope, setSizeLimit, setSortBehavior, setTimeLimit, setTypesOnly
getControls, getIntermediateResponseHandlers, getReferralHandler, setControls, setIntermediateResponseHandlers, setReferralHandler
protected final Logger logger
private final ExecutorService service
private OperationExceptionHandler<SearchRequest,SearchResult> searchExceptionHandler
private OperationResponseHandler<SearchRequest,SearchResult>[] searchResponseHandlers
private Cache<SearchRequest> searchCache
public AbstractSearchExecutor(ExecutorService es)
es
- executor serviceprotected ExecutorService getExecutorService()
public OperationExceptionHandler<SearchRequest,SearchResult> getSearchExceptionHandler()
public void setSearchExceptionHandler(OperationExceptionHandler<SearchRequest,SearchResult> handler)
handler
- search exception handlerpublic OperationResponseHandler<SearchRequest,SearchResult>[] getSearchResponseHandlers()
public void setSearchResponseHandlers(OperationResponseHandler<SearchRequest,SearchResult>... handlers)
handlers
- search response handlerspublic Cache<SearchRequest> getSearchCache()
public void setSearchCache(Cache<SearchRequest> cache)
cache
- to setpublic void shutdown()
ExecutorService.shutdown()
.public List<Runnable> shutdownNow()
ExecutorService.shutdownNow()
.protected SearchOperation createSearchOperation(Connection conn)
conn
- to pass to the search operationprotected void finalize() throws Throwable
public String toString()
toString
in class SearchRequest
Copyright © 2003-2019 Virginia Tech. All Rights Reserved.