org.rhq.enterprise.server.cloud
Class StatusManagerBean

java.lang.Object
  extended by org.rhq.enterprise.server.cloud.StatusManagerBean
All Implemented Interfaces:
StatusManagerLocal

public class StatusManagerBean
extends java.lang.Object
implements StatusManagerLocal

There are various changes that can occur in the system that make the alertscondition cache stale. This session bean interfaces captures those various types of changes, and sets a bit-mask status field on the agent managing the data that was changed. This status field is later checked by the CacheConsistencyManagerBean to determine what data needs to be reloaded. Unless we're debugging, let's use the status field on the Agent and Server entities as a simple bit field; this way the logic for setting the field simplifies to a simple boolean check instead of a more complex bit

Author:
Joseph Marques

Constructor Summary
StatusManagerBean()
           
 
Method Summary
 java.util.List<java.lang.Integer> getAndClearAgentsWithStatusForServer(java.lang.String serverName)
           
 void updateByAgent(int agentId)
           
 void updateByAlertDefinition(int alertDefinitionId)
           
 void updateByAutoBaselineCalculationJob()
           
 void updateByMeasurementBaseline(int baselineId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatusManagerBean

public StatusManagerBean()
Method Detail

getAndClearAgentsWithStatusForServer

public java.util.List<java.lang.Integer> getAndClearAgentsWithStatusForServer(java.lang.String serverName)
Specified by:
getAndClearAgentsWithStatusForServer in interface StatusManagerLocal

updateByAlertDefinition

public void updateByAlertDefinition(int alertDefinitionId)
Specified by:
updateByAlertDefinition in interface StatusManagerLocal

updateByMeasurementBaseline

public void updateByMeasurementBaseline(int baselineId)
Specified by:
updateByMeasurementBaseline in interface StatusManagerLocal

updateByAgent

public void updateByAgent(int agentId)
Specified by:
updateByAgent in interface StatusManagerLocal

updateByAutoBaselineCalculationJob

public void updateByAutoBaselineCalculationJob()
Specified by:
updateByAutoBaselineCalculationJob in interface StatusManagerLocal


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