twitter4j.management
Class APIStatisticsOpenMBean

java.lang.Object
  extended by twitter4j.management.APIStatisticsOpenMBean
All Implemented Interfaces:
javax.management.DynamicMBean

public class APIStatisticsOpenMBean
extends java.lang.Object
implements javax.management.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
Author:
Nick Dellamaggiore (nick.dellamaggiore gmail.com)

Field Summary
private  APIStatisticsMBean API_STATISTICS
           
private  javax.management.openmbean.TabularType API_STATISTICS_TYPE
           
private static java.lang.String[] ITEM_DESCRIPTIONS
           
private static java.lang.String[] ITEM_NAMES
           
private static javax.management.openmbean.OpenType[] ITEM_TYPES
           
private  javax.management.openmbean.CompositeType METHOD_STATS_TYPE
           
 
Constructor Summary
APIStatisticsOpenMBean(APIStatistics apiStatistics)
           
 
Method Summary
 java.lang.Object getAttribute(java.lang.String attribute)
           
 javax.management.AttributeList getAttributes(java.lang.String[] attributeNames)
           
 javax.management.MBeanInfo getMBeanInfo()
           
 javax.management.openmbean.TabularDataSupport getStatistics()
           
 java.lang.Object invoke(java.lang.String actionName, java.lang.Object[] params, java.lang.String[] signature)
           
 void reset()
           
 void setAttribute(javax.management.Attribute attribute)
           
 javax.management.AttributeList setAttributes(javax.management.AttributeList attributes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ITEM_NAMES

private static final java.lang.String[] ITEM_NAMES

ITEM_TYPES

private static final javax.management.openmbean.OpenType[] ITEM_TYPES

ITEM_DESCRIPTIONS

private static final java.lang.String[] ITEM_DESCRIPTIONS

METHOD_STATS_TYPE

private final javax.management.openmbean.CompositeType METHOD_STATS_TYPE

API_STATISTICS

private final APIStatisticsMBean API_STATISTICS

API_STATISTICS_TYPE

private final javax.management.openmbean.TabularType API_STATISTICS_TYPE
Constructor Detail

APIStatisticsOpenMBean

public APIStatisticsOpenMBean(APIStatistics apiStatistics)
Method Detail

getMBeanInfo

public javax.management.MBeanInfo getMBeanInfo()
Specified by:
getMBeanInfo in interface javax.management.DynamicMBean

getStatistics

public javax.management.openmbean.TabularDataSupport getStatistics()

reset

public void reset()

getAttribute

public java.lang.Object getAttribute(java.lang.String attribute)
                              throws javax.management.AttributeNotFoundException,
                                     javax.management.MBeanException,
                                     javax.management.ReflectionException
Specified by:
getAttribute in interface javax.management.DynamicMBean
Throws:
javax.management.AttributeNotFoundException
javax.management.MBeanException
javax.management.ReflectionException

getAttributes

public javax.management.AttributeList getAttributes(java.lang.String[] attributeNames)
Specified by:
getAttributes in interface javax.management.DynamicMBean

invoke

public java.lang.Object invoke(java.lang.String actionName,
                               java.lang.Object[] params,
                               java.lang.String[] signature)
                        throws javax.management.MBeanException,
                               javax.management.ReflectionException
Specified by:
invoke in interface javax.management.DynamicMBean
Throws:
javax.management.MBeanException
javax.management.ReflectionException

setAttribute

public void setAttribute(javax.management.Attribute attribute)
                  throws javax.management.AttributeNotFoundException,
                         javax.management.InvalidAttributeValueException,
                         javax.management.MBeanException,
                         javax.management.ReflectionException
Specified by:
setAttribute in interface javax.management.DynamicMBean
Throws:
javax.management.AttributeNotFoundException
javax.management.InvalidAttributeValueException
javax.management.MBeanException
javax.management.ReflectionException

setAttributes

public javax.management.AttributeList setAttributes(javax.management.AttributeList attributes)
Specified by:
setAttributes in interface javax.management.DynamicMBean