public final class InternalConnectionHandler extends ConnectionHandler
Modifier and Type | Method and Description |
---|---|
void |
bind()
Operates in a loop, accepting new connections and ensuring that requests on those connections are handled
properly.
|
static void |
clearRootClientConnectionAtShutdown()
Called near the end of server shutdown.
|
void |
close()
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.
|
org.forgerock.opendj.ldap.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(ServerContext serverContext,
org.forgerock.opendj.server.config.server.ConnectionHandlerCfg configuration)
Initializes this connection handler provider based on the information in the provided connection handler
configuration.
|
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, setConnectionHandlerMonitor
public static InternalConnectionHandler getInstance()
public void initializeConnectionHandler(ServerContext serverContext, org.forgerock.opendj.server.config.server.ConnectionHandlerCfg configuration) throws org.forgerock.opendj.config.server.ConfigException, InitializationException
initializeConnectionHandler
in class ConnectionHandler
serverContext
- The server context.configuration
- The connection handler configuration that contains the information to use to initialize this
connection handler.org.forgerock.opendj.config.server.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 bind()
ConnectionHandler
bind
in class ConnectionHandler
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class ConnectionHandler
public String getConnectionHandlerName()
getConnectionHandlerName
in class ConnectionHandler
public String getProtocol()
getProtocol
in class ConnectionHandler
public Collection<HostPort> getListeners()
getListeners
in class ConnectionHandler
public Collection<ClientConnection> getClientConnections()
getClientConnections
in class ConnectionHandler
public String toString()
toString
in class ConnectionHandler
public void toString(StringBuilder buffer)
toString
in class ConnectionHandler
buffer
- The buffer to which the information should be appended.public static void clearRootClientConnectionAtShutdown()
public org.forgerock.opendj.ldap.Dn getComponentEntryDN()
getComponentEntryDN
in class ConnectionHandler
Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.