Class ExecutionStatisticsDynamicBean
- java.lang.Object
-
- 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
-
-
Constructor Summary
Constructors Constructor Description ExecutionStatisticsDynamicBean(ExecutionStatistics executionStatistics, MBeanExposer mBeanExposer, String parentBeanName, String beanName)Create a new MXBean and register it into the mbean server usingmBeanExposer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetAttribute(String attribute)AttributeListgetAttributes(String[] attributes)MBeanInfogetMBeanInfo()Objectinvoke(String actionName, Object[] params, String[] signature)voidsetAttribute(Attribute attribute)AttributeListsetAttributes(AttributeList attributes)voidupdateExecutionStatistics(ExecutionStatistics executionStatistics)Update the execution statistics that are exposed by this MBean.
-
-
-
Constructor Detail
-
ExecutionStatisticsDynamicBean
public ExecutionStatisticsDynamicBean(ExecutionStatistics executionStatistics, MBeanExposer mBeanExposer, String parentBeanName, String beanName)
Create a new MXBean and register it into the mbean server usingmBeanExposer.- 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:
getAttributein interfaceDynamicMBean- Throws:
AttributeNotFoundExceptionMBeanExceptionReflectionException
-
setAttribute
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
- Specified by:
setAttributein interfaceDynamicMBean- Throws:
AttributeNotFoundExceptionInvalidAttributeValueExceptionMBeanExceptionReflectionException
-
getAttributes
public AttributeList getAttributes(String[] attributes)
- Specified by:
getAttributesin interfaceDynamicMBean
-
setAttributes
public AttributeList setAttributes(AttributeList attributes)
- Specified by:
setAttributesin interfaceDynamicMBean
-
invoke
public Object invoke(String actionName, Object[] params, String[] signature) throws MBeanException, ReflectionException
- Specified by:
invokein interfaceDynamicMBean- Throws:
MBeanExceptionReflectionException
-
getMBeanInfo
public MBeanInfo getMBeanInfo()
- Specified by:
getMBeanInfoin interfaceDynamicMBean
-
-