Class 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, Bruno Dillenseger
    See Also:
    BooleanHolder
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void putEventStorageStates​(java.util.Map<java.lang.String,​java.io.Serializable> parameters, java.util.Map<java.lang.String,​java.lang.Object> eventStorageStatesMap)
      Utility for GetCurrentParameters().
      static boolean setEventStorageState​(java.util.Map<java.lang.String,​java.lang.Object> 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
    • Constructor Detail

      • EventStorageState

        public EventStorageState()
    • Method Detail

      • putEventStorageStates

        public static void putEventStorageStates​(java.util.Map<java.lang.String,​java.io.Serializable> parameters,
                                                 java.util.Map<java.lang.String,​java.lang.Object> eventStorageStatesMap)
        Utility for GetCurrentParameters(). Puts the storage states of each type of event into the parameters Map.
        Parameters:
        parameters - the parameter Map
        eventStorageStatesMap - a Map between parameter names and BooleanHolders/filter String.
      • setEventStorageState

        public static boolean setEventStorageState​(java.util.Map<java.lang.String,​java.lang.Object> 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 and String filter.
        parameter - the name of the parameter.
        value - the value of the parameter.
        Returns:
        true in case of success (a BooleanHolder/filter has been set), false otherwise.
        Throws:
        ClifException