Update the alert handler API to add a finalizeAlertHandler method that should
be called whenever the alert handler is taken out of service to ensure that it
releases any resources that it might have had open.
| | |
| | | |
| | | |
| | | /** |
| | | * Performs any necessary cleanup that may be necessary when this |
| | | * alert handler is finalized. |
| | | */ |
| | | public void finalizeAlertHandler(); |
| | | |
| | | |
| | | |
| | | /** |
| | | * Sends an alert notification based on the provided information. |
| | | * |
| | | * @param generator The alert generator that created the alert. |
| | |
| | | } |
| | | |
| | | |
| | | // Shut down all of the alert handlers. |
| | | for (AlertHandler alertHandler : directoryServer.alertHandlers) |
| | | { |
| | | alertHandler.finalizeAlertHandler(); |
| | | } |
| | | |
| | | |
| | | // Deregister all of the JMX MBeans. |
| | | Set mBeanSet = directoryServer.mBeanServer.queryMBeans(null, null); |
| | | for (Object o : mBeanSet) |
| | |
| | | |
| | | |
| | | /** |
| | | * Performs any necessary cleanup that may be necessary when this |
| | | * alert handler is finalized. |
| | | */ |
| | | public void finalizeAlertHandler() |
| | | { |
| | | assert debugEnter(CLASS_NAME, "finalizeAlertHandler"); |
| | | |
| | | // No action is required. |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Retrieves the JMX object name for this JMX alert handler. |
| | | * |
| | | * @return The JMX object name for this JMX alert handler. |