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

java.lang.Object
  extended by org.glassfish.jersey.server.internal.monitoring.jmx.ResourceMxBeanImpl
All Implemented Interfaces:
ResourceMXBean

public class ResourceMxBeanImpl
extends Object
implements ResourceMXBean

MXBean implementing the ResourceMethodMXBean MXBean interface.

Author:
Miroslav Fuksa (miroslav.fuksa at oracle.com)

Constructor Summary
ResourceMxBeanImpl(ResourceStatistics resourceStatistics, String name, boolean uriResource, MBeanExposer mBeanExposer, String parentName)
          Create and register new MXBean into the mbean server using the mBeanExposer.
 
Method Summary
 String getName()
          Get the name of the resource.
 void updateResourceStatistics(ResourceStatistics resourceStatistics)
          Update the statistics of this MXBean and of nested MXBeans.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceMxBeanImpl

public ResourceMxBeanImpl(ResourceStatistics resourceStatistics,
                          String name,
                          boolean uriResource,
                          MBeanExposer mBeanExposer,
                          String parentName)
Create and register new MXBean into the mbean server using the mBeanExposer.

Parameters:
resourceStatistics - resource statistics that should be exposed by this and nested MXBeans.
name - Name of the resource.
uriResource - true if the resource is identified by URI (and not by java class name for example).
mBeanExposer - MBean exposer.
parentName - Name of the parent bean.
Method Detail

updateResourceStatistics

public void updateResourceStatistics(ResourceStatistics resourceStatistics)
Update the statistics of this MXBean and of nested MXBeans.

Parameters:
resourceStatistics - New resource statistics.

getName

public String getName()
Description copied from interface: ResourceMXBean
Get the name of the resource. The name can be URI or resource class name depending on the usage of MXBean.

Specified by:
getName in interface ResourceMXBean
Returns:
Name of the MXBean.


Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.