com.streambase.sb.monitor

## Class StatsUtil.IdentityHelper

- java.lang.Object
- - com.streambase.sb.monitor.StatsUtil.IdentityHelper

- Enclosing class:
    StatsUtil

      public static class StatsUtil.IdentityHelper
      extends Object

  This class manages the identity in client

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static interface` | `StatsUtil.IdentityHelper.IdentityUpdater`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `IdentityHelper(StatsUtil.IdentityHelper.IdentityUpdater updater)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getContainerCount()`
    `String` | `getName(StatTuplev3 st)`
    `String` | `getNameFromId(long id)` Stats Stream v3 only.
    `void` | `purgeRemoved()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### IdentityHelper

          public IdentityHelper(StatsUtil.IdentityHelper.IdentityUpdater updater)

  - ### Method Detail

    - #### getNameFromId

          public String getNameFromId(long id)
                               throws StreamBaseException

      Stats Stream v3 only. Returns ID instead of name for each item. This method retrieves the mapping of id to name from server.
      Returns:
        the fully qualified name
      Throws:
        `StreamBaseException`

    - #### getName

          public String getName(StatTuplev3 st)
                         throws StreamBaseException

      Throws:
        `StreamBaseException`

    - #### purgeRemoved

          public void purgeRemoved()

    - #### getContainerCount

          public int getContainerCount()

Copyright © 2015–2018 Cloud Software Group, Inc.. All rights reserved.