Class ExecutionHistory
- java.lang.Object
-
- org.apache.flink.runtime.executiongraph.ExecutionHistory
-
- All Implemented Interfaces:
Serializable
public class ExecutionHistory extends Object implements Serializable
This class hosts the historical executions of anExecutionVertex
in aLinkedHashMap
with a size bound. When the map grows beyond the size bound, elements are dropped from the head of the map (FIFO order). Note that the historical executions does not include the current execution attempt.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExecutionHistory(int sizeLimit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<ArchivedExecution>
getHistoricalExecution(int attemptNumber)
Collection<ArchivedExecution>
getHistoricalExecutions()
boolean
isValidAttemptNumber(int attemptNumber)
-
-
-
Method Detail
-
getHistoricalExecution
public Optional<ArchivedExecution> getHistoricalExecution(int attemptNumber)
-
getHistoricalExecutions
public Collection<ArchivedExecution> getHistoricalExecutions()
-
isValidAttemptNumber
public boolean isValidAttemptNumber(int attemptNumber)
-
-