org.hyperic.hq.events.server.session
Class FileAlertConditionEvaluatorStateRepository
java.lang.Object
org.hyperic.hq.events.server.session.FileAlertConditionEvaluatorStateRepository
- All Implemented Interfaces:
- AlertConditionEvaluatorStateRepository
public class FileAlertConditionEvaluatorStateRepository
- extends java.lang.Object
- implements AlertConditionEvaluatorStateRepository
Implementation of AlertConditionEvaluatorRepository
that stores and
retrieves by serialzing state to/from a file
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EVALUATOR_STATE_FILE_NAME
public static final java.lang.String EVALUATOR_STATE_FILE_NAME
- See Also:
- Constant Field Values
EXECUTION_STRATEGY_FILE_NAME
public static final java.lang.String EXECUTION_STRATEGY_FILE_NAME
- See Also:
- Constant Field Values
FileAlertConditionEvaluatorStateRepository
public FileAlertConditionEvaluatorStateRepository(java.io.File storageDirectory)
- Parameters:
storageDirectory
- The directory in which to write and read
serialized object files
getAlertConditionEvaluatorStates
public java.util.Map getAlertConditionEvaluatorStates()
- Specified by:
getAlertConditionEvaluatorStates
in interface AlertConditionEvaluatorStateRepository
- Returns:
- A Map where key is alert definition ID and value is the
Serializable stored state of the
AlertConditionEvaluator
with that ID.
getExecutionStrategyStates
public java.util.Map getExecutionStrategyStates()
- Specified by:
getExecutionStrategyStates
in interface AlertConditionEvaluatorStateRepository
- Returns:
- A Map where key is alert definition ID and value is the
Serializable stored state of the
ExecutionStrategy
with
that ID.
saveAlertConditionEvaluatorStates
public void saveAlertConditionEvaluatorStates(java.util.Map alertConditionEvaluatorStates)
- Description copied from interface:
AlertConditionEvaluatorStateRepository
- Persists states of
AlertConditionEvaluator
s
- Specified by:
saveAlertConditionEvaluatorStates
in interface AlertConditionEvaluatorStateRepository
- Parameters:
alertConditionEvaluatorStates
- A Map where key is alert definition
ID and value is the Serializable state of the
AlertConditionEvaluator
with that ID.
saveExecutionStrategyStates
public void saveExecutionStrategyStates(java.util.Map executionStrategyStates)
- Description copied from interface:
AlertConditionEvaluatorStateRepository
- Persists states of
ExecutionStrategy
s
- Specified by:
saveExecutionStrategyStates
in interface AlertConditionEvaluatorStateRepository
- Parameters:
executionStrategyStates
- A Map where key is alert definition ID and
value is the Serializable state of the ExecutionStrategy
with that ID.
Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.