org.rhq.enterprise.server.alert.engine.mbean
Class AlertConditionCacheMonitor

java.lang.Object
  extended by org.rhq.enterprise.server.alert.engine.mbean.AlertConditionCacheMonitor
All Implemented Interfaces:
MBeanRegistration, AlertConditionCacheMonitorMBean

public class AlertConditionCacheMonitor
extends Object
implements AlertConditionCacheMonitorMBean, MBeanRegistration

An MBean that exposes various structures contained with the AlertConditionCache

Author:
Joseph Marques

Field Summary
 AtomicInteger availabilityCacheElementMatches
           
 AtomicLong availabilityProcessingTime
           
 AtomicInteger calltimeCacheElementMatches
           
 AtomicLong calltimeProcessingTime
           
 AtomicInteger driftCacheElementMatches
           
 AtomicLong driftProcessingTime
           
 AtomicInteger eventCacheElementMatches
           
 AtomicLong eventProcessingTime
           
 AtomicInteger measurementCacheElementMatches
           
 AtomicLong measurementProcessingTime
           
 AtomicInteger operationCacheElementMatches
           
 AtomicLong operationProcessingTime
           
 AtomicInteger resourceConfigurationCacheElementMatches
           
 AtomicLong resourceConfigurationProcessingTime
           
 AtomicInteger totalCacheElementMatches
           
 AtomicLong totalProcessingTime
           
 
Constructor Summary
AlertConditionCacheMonitor()
           
 
Method Summary
 int getAvailabilityCacheElementCount()
           
 int getAvailabilityCacheElementMatches()
           
 long getAvailabilityProcessingTime()
           
 Map<String,Integer> getCacheCounts()
           
 int getCallTimeCacheElementCount()
           
 int getCallTimeCacheElementMatches()
           
 long getCallTimeProcessingTime()
           
 int getDriftCacheElementCount()
           
 int getDriftCacheElementMatches()
           
 long getDriftProcessingTime()
           
 int getEventCacheElementCount()
           
 int getEventCacheElementMatches()
           
 long getEventProcessingTime()
           
static AlertConditionCacheMonitorMBean getMBean()
           
 int getMeasurementCacheElementCount()
           
 int getMeasurementCacheElementMatches()
           
 long getMeasurementProcessingTime()
           
 int getOperationCacheElementCount()
           
 int getOperationCacheElementMatches()
           
 long getOperationProcessingTime()
           
 int getResourceConfigurationCacheElementCount()
           
 int getResourceConfigurationCacheElementMatches()
           
 int getTotalCacheElementCount()
          Takes all the counts from getCacheCounts() and returns the sum.
 int getTotalCacheElementMatches()
           
 long getTotalProcessingTime()
           
 void incrementAvailabilityCacheElementMatches(int matches)
           
 void incrementAvailabilityProcessingTime(long moreMillis)
           
 void incrementCallTimeCacheElementMatches(int matches)
           
 void incrementCallTimeProcessingTime(long moreMillis)
           
 void incrementDriftCacheElementMatches(int matches)
           
 void incrementDriftProcessingTime(long moreMillis)
           
 void incrementEventCacheElementMatches(int matches)
           
 void incrementEventProcessingTime(long moreMillis)
           
 void incrementMeasurementCacheElementMatches(int matches)
           
 void incrementMeasurementProcessingTime(long moreMillis)
           
 void incrementOperationCacheElementMatches(int matches)
           
 void incrementOperationProcessingTime(long moreMillis)
           
 void incrementResourceConfigurationCacheElementMatches(int matches)
           
 void incrementResourceConfigurationProcessingTime(long moreMillis)
           
 void postDeregister()
           
 void postRegister(Boolean registrationDone)
           
 void preDeregister()
           
 ObjectName preRegister(MBeanServer server, ObjectName name)
           
 void reloadCaches()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

availabilityCacheElementMatches

public AtomicInteger availabilityCacheElementMatches

eventCacheElementMatches

public AtomicInteger eventCacheElementMatches

measurementCacheElementMatches

public AtomicInteger measurementCacheElementMatches

resourceConfigurationCacheElementMatches

public AtomicInteger resourceConfigurationCacheElementMatches

operationCacheElementMatches

public AtomicInteger operationCacheElementMatches

calltimeCacheElementMatches

public AtomicInteger calltimeCacheElementMatches

driftCacheElementMatches

public AtomicInteger driftCacheElementMatches

totalCacheElementMatches

public AtomicInteger totalCacheElementMatches

availabilityProcessingTime

public AtomicLong availabilityProcessingTime

eventProcessingTime

public AtomicLong eventProcessingTime

measurementProcessingTime

public AtomicLong measurementProcessingTime

resourceConfigurationProcessingTime

public AtomicLong resourceConfigurationProcessingTime

operationProcessingTime

public AtomicLong operationProcessingTime

calltimeProcessingTime

public AtomicLong calltimeProcessingTime

driftProcessingTime

public AtomicLong driftProcessingTime

totalProcessingTime

public AtomicLong totalProcessingTime
Constructor Detail

AlertConditionCacheMonitor

public AlertConditionCacheMonitor()
Method Detail

getMBean

public static AlertConditionCacheMonitorMBean getMBean()

getAvailabilityCacheElementCount

public int getAvailabilityCacheElementCount()
Specified by:
getAvailabilityCacheElementCount in interface AlertConditionCacheMonitorMBean

getEventCacheElementCount

public int getEventCacheElementCount()
Specified by:
getEventCacheElementCount in interface AlertConditionCacheMonitorMBean

getMeasurementCacheElementCount

public int getMeasurementCacheElementCount()
Specified by:
getMeasurementCacheElementCount in interface AlertConditionCacheMonitorMBean

getResourceConfigurationCacheElementCount

public int getResourceConfigurationCacheElementCount()
Specified by:
getResourceConfigurationCacheElementCount in interface AlertConditionCacheMonitorMBean

getOperationCacheElementCount

public int getOperationCacheElementCount()
Specified by:
getOperationCacheElementCount in interface AlertConditionCacheMonitorMBean

getCallTimeCacheElementCount

public int getCallTimeCacheElementCount()
Specified by:
getCallTimeCacheElementCount in interface AlertConditionCacheMonitorMBean

getDriftCacheElementCount

public int getDriftCacheElementCount()
Specified by:
getDriftCacheElementCount in interface AlertConditionCacheMonitorMBean

getTotalCacheElementCount

public int getTotalCacheElementCount()
Takes all the counts from getCacheCounts() and returns the sum.

Specified by:
getTotalCacheElementCount in interface AlertConditionCacheMonitorMBean

getCacheCounts

public Map<String,Integer> getCacheCounts()
Specified by:
getCacheCounts in interface AlertConditionCacheMonitorMBean

getAvailabilityCacheElementMatches

public int getAvailabilityCacheElementMatches()
Specified by:
getAvailabilityCacheElementMatches in interface AlertConditionCacheMonitorMBean

getEventCacheElementMatches

public int getEventCacheElementMatches()
Specified by:
getEventCacheElementMatches in interface AlertConditionCacheMonitorMBean

getMeasurementCacheElementMatches

public int getMeasurementCacheElementMatches()
Specified by:
getMeasurementCacheElementMatches in interface AlertConditionCacheMonitorMBean

getResourceConfigurationCacheElementMatches

public int getResourceConfigurationCacheElementMatches()
Specified by:
getResourceConfigurationCacheElementMatches in interface AlertConditionCacheMonitorMBean

getOperationCacheElementMatches

public int getOperationCacheElementMatches()
Specified by:
getOperationCacheElementMatches in interface AlertConditionCacheMonitorMBean

getCallTimeCacheElementMatches

public int getCallTimeCacheElementMatches()
Specified by:
getCallTimeCacheElementMatches in interface AlertConditionCacheMonitorMBean

getDriftCacheElementMatches

public int getDriftCacheElementMatches()
Specified by:
getDriftCacheElementMatches in interface AlertConditionCacheMonitorMBean

getTotalCacheElementMatches

public int getTotalCacheElementMatches()
Specified by:
getTotalCacheElementMatches in interface AlertConditionCacheMonitorMBean

incrementAvailabilityCacheElementMatches

public void incrementAvailabilityCacheElementMatches(int matches)
Specified by:
incrementAvailabilityCacheElementMatches in interface AlertConditionCacheMonitorMBean

incrementEventCacheElementMatches

public void incrementEventCacheElementMatches(int matches)
Specified by:
incrementEventCacheElementMatches in interface AlertConditionCacheMonitorMBean

incrementResourceConfigurationCacheElementMatches

public void incrementResourceConfigurationCacheElementMatches(int matches)
Specified by:
incrementResourceConfigurationCacheElementMatches in interface AlertConditionCacheMonitorMBean

incrementMeasurementCacheElementMatches

public void incrementMeasurementCacheElementMatches(int matches)
Specified by:
incrementMeasurementCacheElementMatches in interface AlertConditionCacheMonitorMBean

incrementOperationCacheElementMatches

public void incrementOperationCacheElementMatches(int matches)
Specified by:
incrementOperationCacheElementMatches in interface AlertConditionCacheMonitorMBean

incrementCallTimeCacheElementMatches

public void incrementCallTimeCacheElementMatches(int matches)
Specified by:
incrementCallTimeCacheElementMatches in interface AlertConditionCacheMonitorMBean

incrementDriftCacheElementMatches

public void incrementDriftCacheElementMatches(int matches)
Specified by:
incrementDriftCacheElementMatches in interface AlertConditionCacheMonitorMBean

getAvailabilityProcessingTime

public long getAvailabilityProcessingTime()
Specified by:
getAvailabilityProcessingTime in interface AlertConditionCacheMonitorMBean

getEventProcessingTime

public long getEventProcessingTime()
Specified by:
getEventProcessingTime in interface AlertConditionCacheMonitorMBean

getMeasurementProcessingTime

public long getMeasurementProcessingTime()
Specified by:
getMeasurementProcessingTime in interface AlertConditionCacheMonitorMBean

getOperationProcessingTime

public long getOperationProcessingTime()
Specified by:
getOperationProcessingTime in interface AlertConditionCacheMonitorMBean

getCallTimeProcessingTime

public long getCallTimeProcessingTime()
Specified by:
getCallTimeProcessingTime in interface AlertConditionCacheMonitorMBean

getDriftProcessingTime

public long getDriftProcessingTime()
Specified by:
getDriftProcessingTime in interface AlertConditionCacheMonitorMBean

getTotalProcessingTime

public long getTotalProcessingTime()
Specified by:
getTotalProcessingTime in interface AlertConditionCacheMonitorMBean

incrementAvailabilityProcessingTime

public void incrementAvailabilityProcessingTime(long moreMillis)
Specified by:
incrementAvailabilityProcessingTime in interface AlertConditionCacheMonitorMBean

incrementEventProcessingTime

public void incrementEventProcessingTime(long moreMillis)
Specified by:
incrementEventProcessingTime in interface AlertConditionCacheMonitorMBean

incrementResourceConfigurationProcessingTime

public void incrementResourceConfigurationProcessingTime(long moreMillis)
Specified by:
incrementResourceConfigurationProcessingTime in interface AlertConditionCacheMonitorMBean

incrementMeasurementProcessingTime

public void incrementMeasurementProcessingTime(long moreMillis)
Specified by:
incrementMeasurementProcessingTime in interface AlertConditionCacheMonitorMBean

incrementOperationProcessingTime

public void incrementOperationProcessingTime(long moreMillis)
Specified by:
incrementOperationProcessingTime in interface AlertConditionCacheMonitorMBean

incrementCallTimeProcessingTime

public void incrementCallTimeProcessingTime(long moreMillis)
Specified by:
incrementCallTimeProcessingTime in interface AlertConditionCacheMonitorMBean

incrementDriftProcessingTime

public void incrementDriftProcessingTime(long moreMillis)
Specified by:
incrementDriftProcessingTime in interface AlertConditionCacheMonitorMBean

reloadCaches

public void reloadCaches()
Specified by:
reloadCaches in interface AlertConditionCacheMonitorMBean

preRegister

public ObjectName preRegister(MBeanServer server,
                              ObjectName name)
                       throws Exception
Specified by:
preRegister in interface MBeanRegistration
Throws:
Exception

postRegister

public void postRegister(Boolean registrationDone)
Specified by:
postRegister in interface MBeanRegistration

preDeregister

public void preDeregister()
                   throws Exception
Specified by:
preDeregister in interface MBeanRegistration
Throws:
Exception

postDeregister

public void postDeregister()
Specified by:
postDeregister in interface MBeanRegistration


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.