public class ExecutionStatisticsDynamicBean extends Object implements DynamicMBean
| Constructor and Description |
|---|
ExecutionStatisticsDynamicBean(ExecutionStatistics executionStatistics,
MBeanExposer mBeanExposer,
String parentBeanName,
String beanName)
Create a new MXBean and register it into the mbean server using
mBeanExposer. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public ExecutionStatisticsDynamicBean(ExecutionStatistics executionStatistics, MBeanExposer mBeanExposer, String parentBeanName, String beanName)
mBeanExposer.executionStatistics - Execution statistics to be exposed.mBeanExposer - mbean exposer.parentBeanName - Name of the parent mxbean.beanName - A required name of this exposed bean.public void updateExecutionStatistics(ExecutionStatistics executionStatistics)
executionStatistics - New execution statistics.public Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException
getAttribute in interface DynamicMBeanAttributeNotFoundExceptionMBeanExceptionReflectionExceptionpublic void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
setAttribute in interface DynamicMBeanAttributeNotFoundExceptionInvalidAttributeValueExceptionMBeanExceptionReflectionExceptionpublic AttributeList getAttributes(String[] attributes)
getAttributes in interface DynamicMBeanpublic AttributeList setAttributes(AttributeList attributes)
setAttributes in interface DynamicMBeanpublic Object invoke(String actionName, Object[] params, String[] signature) throws MBeanException, ReflectionException
invoke in interface DynamicMBeanMBeanExceptionReflectionExceptionpublic MBeanInfo getMBeanInfo()
getMBeanInfo in interface DynamicMBeanCopyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.