@PublicAPI(stability=PRIVATE, mayInstantiate=false, mayExtend=false, mayInvoke=false) public final class InternalConnectionHandler extends ConnectionHandler
DirectoryThread.FactoryThread.State, Thread.UncaughtExceptionHandlerDIRECTORY_THREAD_GROUPMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Modifier and Type | Method and Description |
|---|---|
static void |
clearRootClientConnectionAtShutdown()
Called near the end of server shutdown.
|
void |
finalizeConnectionHandler(LocalizableMessage finalizeReason)
Closes this connection handler so that it will no longer accept
new client connections.
|
Collection<ClientConnection> |
getClientConnections()
Retrieves the set of active client connections that have been
established through this connection handler.
|
DN |
getComponentEntryDN()
Return the configuration dn of the object.
|
String |
getConnectionHandlerName()
Retrieves a name that may be used to refer to this connection
handler.
|
static InternalConnectionHandler |
getInstance()
Retrieves the static instance of this internal connection
handler.
|
Collection<HostPort> |
getListeners()
Retrieves information about the listener(s) that will be used to
accept client connections.
|
String |
getProtocol()
Retrieves the name of the protocol used to communicate with
clients.
|
void |
initializeConnectionHandler(ConnectionHandlerCfg configuration)
Initializes this connection handler provider based on the
information in the provided connection handler configuration.
|
void |
run()
Operates in a loop, accepting new connections and ensuring that
requests on those connections are handled properly.
|
String |
toString()
Retrieves a string representation of this connection handler.
|
void |
toString(StringBuilder buffer)
Appends a string representation of this connection handler to the
provided buffer.
|
getConnectionHandlerMonitor, getEnabledSSLCipherSuites, getEnabledSSLProtocols, getNumRequestHandlers, isAdminConnectionHandler, isConfigurationAcceptable, setAdminConnectionHandler, setConnectionHandlerMonitorgetAssociatedTask, 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, yieldpublic static InternalConnectionHandler getInstance()
public void initializeConnectionHandler(ConnectionHandlerCfg configuration) throws ConfigException, InitializationException
initializeConnectionHandler in class ConnectionHandlerconfiguration - The connection handler configuration that
contains the information to use to
initialize this connection handler.ConfigException - If an unrecoverable problem arises in
the process of performing the
initialization as a result of the
server configuration.InitializationException - If a problem occurs during
initialization that is not
related to the server
configuration.public void finalizeConnectionHandler(LocalizableMessage finalizeReason)
finalizeConnectionHandler in class ConnectionHandlerfinalizeReason - The reason that this connection handler should be
finalized.public String getConnectionHandlerName()
getConnectionHandlerName in class ConnectionHandlerpublic String getProtocol()
getProtocol in class ConnectionHandlerpublic Collection<HostPort> getListeners()
getListeners in class ConnectionHandlerpublic Collection<ClientConnection> getClientConnections()
getClientConnections in class ConnectionHandlerpublic void run()
run in interface Runnablerun in class ConnectionHandlerpublic String toString()
toString in class ConnectionHandlerpublic void toString(StringBuilder buffer)
toString in class ConnectionHandlerbuffer - The buffer to which the information should be
appended.public static void clearRootClientConnectionAtShutdown()
public DN getComponentEntryDN()
getComponentEntryDN in class ConnectionHandlerCopyright © 2010-2015 ForgeRock AS. All Rights Reserved.