public class FailureHandlingResultSnapshot extends Object
FailureHandlingResultSnapshot creates a snapshot of a FailureHandlingResult
providing the actual Executions.| 限定符和类型 | 方法和说明 |
|---|---|
static FailureHandlingResultSnapshot |
create(FailureHandlingResult failureHandlingResult,
java.util.function.Function<ExecutionVertexID,Collection<Execution>> currentExecutionsLookup)
Creates a
FailureHandlingResultSnapshot based on the passed FailureHandlingResult and ExecutionVertices. |
Iterable<Execution> |
getConcurrentlyFailedExecution()
All
Executions that failed and are planned to be restarted as part of this
failure handling. |
Throwable |
getRootCause()
The actual failure that is handled.
|
Optional<Execution> |
getRootCauseExecution()
Returns the
Execution that handled the root cause for this failure. |
long |
getTimestamp()
The time the failure occurred.
|
public static FailureHandlingResultSnapshot create(FailureHandlingResult failureHandlingResult, java.util.function.Function<ExecutionVertexID,Collection<Execution>> currentExecutionsLookup)
FailureHandlingResultSnapshot based on the passed FailureHandlingResult and ExecutionVertices.failureHandlingResult - The FailureHandlingResult that is used for extracting
the failure information.currentExecutionsLookup - The look-up function for retrieving all the current Execution instances for a given ExecutionVertexID.FailureHandlingResultSnapshot.public Optional<Execution> getRootCauseExecution()
Execution that handled the root cause for this failure. An empty Optional will be returned if it's a global failure.Execution that handled the root cause for this failure.public Throwable getRootCause()
Throwable.public long getTimestamp()
public Iterable<Execution> getConcurrentlyFailedExecution()
Executions that failed and are planned to be restarted as part of this
failure handling.Executions.Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.