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) void
setAttribute
(Attribute attribute) setAttributes
(AttributeList attributes) void
updateExecutionStatistics
(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:
getAttribute
in interfaceDynamicMBean
- Throws:
AttributeNotFoundException
MBeanException
ReflectionException
-
setAttribute
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException - Specified by:
setAttribute
in interfaceDynamicMBean
- Throws:
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException
-
getAttributes
- Specified by:
getAttributes
in interfaceDynamicMBean
-
setAttributes
- Specified by:
setAttributes
in interfaceDynamicMBean
-
invoke
public Object invoke(String actionName, Object[] params, String[] signature) throws MBeanException, ReflectionException - Specified by:
invoke
in interfaceDynamicMBean
- Throws:
MBeanException
ReflectionException
-
getMBeanInfo
- Specified by:
getMBeanInfo
in interfaceDynamicMBean
-