public class LDAPRequestHandler extends DirectoryThread implements ServerShutdownListener
DirectoryThread.FactoryThread.State, Thread.UncaughtExceptionHandlerDIRECTORY_THREAD_GROUPMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
LDAPRequestHandler(LDAPConnectionHandler connectionHandler,
int requestHandlerID)
Creates a new LDAP request handler that will be associated with the
provided connection handler.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<LDAPClientConnection> |
getClientConnections()
Retrieves the set of all client connections that are currently registered
with this request handler.
|
String |
getShutdownListenerName()
Retrieves the human-readable name for this shutdown listener.
|
void |
processServerShutdown(LocalizableMessage reason)
Indicates that the Directory Server has received a request to stop running
and that this shutdown listener should take any action necessary to prepare
for it.
|
boolean |
registerClient(LDAPClientConnection clientConnection)
Registers the provided client connection with this request
handler so that any requests received from that client will be
processed.
|
void |
registerShutdownListener()
Causes this request handler to register itself as a shutdown listener with
the Directory Server.
|
void |
run()
Operates in a loop, waiting for client requests to arrive and ensuring that
they are processed properly.
|
getAssociatedTask, getCreationStackTrace, getDebugProperties, getParentThread, initiateShutdown, isShutdownInitiated, setAssociatedTask, startWork, stopWorkactiveCount, 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, yieldpublic LDAPRequestHandler(LDAPConnectionHandler connectionHandler, int requestHandlerID) throws InitializationException
connectionHandler - The LDAP connection handler with which this
request handler is associated.requestHandlerID - The integer value that may be used to distinguish
this request handler from others associated with
the same connection handler.InitializationException - If a problem occurs while initializing
this request handler.public void run()
public boolean registerClient(LDAPClientConnection clientConnection)
clientConnection - The client connection to be registered with this request
handler.true if the client connection was properly
registered with this request handler, or
false if not.public Collection<LDAPClientConnection> getClientConnections()
public String getShutdownListenerName()
getShutdownListenerName in interface ServerShutdownListenerpublic void registerShutdownListener()
public void processServerShutdown(LocalizableMessage reason)
processServerShutdown in interface ServerShutdownListenerreason - The human-readable reason for the shutdown.Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.