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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onShutdown
(Container container) Invoke at thecontainer
shut-down.void
onStatistics
(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:MonitoringStatisticsListener
The method is called when new statistics are available and statistics are passed as an argument.- Specified by:
onStatistics
in interfaceMonitoringStatisticsListener
- Parameters:
statistics
- Newly calculated monitoring statistics.
-
onShutdown
Description copied from interface:ContainerLifecycleListener
Invoke at thecontainer
shut-down. This method is invoked even before the application is being stopped as a part of reload.- Specified by:
onShutdown
in interfaceContainerLifecycleListener
- Overrides:
onShutdown
in classAbstractContainerLifecycleListener
- Parameters:
container
- container that has been shut down.
-