Apache REEF
0.16.0
Retainable Evaluator Execution Framework
|
Immutable metric interface. More...
Inherited by Org.Apache.REEF.Common.Metrics.Api.ImmutableMetricsImpl.
Public Member Functions | |
string | ToString () |
String representation of a metric for display. More... | |
bool | Equals (object obj) |
Checks whether two metrics are equal. More... | |
int | GetHashCode () |
Return hash code of the metric object. More... | |
void | Visit (IMetricsVisitor visitor) |
Accepts a visitor interface. More... | |
Properties | |
long | LongValue [get] |
Long Value of the metric. More... | |
double | NumericValue [get] |
Numeric Value of the metric. More... | |
IMetricsInfo | Info [get] |
Meta-data of the metric. More... | |
MetricType | TypeOfMetric [get] |
Type of metric - counter or gauge. More... | |
Immutable metric interface.
All the metrics put in the IMetricsRecord by IMetricsSource are kept as IImmutableMetric.
bool Org.Apache.REEF.Common.Metrics.Api.IImmutableMetric.Equals | ( | object | obj | ) |
Checks whether two metrics are equal.
Relies on Equals function of IMetricsInfo implementations.
obj | Object to compare against. |
int Org.Apache.REEF.Common.Metrics.Api.IImmutableMetric.GetHashCode | ( | ) |
string Org.Apache.REEF.Common.Metrics.Api.IImmutableMetric.ToString | ( | ) |
String representation of a metric for display.
void Org.Apache.REEF.Common.Metrics.Api.IImmutableMetric.Visit | ( | IMetricsVisitor | visitor | ) |
Accepts a visitor interface.
This function is used to get exact metric specfic information (for example, if visitor implementation wants to determine whether it is a counter or gauge, etc., by making the exact implementation of IImmutableMetric call the appropriate function in IMetricsVisitor.
visitor | Metrics visitor interface. |
|
get |
Meta-data of the metric.
|
get |
Long Value of the metric.
Immutable metrics of type integrals, byte, bool are all type casted to long before storing them as immutable metrics. For a given instance of this interface, either this property or NumericValue returns a valid value.
|
get |
Numeric Value of the metric.
Immutable metrics of non integral numerical types are all type casted to double before storing them as immutable metrics. For a given instance of this interface, either this property or LongValue returns a valid value.
|
get |
Type of metric - counter or gauge.
Filled in by exact metric type. It is assumed that converting complex metrics like Stats and Rates in to immutable ones require their decomposition in to multiple instances of IImmutableMetric, for example: number of samples will be of type counter, mean, variance etc. will be of type gauge, etc.