org.glassfish.jersey.server.internal.monitoring.jmx
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 (miroslav.fuksa at oracle.com)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MBeanExposer
public MBeanExposer()
onStatistics
public void onStatistics(MonitoringStatistics statistics)
- Description copied from interface:
MonitoringStatisticsListener
- The method is called when new statistics are available and statistics are passed as a argument.
- Specified by:
onStatistics in interface MonitoringStatisticsListener
- Parameters:
statistics - Newly calculated monitoring statistics.
onShutdown
public void onShutdown(Container container)
- Description copied from interface:
ContainerLifecycleListener
- Invoke at the
container shut-down. This method is invoked even before
the application is being stopped as a part of reload.
- Specified by:
onShutdown in interface ContainerLifecycleListener- Overrides:
onShutdown in class AbstractContainerLifecycleListener
- Parameters:
container - container that has been shut down.
Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.