Class StateMetricContext

  • All Implemented Interfaces:
    MetricDimensions, com.yahoo.jdisc.Metric.Context, java.lang.Iterable<java.util.Map.Entry<java.lang.String,​java.lang.String>>

    public final class StateMetricContext
    extends java.lang.Object
    implements MetricDimensions, com.yahoo.jdisc.Metric.Context
    A context implementation whose identity is the key and values such that this can be used as a key in metrics lookups.
    Author:
    Simon Thoresen Hult
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      java.util.Iterator<java.util.Map.Entry<java.lang.String,​java.lang.String>> iterator()  
      static StateMetricContext newInstance​(java.util.Map<java.lang.String,​?> properties)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Method Detail

      • iterator

        public java.util.Iterator<java.util.Map.Entry<java.lang.String,​java.lang.String>> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<java.util.Map.Entry<java.lang.String,​java.lang.String>>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • newInstance

        public static StateMetricContext newInstance​(java.util.Map<java.lang.String,​?> properties)