Class SNMPConnectionHandler

    • Constructor Detail

      • SNMPConnectionHandler

        public SNMPConnectionHandler()
        Creates a new instance of this connection handler. All initialization should be performed in the initializeConnectionHandler method.
    • Method Detail

      • getConnectionHandlerName

        public String getConnectionHandlerName()
        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<SNMPConnectionHandlerCfg>
        Returns:
        A unique name that may be used to refer to this connection handler.
      • getProtocol

        public String getProtocol()
        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<SNMPConnectionHandlerCfg>
        Returns:
        The name of the protocol used to communicate with clients.
      • getListeners

        public Collection<HostPort> getListeners()
        Retrieves information about the listener(s) that will be used to accept client connections.
        Specified by:
        getListeners in class ConnectionHandler<SNMPConnectionHandlerCfg>
        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.
      • isConfigurationChangeAcceptable

        public boolean isConfigurationChangeAcceptable​(SNMPConnectionHandlerCfg configuration,
                                                       List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons)
        Indicates whether the proposed change to the configuration is acceptable to this change listener.
        Specified by:
        isConfigurationChangeAcceptable in interface ConfigurationChangeListener<SNMPConnectionHandlerCfg>
        Parameters:
        configuration - The new configuration containing the changes.
        unacceptableReasons - A list that can be used to hold messages about why the provided configuration is not acceptable.
        Returns:
        Returns true if the proposed change is acceptable, or false if it is not.
      • getClassName

        public String getClassName()
        Retrieves the fully-qualified name of the Java class for this alert generator implementation.
        Specified by:
        getClassName in interface AlertGenerator
        Returns:
        The fully-qualified name of the Java class for this alert generator implementation.
      • getAlerts

        public LinkedHashMap<String,​String> getAlerts()
        Retrieves information about the set of alerts that this generator may produce. The map returned should be between the notification type for a particular notification and the human-readable description for that notification. This alert generator must not generate any alerts with types that are not contained in this list.
        Specified by:
        getAlerts in interface AlertGenerator
        Returns:
        Information about the set of alerts that this generator may produce.
      • isOperational

        public boolean isOperational​(File file)
        Indicate if operational.
        Parameters:
        file - The file
        Returns:
        true is operational
      • isOperational

        public boolean isOperational()
        Indicate if operational.
        Returns:
        true is operational
      • finalizeConnectionHandler

        public void finalizeConnectionHandler​(org.forgerock.i18n.LocalizableMessage finalizeReason)
        Closes this connection handler so that it will no longer accept new client connections. Implementations should disconnect any existing connections.
        Specified by:
        finalizeConnectionHandler in class ConnectionHandler<SNMPConnectionHandlerCfg>
        Parameters:
        finalizeReason - The reason that this connection handler should be finalized.