org.rhq.enterprise.server.alert.engine.internal
Class AlertConditionCacheCoordinator

java.lang.Object
  extended by org.rhq.enterprise.server.alert.engine.internal.AlertConditionCacheCoordinator

public final class AlertConditionCacheCoordinator
extends Object

This singleton that contains multiple AgentConditionCaches and one GlobalConditionCache. Each AgentConditionCache will maintain AbstractCacheElements for data that can ONLY be reported by an agent, and thus can be perfectly segmented on an agent-by-agent basis. On the other hand, the GlobalConditionCache will maintain AbstractCacheElements for data that can either be agent-side or server-side initiated. This manager forms a centralized interface through which to interact with the children caches.

Author:
Joseph Marques

Nested Class Summary
static class AlertConditionCacheCoordinator.Cache
           
 
Method Summary
 AlertConditionCacheStats checkConditions(org.rhq.core.domain.measurement.Availability... availabilities)
           
 AlertConditionCacheStats checkConditions(org.rhq.core.domain.measurement.calltime.CallTimeData... callTimeData)
           
 AlertConditionCacheStats checkConditions(DriftChangeSetSummary driftChangeSetSummary)
           
 AlertConditionCacheStats checkConditions(org.rhq.core.domain.event.EventSource source, org.rhq.core.domain.event.Event... events)
           
 AlertConditionCacheStats checkConditions(org.rhq.core.domain.measurement.MeasurementData... measurementData)
           
 AlertConditionCacheStats checkConditions(org.rhq.core.domain.operation.OperationHistory operationHistory)
           
 AlertConditionCacheStats checkConditions(org.rhq.core.domain.configuration.ResourceConfigurationUpdate update)
           
 Map<String,Integer> getCacheCounts()
           
 int getCacheSize(AlertConditionCacheCoordinator.Cache cache)
           
static AlertConditionCacheCoordinator getInstance()
           
 void reloadCachesForAgent(int agentId)
           
 void reloadGlobalCache()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static AlertConditionCacheCoordinator getInstance()

reloadGlobalCache

public void reloadGlobalCache()

reloadCachesForAgent

public void reloadCachesForAgent(int agentId)

checkConditions

public AlertConditionCacheStats checkConditions(org.rhq.core.domain.measurement.MeasurementData... measurementData)

checkConditions

public AlertConditionCacheStats checkConditions(org.rhq.core.domain.measurement.calltime.CallTimeData... callTimeData)

checkConditions

public AlertConditionCacheStats checkConditions(org.rhq.core.domain.operation.OperationHistory operationHistory)

checkConditions

public AlertConditionCacheStats checkConditions(org.rhq.core.domain.configuration.ResourceConfigurationUpdate update)

checkConditions

public AlertConditionCacheStats checkConditions(org.rhq.core.domain.event.EventSource source,
                                                org.rhq.core.domain.event.Event... events)

checkConditions

public AlertConditionCacheStats checkConditions(DriftChangeSetSummary driftChangeSetSummary)

checkConditions

public AlertConditionCacheStats checkConditions(org.rhq.core.domain.measurement.Availability... availabilities)

getCacheSize

public int getCacheSize(AlertConditionCacheCoordinator.Cache cache)

getCacheCounts

public Map<String,Integer> getCacheCounts()


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