public final class SNMPConnectionHandler extends ConnectionHandler<org.forgerock.opendj.server.config.server.SnmpConnectionHandlerCfg> implements org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.SnmpConnectionHandlerCfg>, AlertGenerator
Constructor and Description |
---|
SNMPConnectionHandler()
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.SnmpConnectionHandlerCfg configuration) |
void |
bind()
Operates in a loop, accepting new connections and ensuring that requests on those connections are handled
properly.
|
void |
doClose()
Closes this connection handler so that it will no longer accept new client connections.
|
void |
doInitializeConnectionHandler(ServerContext serverContext,
org.forgerock.opendj.server.config.server.SnmpConnectionHandlerCfg configuration)
Initializes this connection handler provider based on the information in the provided connection handler
configuration.
|
Map<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.
|
boolean |
isConfigurationChangeAcceptable(org.forgerock.opendj.server.config.server.SnmpConnectionHandlerCfg configuration,
List<LocalizableMessage> unacceptableReasons) |
void |
toString(StringBuilder buffer)
Appends a string representation of this connection handler to the provided buffer.
|
close, getEnabledSSLCipherSuites, getEnabledSSLProtocols, getNumRequestHandlers, initializeConnectionHandler, isConfigurationAcceptable, setAdminConnectionHandler, toString
public SNMPConnectionHandler()
initializeConnectionHandler
method.public void doInitializeConnectionHandler(ServerContext serverContext, org.forgerock.opendj.server.config.server.SnmpConnectionHandlerCfg configuration) throws org.forgerock.opendj.config.server.ConfigException, InitializationException
ConnectionHandler
doInitializeConnectionHandler
in class ConnectionHandler<org.forgerock.opendj.server.config.server.SnmpConnectionHandlerCfg>
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 String getConnectionHandlerName()
ConnectionHandler
getConnectionHandlerName
in class ConnectionHandler<org.forgerock.opendj.server.config.server.SnmpConnectionHandlerCfg>
public String getProtocol()
ConnectionHandler
getProtocol
in class ConnectionHandler<org.forgerock.opendj.server.config.server.SnmpConnectionHandlerCfg>
public Collection<HostPort> getListeners()
ConnectionHandler
getListeners
in class ConnectionHandler<org.forgerock.opendj.server.config.server.SnmpConnectionHandlerCfg>
public Collection<ClientConnection> getClientConnections()
ConnectionHandler
getClientConnections
in class ConnectionHandler<org.forgerock.opendj.server.config.server.SnmpConnectionHandlerCfg>
public void bind()
ConnectionHandler
bind
in class ConnectionHandler<org.forgerock.opendj.server.config.server.SnmpConnectionHandlerCfg>
public void toString(StringBuilder buffer)
ConnectionHandler
toString
in class ConnectionHandler<org.forgerock.opendj.server.config.server.SnmpConnectionHandlerCfg>
buffer
- The buffer to which the information should be appended.public boolean isConfigurationChangeAcceptable(org.forgerock.opendj.server.config.server.SnmpConnectionHandlerCfg configuration, List<LocalizableMessage> unacceptableReasons)
isConfigurationChangeAcceptable
in interface org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.SnmpConnectionHandlerCfg>
public org.forgerock.opendj.config.server.ConfigChangeResult applyConfigurationChange(org.forgerock.opendj.server.config.server.SnmpConnectionHandlerCfg configuration)
applyConfigurationChange
in interface org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.SnmpConnectionHandlerCfg>
public org.forgerock.opendj.ldap.Dn getComponentEntryDN()
ConnectionHandler
getComponentEntryDN
in interface AlertGenerator
getComponentEntryDN
in class ConnectionHandler<org.forgerock.opendj.server.config.server.SnmpConnectionHandlerCfg>
public String getClassName()
AlertGenerator
getClassName
in interface AlertGenerator
public Map<String,String> getAlerts()
AlertGenerator
getAlerts
in interface AlertGenerator
public void doClose()
ConnectionHandler
doClose
in class ConnectionHandler<org.forgerock.opendj.server.config.server.SnmpConnectionHandlerCfg>
Copyright © 2010–2017 ForgeRock AS. All rights reserved.