Class StatsUtil.IdentityManager

java.lang.Object
com.streambase.sb.monitor.StatsUtil.IdentityManager
Enclosing class:
com.streambase.sb.monitor.StatsUtil

public static class StatsUtil.IdentityManager extends Object
This class manages the identity in server
  • Field Details

    • containers

      com.google.common.collect.BiMap<String,Integer> containers
    • identities

      Map<Integer,com.streambase.sb.monitor.StatsUtil.ContainerIdentity> identities
  • Constructor Details

    • IdentityManager

      public IdentityManager()
  • Method Details

    • putIfAbsent

      public long putIfAbsent(String containerName, String itemName)
    • purgeRemoved

      public void purgeRemoved()
    • getName

      public String getName(long id)
      Get the name associated with the ID.
      Parameters:
      id -
      Returns:
      a name
    • getAllForContainer

      public Map<Integer,String> getAllForContainer(int id)
      Get the id to name mapping for the whole container that owns the id
      Parameters:
      id -
      Returns:
      name
    • getContainerCount

      public int getContainerCount()