Package twitter4j.management
Class APIStatisticsOpenMBean
java.lang.Object
twitter4j.management.APIStatisticsOpenMBean
- All Implemented Interfaces:
DynamicMBean
Dynamic version of APIStatisticsMBean that wraps an APIStatisticsOpenMBean.
Provides a tabular view of method stats. This MBean can only run on JDK 1.5+
- Since:
- Twitter4J 2.2.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String attribute) getAttributes(String[] attributeNames) voidreset()reset statisticsvoidsetAttribute(Attribute attribute) setAttributes(AttributeList attributes)
-
Constructor Details
-
APIStatisticsOpenMBean
- Parameters:
apiStatistics- api statistics
-
-
Method Details
-
getMBeanInfo
- Specified by:
getMBeanInfoin interfaceDynamicMBean
-
getStatistics
- Returns:
- TabularDataSupport
-
reset
public void reset()reset statistics -
getAttribute
public Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException - Specified by:
getAttributein interfaceDynamicMBean- Throws:
AttributeNotFoundExceptionMBeanExceptionReflectionException
-
getAttributes
- Specified by:
getAttributesin interfaceDynamicMBean
-
invoke
public Object invoke(String actionName, Object[] params, String[] signature) throws MBeanException, ReflectionException - Specified by:
invokein interfaceDynamicMBean- Throws:
MBeanExceptionReflectionException
-
setAttribute
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException - Specified by:
setAttributein interfaceDynamicMBean- Throws:
AttributeNotFoundExceptionInvalidAttributeValueExceptionMBeanExceptionReflectionException
-
setAttributes
- Specified by:
setAttributesin interfaceDynamicMBean
-