Interface StateMetric<T extends java.io.Serializable>
-
- Type Parameters:
T
- class of state of the metric.
- All Superinterfaces:
Metric
- All Known Implementing Classes:
JobMetric
,StageMetric
,TaskMetric
public interface StateMetric<T extends java.io.Serializable> extends Metric
Interface for metric which contians its state.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addEvent(T prevState, T newState)
Add aStateTransitionEvent
to the metric.java.util.List<StateTransitionEvent<T>>
getStateTransitionEvents()
Get its list ofStateTransitionEvent
.-
Methods inherited from interface org.apache.nemo.runtime.common.metric.Metric
getId, processMetricMessage
-
-
-
-
Method Detail
-
getStateTransitionEvents
java.util.List<StateTransitionEvent<T>> getStateTransitionEvents()
Get its list ofStateTransitionEvent
.- Returns:
- list of events.
-
addEvent
void addEvent(T prevState, T newState)
Add aStateTransitionEvent
to the metric.- Parameters:
prevState
- previous state.newState
- new state.
-
-