| | |
| | | |
| | | |
| | | |
| | | // The current configuration for this alert handler. |
| | | /** The current configuration for this alert handler. */ |
| | | private AlertHandlerCfg currentConfig; |
| | | |
| | | // The sequence number generator used for this alert handler. |
| | | /** The sequence number generator used for this alert handler. */ |
| | | private AtomicLong sequenceNumber; |
| | | |
| | | // The DN of the configuration entry with which this alert handler is |
| | | // associated. |
| | | /** |
| | | * The DN of the configuration entry with which this alert handler is |
| | | * associated. |
| | | */ |
| | | private DN configEntryDN; |
| | | |
| | | // The JMX object name used for this JMX alert handler. |
| | | /** The JMX object name used for this JMX alert handler. */ |
| | | private ObjectName objectName; |
| | | |
| | | |
| | |
| | | |
| | | |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | public void initializeAlertHandler(JMXAlertHandlerCfg configuration) |
| | | throws ConfigException, InitializationException |
| | | { |
| | |
| | | |
| | | |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | public AlertHandlerCfg getAlertHandlerConfiguration() |
| | | { |
| | | return currentConfig; |
| | |
| | | |
| | | |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | public boolean isConfigurationAcceptable(AlertHandlerCfg configuration, |
| | | List<LocalizableMessage> unacceptableReasons) |
| | | { |
| | |
| | | |
| | | |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | public void finalizeAlertHandler() |
| | | { |
| | | // No action is required. |
| | |
| | | |
| | | |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | public void sendAlertNotification(AlertGenerator generator, String alertType, |
| | | LocalizableMessage alertMessage) |
| | | { |
| | |
| | | |
| | | |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | public boolean isConfigurationChangeAcceptable( |
| | | JMXAlertHandlerCfg configuration, |
| | | List<LocalizableMessage> unacceptableReasons) |
| | |
| | | |
| | | |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | public ConfigChangeResult applyConfigurationChange( |
| | | JMXAlertHandlerCfg configuration) |
| | | { |