public class MBeanExposer extends AbstractContainerLifecycleListener implements MonitoringStatisticsListener
Constructor and Description |
---|
MBeanExposer() |
Modifier and Type | Method and Description |
---|---|
void |
onShutdown(Container container)
Invoke at the
container shut-down. |
void |
onStatistics(MonitoringStatistics statistics)
The method is called when new statistics are available and statistics are passed as an argument.
|
onReload, onStartup
public void onStatistics(MonitoringStatistics statistics)
MonitoringStatisticsListener
onStatistics
in interface MonitoringStatisticsListener
statistics
- Newly calculated monitoring statistics.public void onShutdown(Container container)
ContainerLifecycleListener
container
shut-down. This method is invoked even before
the application is being stopped as a part of reload.onShutdown
in interface ContainerLifecycleListener
onShutdown
in class AbstractContainerLifecycleListener
container
- container that has been shut down.Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.