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 -
Method Summary
Modifier and TypeMethodDescriptionvoidonShutdown(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
-
Constructor Details
-
MBeanExposer
public MBeanExposer()
-
-
Method Details
-
onStatistics
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
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.
-