Package org.opends.server.extensions
Class ErrorLogAccountStatusNotificationHandler
- java.lang.Object
-
- org.opends.server.api.AccountStatusNotificationHandler<ErrorLogAccountStatusNotificationHandlerCfg>
-
- org.opends.server.extensions.ErrorLogAccountStatusNotificationHandler
-
- All Implemented Interfaces:
ConfigurationChangeListener<ErrorLogAccountStatusNotificationHandlerCfg>
public class ErrorLogAccountStatusNotificationHandler extends AccountStatusNotificationHandler<ErrorLogAccountStatusNotificationHandlerCfg> implements ConfigurationChangeListener<ErrorLogAccountStatusNotificationHandlerCfg>
This class defines an account status notification handler that will write information about status notifications using the Directory Server's error logging facility.
-
-
Constructor Summary
Constructors Constructor Description ErrorLogAccountStatusNotificationHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigChangeResult
applyConfigurationChange(ErrorLogAccountStatusNotificationHandlerCfg configuration)
Applies the configuration changes to this change listener.void
handleStatusNotification(AccountStatusNotification notification)
Performs any processing that may be necessary in conjunction with the provided account status notification.void
initializeStatusNotificationHandler(ErrorLogAccountStatusNotificationHandlerCfg configuration, ServerContext serverContext)
Initializes this account status notification handler based on the information in the provided configuration entry.boolean
isConfigurationAcceptable(ErrorLogAccountStatusNotificationHandlerCfg configuration, ServerContext serverContext, List<LocalizableMessage> unacceptableReasons)
Indicates whether the provided configuration is acceptable for this account status notification handler.boolean
isConfigurationChangeAcceptable(ErrorLogAccountStatusNotificationHandlerCfg configuration, List<LocalizableMessage> unacceptableReasons)
Indicates whether the proposed change to the configuration is acceptable to this change listener.-
Methods inherited from class org.opends.server.api.AccountStatusNotificationHandler
finalizeStatusNotificationHandler
-
-
-
-
Method Detail
-
initializeStatusNotificationHandler
public void initializeStatusNotificationHandler(ErrorLogAccountStatusNotificationHandlerCfg configuration, ServerContext serverContext)
Description copied from class:AccountStatusNotificationHandler
Initializes this account status notification handler based on the information in the provided configuration entry.- Specified by:
initializeStatusNotificationHandler
in classAccountStatusNotificationHandler<ErrorLogAccountStatusNotificationHandlerCfg>
- Parameters:
configuration
- The configuration entry that contains the information to use to initialize this account status notification handler.serverContext
- The server context
-
handleStatusNotification
public void handleStatusNotification(AccountStatusNotification notification)
Description copied from class:AccountStatusNotificationHandler
Performs any processing that may be necessary in conjunction with the provided account status notification.- Specified by:
handleStatusNotification
in classAccountStatusNotificationHandler<ErrorLogAccountStatusNotificationHandlerCfg>
- Parameters:
notification
- The account status notification to be processed.
-
isConfigurationAcceptable
public boolean isConfigurationAcceptable(ErrorLogAccountStatusNotificationHandlerCfg configuration, ServerContext serverContext, List<LocalizableMessage> unacceptableReasons)
Description copied from class:AccountStatusNotificationHandler
Indicates whether the provided configuration is acceptable for this account status notification handler. It should be possible to call this method on an uninitialized account status notification handler instance in order to determine whether the handler would be able to use the provided configuration.- Overrides:
isConfigurationAcceptable
in classAccountStatusNotificationHandler<ErrorLogAccountStatusNotificationHandlerCfg>
- Parameters:
configuration
- The account status notification handler configuration for which to make the determination.serverContext
- The server contextunacceptableReasons
- 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 account status notification handler, orfalse
if not.
-
isConfigurationChangeAcceptable
public boolean isConfigurationChangeAcceptable(ErrorLogAccountStatusNotificationHandlerCfg configuration, List<LocalizableMessage> unacceptableReasons)
Description copied from interface:ConfigurationChangeListener
Indicates whether the proposed change to the configuration is acceptable to this change listener.- Specified by:
isConfigurationChangeAcceptable
in interfaceConfigurationChangeListener<ErrorLogAccountStatusNotificationHandlerCfg>
- 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, orfalse
if it is not.
-
applyConfigurationChange
public ConfigChangeResult applyConfigurationChange(ErrorLogAccountStatusNotificationHandlerCfg configuration)
Description copied from interface:ConfigurationChangeListener
Applies the configuration changes to this change listener.- Specified by:
applyConfigurationChange
in interfaceConfigurationChangeListener<ErrorLogAccountStatusNotificationHandlerCfg>
- Parameters:
configuration
- The new configuration containing the changes.- Returns:
- Returns information about the result of changing the configuration.
-
-