public final class LDIFConnectionHandler extends ConnectionHandler<org.forgerock.opendj.server.config.server.LDIFConnectionHandlerCfg> implements org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.LDIFConnectionHandlerCfg>, AlertGenerator
DirectoryThread.FactoryThread.State, Thread.UncaughtExceptionHandlerDIRECTORY_THREAD_GROUPMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
LDIFConnectionHandler()
Creates a new instance of this connection handler.
|
| Modifier and Type | Method and Description |
|---|---|
org.forgerock.opendj.config.server.ConfigChangeResult |
applyConfigurationChange(org.forgerock.opendj.server.config.server.LDIFConnectionHandlerCfg configuration) |
void |
finalizeConnectionHandler(org.forgerock.i18n.LocalizableMessage finalizeReason)
Closes this connection handler so that it will no longer accept
new client connections.
|
LinkedHashMap<String,String> |
getAlerts()
Retrieves information about the set of alerts that this generator
may produce.
|
String |
getClassName()
Retrieves the fully-qualified name of the Java class for this
alert generator implementation.
|
Collection<ClientConnection> |
getClientConnections()
Retrieves the set of active client connections that have been
established through this connection handler.
|
org.forgerock.opendj.ldap.DN |
getComponentEntryDN()
Retrieves the DN of the configuration entry with which this alert
generator is associated.
|
String |
getConnectionHandlerName()
Retrieves a name that may be used to refer to this 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.LDIFConnectionHandlerCfg configuration)
Initializes this connection handler provider based on the
information in the provided connection handler configuration.
|
boolean |
isConfigurationAcceptable(org.forgerock.opendj.server.config.server.ConnectionHandlerCfg configuration,
List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons)
Indicates whether the provided configuration is acceptable for
this connection handler.
|
boolean |
isConfigurationChangeAcceptable(org.forgerock.opendj.server.config.server.LDIFConnectionHandlerCfg configuration,
List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons) |
void |
run()
Operates in a loop, accepting new connections and ensuring that
requests on those connections are handled properly.
|
void |
toString(StringBuilder buffer)
Appends a string representation of this connection handler to the
provided buffer.
|
getConnectionHandlerMonitor, getEnabledSSLCipherSuites, getEnabledSSLProtocols, getNumRequestHandlers, isAdminConnectionHandler, setAdminConnectionHandler, setConnectionHandlerMonitor, toStringgetAssociatedTask, 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 LDIFConnectionHandler()
initializeConnectionHandler method.public void initializeConnectionHandler(ServerContext serverContext, org.forgerock.opendj.server.config.server.LDIFConnectionHandlerCfg configuration)
ConnectionHandlerinitializeConnectionHandler in class ConnectionHandler<org.forgerock.opendj.server.config.server.LDIFConnectionHandlerCfg>serverContext - The server context.configuration - The connection handler configuration that contains the
information to use to initialize this connection
handler.public void finalizeConnectionHandler(org.forgerock.i18n.LocalizableMessage finalizeReason)
ConnectionHandlerfinalizeConnectionHandler in class ConnectionHandler<org.forgerock.opendj.server.config.server.LDIFConnectionHandlerCfg>finalizeReason - The reason that this connection handler should be
finalized.public String getConnectionHandlerName()
ConnectionHandlergetConnectionHandlerName in class ConnectionHandler<org.forgerock.opendj.server.config.server.LDIFConnectionHandlerCfg>public String getProtocol()
ConnectionHandlergetProtocol in class ConnectionHandler<org.forgerock.opendj.server.config.server.LDIFConnectionHandlerCfg>public Collection<HostPort> getListeners()
ConnectionHandlergetListeners in class ConnectionHandler<org.forgerock.opendj.server.config.server.LDIFConnectionHandlerCfg>public Collection<ClientConnection> getClientConnections()
ConnectionHandlergetClientConnections in class ConnectionHandler<org.forgerock.opendj.server.config.server.LDIFConnectionHandlerCfg>public void run()
ConnectionHandlerrun in interface Runnablerun in class ConnectionHandler<org.forgerock.opendj.server.config.server.LDIFConnectionHandlerCfg>public void toString(StringBuilder buffer)
ConnectionHandlertoString in class ConnectionHandler<org.forgerock.opendj.server.config.server.LDIFConnectionHandlerCfg>buffer - The buffer to which the information should be appended.public boolean isConfigurationAcceptable(org.forgerock.opendj.server.config.server.ConnectionHandlerCfg configuration,
List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons)
ConnectionHandlerisConfigurationAcceptable in class ConnectionHandler<org.forgerock.opendj.server.config.server.LDIFConnectionHandlerCfg>configuration - The connection handler configuration
for which to make the determination.unacceptableReasons - A list that may be used to hold the
reasons that the provided
configuration is not acceptable.true if the provided configuration is acceptable
for this connection handler, or false if not.public boolean isConfigurationChangeAcceptable(org.forgerock.opendj.server.config.server.LDIFConnectionHandlerCfg configuration,
List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons)
isConfigurationChangeAcceptable in interface org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.LDIFConnectionHandlerCfg>public org.forgerock.opendj.config.server.ConfigChangeResult applyConfigurationChange(org.forgerock.opendj.server.config.server.LDIFConnectionHandlerCfg configuration)
applyConfigurationChange in interface org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.LDIFConnectionHandlerCfg>public org.forgerock.opendj.ldap.DN getComponentEntryDN()
ConnectionHandlergetComponentEntryDN in interface AlertGeneratorgetComponentEntryDN in class ConnectionHandler<org.forgerock.opendj.server.config.server.LDIFConnectionHandlerCfg>public String getClassName()
AlertGeneratorgetClassName in interface AlertGeneratorpublic LinkedHashMap<String,String> getAlerts()
AlertGeneratorgetAlerts in interface AlertGeneratorCopyright © 2010-2020 Wren Security. All Rights Reserved.