Class SavedRollupsManager

java.lang.Object
com.illumon.iris.console.events.rollup.SavedRollupsManager
All Implemented Interfaces:
Workspace

public class SavedRollupsManager
extends Object
implements Workspace
A singleton class to manage saved rollups by model.
  • Method Details

    • getInstance

      public static SavedRollupsManager getInstance()
      Get the manager instance.
      Returns:
      the manager instance
    • getRollups

      public Map<String,​SavedRollup> getRollups​(String modelName)
      Get all of the saved rollups for the specified model.
      Parameters:
      modelName - the model
      Returns:
      a modifiable map of saved rollups
    • getWorkspaceInfo

      public org.jdom2.Element getWorkspaceInfo()
      Description copied from interface: Workspace
      Serialize the class into an element to be stored in the workspace
      Specified by:
      getWorkspaceInfo in interface Workspace
      Returns:
      An Element containing the data to persist.
    • setWorkspaceInfo

      public void setWorkspaceInfo​(org.jdom2.Element workspaceInfo)
      Description copied from interface: Workspace
      Restore the class to the state defined by the data persisted in workspaceInfo
      Specified by:
      setWorkspaceInfo in interface Workspace
      Parameters:
      workspaceInfo - An Element containing the persisted state.
    • getAllSavedRollups

      public Map<String,​Map<String,​SavedRollup>> getAllSavedRollups()
      Get all saved rollups for all models in the workspace. The returned map is synchronized, and unmodifiable
      Returns:
      all saved rollups