org.ow2.easybeans.component.statistic.management
Class StatisticComponentMBean

java.lang.Object
  extended by org.apache.commons.modeler.BaseModelMBean
      extended by org.ow2.easybeans.component.statistic.management.StatisticComponentMBean
All Implemented Interfaces:
javax.management.DynamicMBean, javax.management.MBeanRegistration, javax.management.modelmbean.ModelMBean, javax.management.modelmbean.ModelMBeanNotificationBroadcaster, javax.management.NotificationBroadcaster, javax.management.PersistentMBean

public class StatisticComponentMBean
extends org.apache.commons.modeler.BaseModelMBean

StatisticComponentMBean MBean Base.

Author:
missonng

Field Summary
 
Fields inherited from class org.apache.commons.modeler.BaseModelMBean
attributeBroadcaster, attributes, generalBroadcaster, info, oname, registry, resource, resourceType, source
 
Constructor Summary
StatisticComponentMBean()
          Create the mbean.
 
Method Summary
 java.lang.String getStatisticDescription(java.lang.String statisticId)
          Get the statistic description for the given statistic.
 java.util.List<java.lang.String> getStatisticFactoryIds()
          Get registered statistic factory ids.
 java.lang.String getStatisticFactoryMode(java.lang.String statisticFactoryId)
          Get the statistic factory mode for the given statistic factory.
 boolean getStatisticFactoryState(java.lang.String statisticFactoryId)
          Get the statistic factory state for the given statistic factory.
 java.util.List<java.lang.String> getStatisticIds()
          Get all statistic ids.
 long getStatisticLastSampleTime(java.lang.String statisticId)
          Get the statistic last sample time for the given statistic.
 java.lang.String getStatisticMode(java.lang.String statisticId)
          Get the statistic mode for the given statistic.
 java.lang.String getStatisticName(java.lang.String statisticId)
          Get the statistic name for the given statistic.
 java.util.List<java.lang.String> getStatisticProviderIds()
          Get registered statistic provider ids.
 java.lang.String getStatisticProviderMode(java.lang.String statisticProviderId)
          Get the statistic provider mode for the given statistic provider.
 boolean getStatisticProviderState(java.lang.String statisticProviderId)
          Get the statistic provider state for the given statistic provider.
 long getStatisticStartTime(java.lang.String statisticId)
          Get the statistic start time for the given statistic.
 boolean getStatisticState(java.lang.String statisticId)
          Get the statistic state for the given statistic.
 java.lang.String getStatisticValue(java.lang.String statisticId)
          Get the statistic value for the given statistic.
 void resetStatistic(java.lang.String statisticId)
          Reset the given statistic.
 void setStatisticFactoryMode(java.lang.String statisticFactoryId, java.lang.String statisticFactoryMode)
          Set the statistic factory mode for the given statistic factory.
 void setStatisticFactoryState(java.lang.String statisticFactoryId, boolean statisticFactoryState)
          Set the statistic factory state for the given statistic factory.
The statistic factory mode is automatically set to MANUAL.
 void setStatisticMode(java.lang.String statisticId, java.lang.String statisticMode)
          Set the statistic mode for the given statistic.
 void setStatisticProviderMode(java.lang.String statisticProviderId, java.lang.String statisticProviderMode)
          Set the statistic provider mode for the given statistic provider.
 void setStatisticProviderState(java.lang.String statisticProviderId, boolean statisticProviderState)
          Set the statistic provider state for the given statistic provider.
The statistic provider mode is automatically set to MANUAL.
 void setStatisticState(java.lang.String statisticId, boolean statisticStateValue)
          Set the statistic state for the given statistic.
The statistic mode is automatically set to MANUAL.
 
Methods inherited from class org.apache.commons.modeler.BaseModelMBean
addAttributeChangeNotificationListener, addNotificationListener, createDefaultModelMBeanInfo, createResource, getAttribute, getAttributes, getClassName, getJmxName, getManagedResource, getMBeanInfo, getModelerType, getNotificationInfo, getObjectName, getRegistry, initModelInfo, invoke, isModelMBeanInfoValid, load, postDeregister, postRegister, preDeregister, preRegister, removeAttributeChangeNotificationListener, removeAttributeChangeNotificationListener, removeNotificationListener, removeNotificationListener, removeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification, setAttribute, setAttributes, setManagedResource, setModeledType, setModelMBeanInfo, setRegistry, store, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StatisticComponentMBean

public StatisticComponentMBean()
                        throws javax.management.MBeanException
Create the mbean.

Throws:
javax.management.MBeanException - if the super constructor fails.
Method Detail

getStatisticFactoryIds

public java.util.List<java.lang.String> getStatisticFactoryIds()
                                                        throws javax.management.MBeanException
Get registered statistic factory ids.

Returns:
The statistic factory ids.
Throws:
javax.management.MBeanException - If an error occurs.

getStatisticFactoryMode

public java.lang.String getStatisticFactoryMode(java.lang.String statisticFactoryId)
                                         throws javax.management.MBeanException
Get the statistic factory mode for the given statistic factory.

Parameters:
statisticFactoryId - The statistic factory id.
Returns:
The statistic factory mode.
Throws:
javax.management.MBeanException - If an error occurs.

setStatisticFactoryMode

public void setStatisticFactoryMode(java.lang.String statisticFactoryId,
                                    java.lang.String statisticFactoryMode)
                             throws javax.management.MBeanException
Set the statistic factory mode for the given statistic factory.

Parameters:
statisticFactoryId - The statistic factory id.
statisticFactoryMode - The statistic factory mode.
Throws:
javax.management.MBeanException - If an error occurs.

getStatisticFactoryState

public boolean getStatisticFactoryState(java.lang.String statisticFactoryId)
                                 throws javax.management.MBeanException
Get the statistic factory state for the given statistic factory.

Parameters:
statisticFactoryId - The statistic factory id.
Returns:
The statistic factory state.
Throws:
javax.management.MBeanException - If an error occurs.

setStatisticFactoryState

public void setStatisticFactoryState(java.lang.String statisticFactoryId,
                                     boolean statisticFactoryState)
                              throws javax.management.MBeanException
Set the statistic factory state for the given statistic factory.
The statistic factory mode is automatically set to MANUAL.

Parameters:
statisticFactoryId - The statistic factory id.
statisticFactoryState - The statistic factory state
Throws:
javax.management.MBeanException - If an error occurs.

getStatisticProviderIds

public java.util.List<java.lang.String> getStatisticProviderIds()
                                                         throws javax.management.MBeanException
Get registered statistic provider ids.

Returns:
The statistic provider ids.
Throws:
javax.management.MBeanException - If an error occurs.

getStatisticProviderMode

public java.lang.String getStatisticProviderMode(java.lang.String statisticProviderId)
                                          throws javax.management.MBeanException
Get the statistic provider mode for the given statistic provider.

Parameters:
statisticProviderId - The statistic provider id.
Returns:
The statistic provider mode.
Throws:
javax.management.MBeanException - If an error occurs.

setStatisticProviderMode

public void setStatisticProviderMode(java.lang.String statisticProviderId,
                                     java.lang.String statisticProviderMode)
                              throws javax.management.MBeanException
Set the statistic provider mode for the given statistic provider.

Parameters:
statisticProviderId - The statistic provider id.
statisticProviderMode - The statistic provider mode.
Throws:
javax.management.MBeanException - If an error occurs.

getStatisticProviderState

public boolean getStatisticProviderState(java.lang.String statisticProviderId)
                                  throws javax.management.MBeanException
Get the statistic provider state for the given statistic provider.

Parameters:
statisticProviderId - The statistic provider id.
Returns:
The statistic provider state.
Throws:
javax.management.MBeanException - If an error occurs.

setStatisticProviderState

public void setStatisticProviderState(java.lang.String statisticProviderId,
                                      boolean statisticProviderState)
                               throws javax.management.MBeanException
Set the statistic provider state for the given statistic provider.
The statistic provider mode is automatically set to MANUAL.

Parameters:
statisticProviderId - The statistic provider id.
statisticProviderState - The statistic provider state.
Throws:
javax.management.MBeanException - If an error occurs.

getStatisticIds

public java.util.List<java.lang.String> getStatisticIds()
                                                 throws javax.management.MBeanException
Get all statistic ids.

Returns:
The statistic ids.
Throws:
javax.management.MBeanException - If an error occurs.

getStatisticMode

public java.lang.String getStatisticMode(java.lang.String statisticId)
                                  throws javax.management.MBeanException
Get the statistic mode for the given statistic.

Parameters:
statisticId - The statistic id.
Returns:
The statistic mode.
Throws:
javax.management.MBeanException - If an error occurs.

setStatisticMode

public void setStatisticMode(java.lang.String statisticId,
                             java.lang.String statisticMode)
                      throws javax.management.MBeanException
Set the statistic mode for the given statistic.

Parameters:
statisticId - The statistic id.
statisticMode - The statistic mode.
Throws:
javax.management.MBeanException - If an error occurs.

getStatisticState

public boolean getStatisticState(java.lang.String statisticId)
                          throws javax.management.MBeanException
Get the statistic state for the given statistic.

Parameters:
statisticId - The statistic id.
Returns:
The statistic state.
Throws:
javax.management.MBeanException - If an error occurs.

setStatisticState

public void setStatisticState(java.lang.String statisticId,
                              boolean statisticStateValue)
                       throws javax.management.MBeanException
Set the statistic state for the given statistic.
The statistic mode is automatically set to MANUAL.

Parameters:
statisticId - The statistic id.
statisticStateValue - The statistic state.
Throws:
javax.management.MBeanException - If an error occurs.

resetStatistic

public void resetStatistic(java.lang.String statisticId)
                    throws javax.management.MBeanException
Reset the given statistic.

Parameters:
statisticId - The statistic id to reset.
Throws:
javax.management.MBeanException - If an error occurs.

getStatisticName

public java.lang.String getStatisticName(java.lang.String statisticId)
                                  throws javax.management.MBeanException
Get the statistic name for the given statistic.

Parameters:
statisticId - The statistic id.
Returns:
The statistic name.
Throws:
javax.management.MBeanException - If an error occurs.

getStatisticDescription

public java.lang.String getStatisticDescription(java.lang.String statisticId)
                                         throws javax.management.MBeanException
Get the statistic description for the given statistic.

Parameters:
statisticId - The statistic id.
Returns:
The statistic description.
Throws:
javax.management.MBeanException - If an error occurs.

getStatisticValue

public java.lang.String getStatisticValue(java.lang.String statisticId)
                                   throws javax.management.MBeanException
Get the statistic value for the given statistic.

Parameters:
statisticId - The statistic id.
Returns:
The statistic value.
Throws:
javax.management.MBeanException - If an error occurs.

getStatisticStartTime

public long getStatisticStartTime(java.lang.String statisticId)
                           throws javax.management.MBeanException
Get the statistic start time for the given statistic.

Parameters:
statisticId - The statistic id.
Returns:
The statistic start time.
Throws:
javax.management.MBeanException - If an error occurs.

getStatisticLastSampleTime

public long getStatisticLastSampleTime(java.lang.String statisticId)
                                throws javax.management.MBeanException
Get the statistic last sample time for the given statistic.

Parameters:
statisticId - The statistic id.
Returns:
The statistic last sample time.
Throws:
javax.management.MBeanException - If an error occurs.


Copyright © 2006-2009 OW2 Consortium. All Rights Reserved.