Interface Metric
-
- All Known Subinterfaces:
StateMetric<T>
- All Known Implementing Classes:
JobMetric
,StageMetric
,TaskMetric
public interface Metric
Interface for all metrics.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getId()
Get its unique id.boolean
processMetricMessage(java.lang.String metricField, byte[] metricValue)
Process metric message from evaluators.
-
-
-
Method Detail
-
getId
java.lang.String getId()
Get its unique id.- Returns:
- an unique id
-
processMetricMessage
boolean processMetricMessage(java.lang.String metricField, byte[] metricValue)
Process metric message from evaluators.- Parameters:
metricField
- field name of the metric.metricValue
- byte array of serialized data value.- Returns:
- true if the metric was changed or false if not.
-
-