|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hyperic.hq.events.server.session.AlertConditionEvaluatorRepositoryImpl
public class AlertConditionEvaluatorRepositoryImpl
Default implementation ofAlertConditionEvaluatorRepository
This
implementation is NOT thread-safe. Access to add, remove, and get should be
synchronized by external callers if concurrent access is expected (current
impl of add/get is single-threaded through RegisteredTriggerManager. remove
is very unlikely to occur concurrently). This implementation persists the
state of AlertConditionEvaluator
s and their ExecutionStrategy
s on server shutdown.
Constructor Summary | |
---|---|
protected |
AlertConditionEvaluatorRepositoryImpl(AlertConditionEvaluatorStateRepository alertConditionEvaluatorStateRepository)
|
Method Summary | |
---|---|
void |
addAlertConditionEvaluator(AlertConditionEvaluator alertConditionEvaluator)
Add to the repository |
AlertConditionEvaluator |
getAlertConditionEvaluatorById(java.lang.Integer alertDefinitionId)
|
java.util.Map |
getAlertConditionEvaluators()
ConcurrentModificationException may occur to callers of this method when iterating through the map. |
static AlertConditionEvaluatorRepository |
getInstance()
|
AlertConditionEvaluatorStateRepository |
getStateRepository()
Get the AlertConditionEvaluatorStateRepository |
void |
removeAlertConditionEvaluator(java.lang.Integer alertDefinitionId)
Remove from the repository |
void |
shutdown()
Called by the HQ Application when it has been requested to shutdown. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AlertConditionEvaluatorRepositoryImpl(AlertConditionEvaluatorStateRepository alertConditionEvaluatorStateRepository)
alertConditionEvaluatorStateRepository
- The
AlertConditionEvaluatorStateRepository
to use for
persisting state on server shutdownMethod Detail |
---|
public void addAlertConditionEvaluator(AlertConditionEvaluator alertConditionEvaluator)
AlertConditionEvaluatorRepository
addAlertConditionEvaluator
in interface AlertConditionEvaluatorRepository
alertConditionEvaluator
- The AlertConditionEvaluator
to add the repositorypublic AlertConditionEvaluator getAlertConditionEvaluatorById(java.lang.Integer alertDefinitionId)
getAlertConditionEvaluatorById
in interface AlertConditionEvaluatorRepository
alertDefinitionId
- The ID of the alert definition
AlertConditionEvaluator
or null if none existspublic java.util.Map getAlertConditionEvaluators()
getAlertConditionEvaluators
in interface AlertConditionEvaluatorRepository
public void removeAlertConditionEvaluator(java.lang.Integer alertDefinitionId)
AlertConditionEvaluatorRepository
removeAlertConditionEvaluator
in interface AlertConditionEvaluatorRepository
alertDefinitionId
- The ID of the alert definition whose AlertConditionEvaluator
should be removed from the repositorypublic AlertConditionEvaluatorStateRepository getStateRepository()
AlertConditionEvaluatorRepository
AlertConditionEvaluatorStateRepository
getStateRepository
in interface AlertConditionEvaluatorRepository
public void shutdown()
ShutdownCallback
shutdown
in interface ShutdownCallback
public static AlertConditionEvaluatorRepository getInstance()
|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |