org.glassfish.jersey.server.internal.monitoring.jmx
Class MBeanExposer

java.lang.Object
  extended by org.glassfish.jersey.server.spi.AbstractContainerLifecycleListener
      extended by 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)

Constructor Summary
MBeanExposer()
           
 
Method Summary
 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 a argument.
 
Methods inherited from class org.glassfish.jersey.server.spi.AbstractContainerLifecycleListener
onReload, onStartup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBeanExposer

public MBeanExposer()
Method Detail

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.