com.sun.mfwk.util.instrum
Class MfMetric
java.lang.Object
   javax.management.NotificationBroadcasterSupport
javax.management.NotificationBroadcasterSupport
       com.sun.mfwk.util.instrum.MfStatus
com.sun.mfwk.util.instrum.MfStatus
           com.sun.mfwk.util.instrum.MfMetric
com.sun.mfwk.util.instrum.MfMetric
- All Implemented Interfaces: 
- java.util.EventListener, javax.management.MBeanRegistration, MfMetricMBean, MfStatusMBean, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, javax.management.NotificationListener
- Direct Known Subclasses: 
- MfExternalResourceMetrics, MfResourceMetrics, MfTransactionMetrics
- public abstract class MfMetric- extends MfStatus- implements MfMetricMBean, javax.management.MBeanRegistration, javax.management.NotificationListener
MfMetric contains the generic information for all metric types
 
 
 
 
| Methods inherited from class com.sun.mfwk.util.instrum.MfStatus | 
| getAvailabilityState, getAvailStateLastChange, getDegradedTime, getOperationalState, getOpsStateLastChange, getRunningTime, setAvailabilityState, setAvailStateLastChange, setDegradedTime, setOperationalState, setOpsStateLastChange, setRunningTime | 
 
| Methods inherited from class javax.management.NotificationBroadcasterSupport | 
| addNotificationListener, getNotificationInfo, removeNotificationListener, removeNotificationListener, sendNotification | 
 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
MfMetric
public MfMetric()
enableMonitoring
public void enableMonitoring()
- Enables the monitoring for this instance.
 
- 
- Specified by:
- enableMonitoringin interface- MfMetricMBean
 
- 
 
disableMonitoring
public void disableMonitoring()
- Disables the monitoring for this instance.
 
- 
- Specified by:
- disableMonitoringin interface- MfMetricMBean
 
- 
 
isMonitoringEnabled
public boolean isMonitoringEnabled()
- Check if the instrumentation is disabled for this instance.
 
- 
- Specified by:
- isMonitoringEnabledin interface- MfMetricMBean
 
- 
 
resetMetrics
public abstract void resetMetrics()
- Reset all the metrics.
 
- 
- Specified by:
- resetMetricsin interface- MfMetricMBean
 
- 
 
handleNotification
public void handleNotification(javax.management.Notification notification,
                               java.lang.Object handback)
- 
- Specified by:
- handleNotificationin interface- javax.management.NotificationListener
 
- 
 
postDeregister
public void postDeregister()
- 
- Specified by:
- postDeregisterin interface- javax.management.MBeanRegistration
 
- 
 
postRegister
public void postRegister(java.lang.Boolean registrationDone)
- 
- Specified by:
- postRegisterin interface- javax.management.MBeanRegistration
 
- 
 
preDeregister
public void preDeregister()
                   throws java.lang.Exception
- 
- Specified by:
- preDeregisterin interface- javax.management.MBeanRegistration
 
- 
- Throws:
- java.lang.Exception
 
preRegister
public javax.management.ObjectName preRegister(javax.management.MBeanServer server,
                                               javax.management.ObjectName name)
                                        throws java.lang.Exception
- 
- Specified by:
- preRegisterin interface- javax.management.MBeanRegistration
 
- 
- Throws:
- java.lang.Exception