Class MBeanExposer
- java.lang.Object
-
- org.glassfish.jersey.server.spi.AbstractContainerLifecycleListener
-
- org.glassfish.jersey.server.internal.monitoring.jmx.MBeanExposer
-
- All Implemented Interfaces:
MonitoringStatisticsListener,ContainerLifecycleListener
public class MBeanExposer extends AbstractContainerLifecycleListener implements MonitoringStatisticsListener
The main exposer class of Jersey JMX MBeans. The class creates MBeans and contains methods that register and unregister MBeans.- Author:
- Miroslav Fuksa
-
-
Constructor Summary
Constructors Constructor Description MBeanExposer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonShutdown(Container container)Invoke at thecontainershut-down.voidonStatistics(MonitoringStatistics statistics)The method is called when new statistics are available and statistics are passed as an argument.-
Methods inherited from class org.glassfish.jersey.server.spi.AbstractContainerLifecycleListener
onReload, onStartup
-
-
-
-
Method Detail
-
onStatistics
public void onStatistics(MonitoringStatistics statistics)
Description copied from interface:MonitoringStatisticsListenerThe method is called when new statistics are available and statistics are passed as an argument.- Specified by:
onStatisticsin interfaceMonitoringStatisticsListener- Parameters:
statistics- Newly calculated monitoring statistics.
-
onShutdown
public void onShutdown(Container container)
Description copied from interface:ContainerLifecycleListenerInvoke at thecontainershut-down. This method is invoked even before the application is being stopped as a part of reload.- Specified by:
onShutdownin interfaceContainerLifecycleListener- Overrides:
onShutdownin classAbstractContainerLifecycleListener- Parameters:
container- container that has been shut down.
-
-