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
-
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(String attribute) getAttributes
(String[] attributeNames) void
reset()
reset statisticsvoid
setAttribute
(Attribute attribute) setAttributes
(AttributeList attributes)
-
Constructor Details
-
APIStatisticsOpenMBean
- Parameters:
apiStatistics
- api statistics
-
-
Method Details
-
getMBeanInfo
- Specified by:
getMBeanInfo
in interfaceDynamicMBean
-
getStatistics
- Returns:
- TabularDataSupport
-
reset
public void reset()reset statistics -
getAttribute
public Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException - Specified by:
getAttribute
in interfaceDynamicMBean
- Throws:
AttributeNotFoundException
MBeanException
ReflectionException
-
getAttributes
- Specified by:
getAttributes
in interfaceDynamicMBean
-
invoke
public Object invoke(String actionName, Object[] params, String[] signature) throws MBeanException, ReflectionException - Specified by:
invoke
in interfaceDynamicMBean
- Throws:
MBeanException
ReflectionException
-
setAttribute
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException - Specified by:
setAttribute
in interfaceDynamicMBean
- Throws:
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException
-
setAttributes
- Specified by:
setAttributes
in interfaceDynamicMBean
-