org.ow2.clif.server.util
Class EventStorageState
java.lang.Object
org.ow2.clif.server.util.EventStorageState
public class EventStorageState
- extends java.lang.Object
This class provides helpful utilities to manage the storage of events.
Each type of event have a storage state, which tells whether or not this
type of event has to be stored (via the StorageProxy). This storage state is a boolean, held by a
BooleanHolder.
- Author:
- Emmanuel Varoquaux
- See Also:
BooleanHolder
Method Summary |
static void |
putEventStorageStates(java.util.Map parameters,
java.util.Map eventStorageStatesMap)
Utility for GetCurrentParameters(). |
static boolean |
setEventStorageState(java.util.Map eventStorageStatesMap,
java.lang.String parameter,
java.io.Serializable value)
Utility for changeParameter(). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EventStorageState
public EventStorageState()
putEventStorageStates
public static void putEventStorageStates(java.util.Map parameters,
java.util.Map eventStorageStatesMap)
- Utility for GetCurrentParameters(). Puts the storage states of each
type of event into the parameters Map.
- Parameters:
parameters
- the parameter MapeventStorageStatesMap
- a Map between parameter names and BooleanHolders.
setEventStorageState
public static boolean setEventStorageState(java.util.Map eventStorageStatesMap,
java.lang.String parameter,
java.io.Serializable value)
throws ClifException
- Utility for changeParameter(). Tries to set a BooleanHolder from a parameter.
- Parameters:
eventStorageStatesMap
- a Map between parameter names and BooleanHolders.parameter
- the name of the parameter.value
- the value of the parameter.
- Returns:
true
in case of success (a BooleanHolder has been set),
false
otherwise.
- Throws:
ClifException