public class FailureHandlingResultSnapshot extends Object
FailureHandlingResultSnapshot
creates a snapshot of a FailureHandlingResult
providing the actual Executions
.Modifier and Type | Method and Description |
---|---|
static FailureHandlingResultSnapshot |
create(FailureHandlingResult failureHandlingResult,
Function<ExecutionVertexID,Collection<Execution>> currentExecutionsLookup)
Creates a
FailureHandlingResultSnapshot based on the passed FailureHandlingResult and ExecutionVertices . |
Set<Execution> |
getConcurrentlyFailedExecution()
All
Executions that failed and are planned to be restarted as part of this
failure handling. |
CompletableFuture<Map<String,String>> |
getFailureLabels()
Returns the labels future associated with the failure.
|
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.
|
boolean |
isRootCause() |
public static FailureHandlingResultSnapshot create(FailureHandlingResult failureHandlingResult, 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 CompletableFuture<Map<String,String>> getFailureLabels()
public long getTimestamp()
public Set<Execution> getConcurrentlyFailedExecution()
Executions
that failed and are planned to be restarted as part of this
failure handling.Executions
.public boolean isRootCause()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.