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

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

public class ExecutionStatisticsDynamicBean
extends Object
implements DynamicMBean

Dynamic MBean that exposes information about execution statistics. The exposed information contains execution statistics for various time window sizes.

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

Constructor Summary
ExecutionStatisticsDynamicBean(ExecutionStatistics executionStatistics, MBeanExposer mBeanExposer, String parentBeanName, String beanName)
          Create a new MXBean and register it into the mbean server using mBeanExposer.
 
Method Summary
 Object getAttribute(String attribute)
           
 AttributeList getAttributes(String[] attributes)
           
 MBeanInfo getMBeanInfo()
           
 Object invoke(String actionName, Object[] params, String[] signature)
           
 void setAttribute(Attribute attribute)
           
 AttributeList setAttributes(AttributeList attributes)
           
 void updateExecutionStatistics(ExecutionStatistics executionStatistics)
          Update the execution statistics that are exposed by this MBean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecutionStatisticsDynamicBean

public ExecutionStatisticsDynamicBean(ExecutionStatistics executionStatistics,
                                      MBeanExposer mBeanExposer,
                                      String parentBeanName,
                                      String beanName)
Create a new MXBean and register it into the mbean server using mBeanExposer.

Parameters:
executionStatistics - Execution statistics to be exposed.
mBeanExposer - mbean exposer.
parentBeanName - Name of the parent mxbean.
beanName - A required name of this exposed bean.
Method Detail

updateExecutionStatistics

public void updateExecutionStatistics(ExecutionStatistics executionStatistics)
Update the execution statistics that are exposed by this MBean.

Parameters:
executionStatistics - New execution statistics.

getAttribute

public Object getAttribute(String attribute)
                    throws AttributeNotFoundException,
                           MBeanException,
                           ReflectionException
Specified by:
getAttribute in interface DynamicMBean
Throws:
AttributeNotFoundException
MBeanException
ReflectionException

setAttribute

public void setAttribute(Attribute attribute)
                  throws AttributeNotFoundException,
                         InvalidAttributeValueException,
                         MBeanException,
                         ReflectionException
Specified by:
setAttribute in interface DynamicMBean
Throws:
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException

getAttributes

public AttributeList getAttributes(String[] attributes)
Specified by:
getAttributes in interface DynamicMBean

setAttributes

public AttributeList setAttributes(AttributeList attributes)
Specified by:
setAttributes in interface DynamicMBean

invoke

public Object invoke(String actionName,
                     Object[] params,
                     String[] signature)
              throws MBeanException,
                     ReflectionException
Specified by:
invoke in interface DynamicMBean
Throws:
MBeanException
ReflectionException

getMBeanInfo

public MBeanInfo getMBeanInfo()
Specified by:
getMBeanInfo in interface DynamicMBean


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