Package com.zeroc.Ice

Class MetricsMap.Entry

java.lang.Object
com.zeroc.Ice.MetricsMap.Entry
Enclosing class:
com.zeroc.Ice.MetricsMap<T extends Metrics>

public class MetricsMap.Entry extends Object
Represents a metrics entry within a metrics map.
  • Method Details

    • failed

      public void failed(String exceptionName)
      Records a failure for this metrics entry with the specified exception name.
      Parameters:
      exceptionName - the name of the exception that caused the failure
    • getMatching

      public <S extends Metrics> com.zeroc.Ice.MetricsMap<S>.Entry getMatching(String mapName, MetricsHelper<S> helper, Class<S> cl)
      Gets a matching entry from a sub-map with the specified parameters.
      Type Parameters:
      S - the type of metrics
      Parameters:
      mapName - the name of the sub-map
      helper - the metrics helper
      cl - the metrics class
      Returns:
      the matching entry or null if no sub-map is found
    • detach

      public void detach(long lifetime)
      Detaches this entry and updates its total lifetime.
      Parameters:
      lifetime - the lifetime to add to the total lifetime
    • execute

      public void execute(Observer.MetricsUpdate<T> func)
      Executes a metrics update function on this entry's metrics object.
      Parameters:
      func - the update function to execute
    • getMap

      public com.zeroc.Ice.MetricsMap<?> getMap()
      Gets the metrics map that contains this entry.
      Returns:
      the parent metrics map
    • clone

      public Metrics clone()
      Overrides:
      clone in class Object