|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
org.opends.server.api.DirectoryThread
org.opends.server.api.ConnectionHandler
org.opends.server.protocols.internal.InternalConnectionHandler
@PublicAPI(stability=PRIVATE, mayInstantiate=false, mayExtend=false, mayInvoke=false) public final class InternalConnectionHandler
This class defines a Directory Server connection handler that will handle internal "connections".
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Method Summary | |
---|---|
static void |
clearRootClientConnectionAtShutdown()
Called near the end of server shutdown. |
void |
finalizeConnectionHandler(Message finalizeReason,
boolean closeConnections)
Closes this connection handler so that it will no longer accept new client connections. |
java.util.Collection<ClientConnection> |
getClientConnections()
Retrieves the set of active client connections that have been established through this connection handler. |
java.lang.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. |
java.util.Collection<HostPort> |
getListeners()
Retrieves information about the listener(s) that will be used to accept client connections. |
java.lang.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. |
java.lang.String |
toString()
Retrieves a string representation of this connection handler. |
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of this connection handler to the provided buffer. |
Methods inherited from class org.opends.server.api.ConnectionHandler |
---|
getConnectionHandlerMonitor, isConfigurationAcceptable, setConnectionHandlerMonitor |
Methods inherited from class org.opends.server.api.DirectoryThread |
---|
getAssociatedTask, getCreationStackTrace, getDebugProperties, getParentThread, setAssociatedTask |
Methods inherited from class java.lang.Thread |
---|
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, yield |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static InternalConnectionHandler getInstance()
public void initializeConnectionHandler(ConnectionHandlerCfg configuration) throws ConfigException, InitializationException
initializeConnectionHandler
in class ConnectionHandler
configuration
- 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(Message finalizeReason, boolean closeConnections)
closeConnections
flag.
finalizeConnectionHandler
in class ConnectionHandler
finalizeReason
- The reason that this connection handler
should be finalized.closeConnections
- Indicates whether any established
client connections associated with the
connection handler should also be
closed.public java.lang.String getConnectionHandlerName()
getConnectionHandlerName
in class ConnectionHandler
public java.lang.String getProtocol()
getProtocol
in class ConnectionHandler
public java.util.Collection<HostPort> getListeners()
getListeners
in class ConnectionHandler
public java.util.Collection<ClientConnection> getClientConnections()
getClientConnections
in class ConnectionHandler
public void run()
run
in interface java.lang.Runnable
run
in class ConnectionHandler
public java.lang.String toString()
toString
in class ConnectionHandler
public void toString(java.lang.StringBuilder buffer)
toString
in class ConnectionHandler
buffer
- The buffer to which the information should be
appended.public static void clearRootClientConnectionAtShutdown()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |