tigase.stats
Class StatisticsProvider

java.lang.Object
  extended by javax.management.StandardMBean
      extended by tigase.stats.StatisticsProvider
All Implemented Interfaces:
javax.management.DynamicMBean, javax.management.MBeanRegistration, StatisticsProviderMBean

public class StatisticsProvider
extends javax.management.StandardMBean
implements StatisticsProviderMBean

Class StatisticsProvider

Author:
kobit

Constructor Summary
StatisticsProvider(StatisticsCollector theRef)
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.String> getAllStats(int param0)
          Operation exposed for management
 java.util.List getComponentsNames()
          Get Attribute exposed for management
 java.util.Map<java.lang.String,java.lang.String> getComponentStats(java.lang.String param0, int param1)
          Operation exposed for management
protected  java.lang.String getDescription(javax.management.MBeanAttributeInfo info)
          Override customization hook: You can supply a customized description for MBeanAttributeInfo.getDescription()
protected  java.lang.String getDescription(javax.management.MBeanInfo info)
          Override customization hook: You can supply a customized description for MBeanInfo.getDescription()
protected  java.lang.String getDescription(javax.management.MBeanOperationInfo info)
          Override customization hook: You can supply a customized description for MBeanOperationInfo.getDescription()
protected  java.lang.String getDescription(javax.management.MBeanOperationInfo op, javax.management.MBeanParameterInfo param, int sequence)
          Override customization hook: You can supply a customized description for MBeanParameterInfo.getDescription()
 javax.management.MBeanInfo getMBeanInfo()
           
 java.lang.String getName()
          Get Attribute exposed for management
 javax.management.MBeanNotificationInfo[] getNotificationInfo()
           
protected  java.lang.String getParameterName(javax.management.MBeanOperationInfo op, javax.management.MBeanParameterInfo param, int sequence)
          Override customization hook: You can supply a customized description for MBeanParameterInfo.getName()
 
Methods inherited from class javax.management.StandardMBean
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInterface, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatisticsProvider

public StatisticsProvider(StatisticsCollector theRef)
                   throws javax.management.NotCompliantMBeanException
Throws:
javax.management.NotCompliantMBeanException
Method Detail

getMBeanInfo

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

getNotificationInfo

public javax.management.MBeanNotificationInfo[] getNotificationInfo()

getDescription

protected java.lang.String getDescription(javax.management.MBeanInfo info)
Override customization hook: You can supply a customized description for MBeanInfo.getDescription()

Overrides:
getDescription in class javax.management.StandardMBean
Parameters:
info -
Returns:

getDescription

protected java.lang.String getDescription(javax.management.MBeanAttributeInfo info)
Override customization hook: You can supply a customized description for MBeanAttributeInfo.getDescription()

Overrides:
getDescription in class javax.management.StandardMBean
Parameters:
info -
Returns:

getDescription

protected java.lang.String getDescription(javax.management.MBeanOperationInfo op,
                                          javax.management.MBeanParameterInfo param,
                                          int sequence)
Override customization hook: You can supply a customized description for MBeanParameterInfo.getDescription()

Overrides:
getDescription in class javax.management.StandardMBean
Parameters:
op -
param -
sequence -
Returns:

getParameterName

protected java.lang.String getParameterName(javax.management.MBeanOperationInfo op,
                                            javax.management.MBeanParameterInfo param,
                                            int sequence)
Override customization hook: You can supply a customized description for MBeanParameterInfo.getName()

Overrides:
getParameterName in class javax.management.StandardMBean
Parameters:
op -
param -
sequence -
Returns:

getDescription

protected java.lang.String getDescription(javax.management.MBeanOperationInfo info)
Override customization hook: You can supply a customized description for MBeanOperationInfo.getDescription()

Overrides:
getDescription in class javax.management.StandardMBean
Parameters:
info -
Returns:

getComponentsNames

public java.util.List getComponentsNames()
Get Attribute exposed for management

Specified by:
getComponentsNames in interface StatisticsProviderMBean
Returns:

getName

public java.lang.String getName()
Get Attribute exposed for management

Specified by:
getName in interface StatisticsProviderMBean
Returns:

getAllStats

public java.util.Map<java.lang.String,java.lang.String> getAllStats(int param0)
Operation exposed for management

Specified by:
getAllStats in interface StatisticsProviderMBean
Parameters:
param0 - Statistics level, 0 - All, 500 - Medium, 800 - Minimal
Returns:
java.util.Map

getComponentStats

public java.util.Map<java.lang.String,java.lang.String> getComponentStats(java.lang.String param0,
                                                                          int param1)
Operation exposed for management

Specified by:
getComponentStats in interface StatisticsProviderMBean
Parameters:
param0 - The component name to provide statistics for
param1 - Statistics level, 0 - All, 500 - Medium, 800 - Minimal
Returns:
java.util.Map


Copyright © 2009 Tigase. All Rights Reserved.