| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.api; |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | |
| | | * related to the server |
| | | * configuration. |
| | | */ |
| | | public void initializeAlertHandler(T configuration) |
| | | void initializeAlertHandler(T configuration) |
| | | throws ConfigException, InitializationException; |
| | | |
| | | |
| | |
| | | * |
| | | * @return The current configuration for this alert handler. |
| | | */ |
| | | public AlertHandlerCfg getAlertHandlerConfiguration(); |
| | | AlertHandlerCfg getAlertHandlerConfiguration(); |
| | | |
| | | |
| | | |
| | |
| | | * @return {@code true} if the provided configuration is |
| | | * acceptable, or {@code false} if it is not. |
| | | */ |
| | | public boolean isConfigurationAcceptable( |
| | | boolean isConfigurationAcceptable( |
| | | AlertHandlerCfg configuration, |
| | | List<LocalizableMessage> unacceptableReasons); |
| | | |
| | |
| | | * Performs any necessary cleanup that may be necessary when this |
| | | * alert handler is finalized. |
| | | */ |
| | | public void finalizeAlertHandler(); |
| | | void finalizeAlertHandler(); |
| | | |
| | | |
| | | |
| | |
| | | * @param alertMessage A message (possibly {@code null}) that can |
| | | * provide more information about this alert. |
| | | */ |
| | | public void sendAlertNotification(AlertGenerator generator, |
| | | void sendAlertNotification(AlertGenerator generator, |
| | | String alertType, |
| | | LocalizableMessage alertMessage); |
| | | } |