Package com.yahoo.container.jdisc.state
Class StateMetricContext
- java.lang.Object
-
- com.yahoo.container.jdisc.state.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)
-
-
-
Method Detail
-
iterator
public java.util.Iterator<java.util.Map.Entry<java.lang.String,java.lang.String>> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<java.util.Map.Entry<java.lang.String,java.lang.String>>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
newInstance
public static StateMetricContext newInstance(java.util.Map<java.lang.String,?> properties)
-
-