org.rhq.enterprise.server.cloud
Class StatusManagerBean
java.lang.Object
org.rhq.enterprise.server.cloud.StatusManagerBean
- All Implemented Interfaces:
- StatusManagerLocal
public class StatusManagerBean
- extends 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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StatusManagerBean
public StatusManagerBean()
getAndClearAgentsWithStatusForServer
public List<Integer> getAndClearAgentsWithStatusForServer(String serverName)
- Specified by:
getAndClearAgentsWithStatusForServer in interface StatusManagerLocal
updateByResource
public void updateByResource(org.rhq.core.domain.auth.Subject subject,
int resourceId)
- Specified by:
updateByResource in interface StatusManagerLocal
updateByAlertDefinition
public void updateByAlertDefinition(org.rhq.core.domain.auth.Subject subject,
int alertDefinitionId)
- Specified by:
updateByAlertDefinition in interface StatusManagerLocal
markGlobalCache
public void markGlobalCache()
- Specified by:
markGlobalCache 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-2012 Red Hat, Inc.. All Rights Reserved.