public class FailureEnricherUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static CompletableFuture<Map<String,String>> |
EMPTY_FAILURE_LABELS |
| Constructor and Description |
|---|
FailureEnricherUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Collection<org.apache.flink.core.failure.FailureEnricher> |
getFailureEnrichers(org.apache.flink.configuration.Configuration configuration)
Returns a set of validated FailureEnrichers for a given configuration.
|
static CompletableFuture<Map<String,String>> |
labelFailure(Throwable cause,
org.apache.flink.core.failure.FailureEnricher.Context context,
Executor mainThreadExecutor,
Collection<org.apache.flink.core.failure.FailureEnricher> failureEnrichers)
Enriches a Throwable by returning the merged label output of a Set of FailureEnrichers.
|
public static final CompletableFuture<Map<String,String>> EMPTY_FAILURE_LABELS
public static Collection<org.apache.flink.core.failure.FailureEnricher> getFailureEnrichers(org.apache.flink.configuration.Configuration configuration)
configuration - the configuration for the jobpublic static CompletableFuture<Map<String,String>> labelFailure(Throwable cause, org.apache.flink.core.failure.FailureEnricher.Context context, Executor mainThreadExecutor, Collection<org.apache.flink.core.failure.FailureEnricher> failureEnrichers)
cause - the Throwable to labelcontext - the context of the ThrowablemainThreadExecutor - the executor to complete the enricher labeling onfailureEnrichers - a collection of FailureEnrichers to enrich the context withCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.