Class ExecutionStatisticsDynamicBean
java.lang.Object
org.glassfish.jersey.server.internal.monitoring.jmx.ExecutionStatisticsDynamicBean
- All Implemented Interfaces:
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
ConstructorsConstructorDescriptionExecutionStatisticsDynamicBean(ExecutionStatistics executionStatistics, MBeanExposer mBeanExposer, String parentBeanName, String beanName) Create a new MXBean and register it into the mbean server usingmBeanExposer. -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String attribute) getAttributes(String[] attributes) voidsetAttribute(Attribute attribute) setAttributes(AttributeList attributes) voidupdateExecutionStatistics(ExecutionStatistics executionStatistics) Update the execution statistics that are exposed by this MBean.
-
Constructor Details
-
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 Details
-
updateExecutionStatistics
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
- Specified by:
getAttributesin interfaceDynamicMBean
-
setAttributes
- Specified by:
setAttributesin interfaceDynamicMBean
-
invoke
public Object invoke(String actionName, Object[] params, String[] signature) throws MBeanException, ReflectionException - Specified by:
invokein interfaceDynamicMBean- Throws:
MBeanExceptionReflectionException
-
getMBeanInfo
- Specified by:
getMBeanInfoin interfaceDynamicMBean
-