Class JmxConnectionHandler

    • Constructor Detail

      • JmxConnectionHandler

        public JmxConnectionHandler()
    • Method Detail

      • doClose

        public void doClose()
        Description copied from class: ConnectionHandler
        Closes this connection handler so that it will no longer accept new client connections. Implementations should disconnect any existing connections and release any other resources associated with the connection handler.
        Overrides:
        doClose in class ConnectionHandler<JmxConnectionHandlerCfg>
      • getComponentEntryDN

        public Dn getComponentEntryDN()
        Retrieves the DN of the configuration entry with which this alert generator is associated.
        Specified by:
        getComponentEntryDN in class ConnectionHandler<JmxConnectionHandlerCfg>
        Returns:
        The DN of the configuration entry with which this alert generator is associated.
      • getConnectionHandlerName

        public String getConnectionHandlerName()
        Description copied from class: ConnectionHandler
        Retrieves a name that may be used to refer to this connection handler. Every connection handler instance (even handlers of the same type) must have a unique name.
        Specified by:
        getConnectionHandlerName in class ConnectionHandler<JmxConnectionHandlerCfg>
        Returns:
        A unique name that may be used to refer to this connection handler.
      • getKeyManagerProviderDN

        public Dn getKeyManagerProviderDN()
        Retrieves the DN of the key manager provider that should be used for operations associated with this connection handler which need access to a key manager.
        Returns:
        The DN of the key manager provider that should be used for operations associated with this connection handler which need access to a key manager, or null if no key manager provider has been configured for this connection handler.
      • getListenAddress

        public com.forgerock.opendj.util.Host getListenAddress()
        Get the JMX connection handler's listen address.
        Returns:
        Returns the JMX connection handler's listen address.
      • getListenPort

        public int getListenPort()
        Get the JMX connection handler's listen port.
        Returns:
        Returns the JMX connection handler's listen port.
      • getRmiPort

        public int getRmiPort()
        Get the JMX connection handler's rmi port.
        Returns:
        Returns the JMX connection handler's rmi port.
      • getRMIConnector

        public RmiConnector getRMIConnector()
        Get the JMX connection handler's RMI connector.
        Returns:
        Returns the JMX connection handler's RMI connector.
      • getSSLServerCertNicknames

        public SortedSet<String> getSSLServerCertNicknames()
        Retrieves the nicknames of the server certificates that should be used in conjunction with this JMX connection handler.
        Returns:
        The nicknames of the server certificates that should be used in conjunction with this JMX connection handler.
      • getProtocol

        public String getProtocol()
        Description copied from class: ConnectionHandler
        Retrieves the name of the protocol used to communicate with clients. It should take into account any special naming that may be needed to express any security mechanisms or other constraints in place (e.g., "LDAPS" for LDAP over SSL).
        Specified by:
        getProtocol in class ConnectionHandler<JmxConnectionHandlerCfg>
        Returns:
        The name of the protocol used to communicate with clients.
      • getListeners

        public Collection<com.forgerock.opendj.util.HostPort> getListeners()
        Description copied from class: ConnectionHandler
        Retrieves information about the listener(s) that will be used to accept client connections.
        Specified by:
        getListeners in class ConnectionHandler<JmxConnectionHandlerCfg>
        Returns:
        Information about the listener(s) that will be used to accept client connections, or an empty list if this connection handler does not accept connections from network clients.
      • isConfigurationAcceptable

        public boolean isConfigurationAcceptable​(ServerContext serverContext,
                                                 JmxConnectionHandlerCfg config,
                                                 List<LocalizableMessage> unacceptableReasons)
        Description copied from class: ConnectionHandler
        Indicates whether the provided configuration is acceptable for this connection handler. It should be possible to call this method on an uninitialized connection handler instance in order to determine whether the connection handler would be able to use the provided configuration.
        Overrides:
        isConfigurationAcceptable in class ConnectionHandler<JmxConnectionHandlerCfg>
        Parameters:
        serverContext - The server context
        config - 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.
        Returns:
        true if the provided configuration is acceptable for this connection handler, or false if not.
      • isUseSSL

        public boolean isUseSSL()
        Determines whether clients are allowed to connect over JMX using SSL.
        Returns:
        Returns true if clients are allowed to connect over JMX using SSL.
      • processServerShutdown

        public void processServerShutdown​(LocalizableMessage reason)
        Description copied from interface: ServerShutdownListener
        Indicates that the Directory Server has received a request to stop running and that this shutdown listener should take any action necessary to prepare for it.
        Specified by:
        processServerShutdown in interface ServerShutdownListener
        Parameters:
        reason - The human-readable reason for the shutdown.
      • registerClientConnection

        public void registerClientConnection​(ClientConnection connection)
        Registers a client connection with this JMX connection handler.
        Parameters:
        connection - The client connection.
      • unregisterClientConnection

        public void unregisterClientConnection​(ClientConnection connection)
        Unregisters a client connection from this JMX connection handler.
        Parameters:
        connection - The client connection.
      • run

        public void run()
        Specified by:
        run in interface Runnable