public class ExceptionHistoryEntry extends ErrorInfo
ExceptionHistoryEntry
collects information about a single failure that triggered the
scheduler's failure handling.Modifier and Type | Class and Description |
---|---|
static class |
ExceptionHistoryEntry.ArchivedTaskManagerLocation
ArchivedTaskManagerLocation represents a archived (static) version of a TaskManagerLocation . |
Modifier | Constructor and Description |
---|---|
protected |
ExceptionHistoryEntry(Throwable cause,
long timestamp,
String failingTaskName,
TaskManagerLocation taskManagerLocation)
Instantiates a
ExceptionHistoryEntry . |
Modifier and Type | Method and Description |
---|---|
static ExceptionHistoryEntry |
create(AccessExecution failedExecution,
String taskName)
Creates an
ExceptionHistoryEntry based on the provided Execution . |
static ExceptionHistoryEntry |
createGlobal(Throwable cause)
Creates an
ExceptionHistoryEntry that is not based on an Execution . |
String |
getFailingTaskName() |
ExceptionHistoryEntry.ArchivedTaskManagerLocation |
getTaskManagerLocation() |
boolean |
isGlobal() |
createErrorInfoWithNullableCause, getException, getExceptionAsString, getTimestamp, handleMissingThrowable
protected ExceptionHistoryEntry(Throwable cause, long timestamp, @Nullable String failingTaskName, @Nullable TaskManagerLocation taskManagerLocation)
ExceptionHistoryEntry
.cause
- The reason for the failure.timestamp
- The time the failure was caught.failingTaskName
- The name of the task that failed.taskManagerLocation
- The host the task was running on.NullPointerException
- if cause
is null
.IllegalArgumentException
- if the passed timestamp
is not bigger than 0
.public static ExceptionHistoryEntry create(AccessExecution failedExecution, String taskName)
ExceptionHistoryEntry
based on the provided Execution
.failedExecution
- the failed Execution
.taskName
- the name of the task.ExceptionHistoryEntry
.NullPointerException
- if null
is passed as one of the parameters.IllegalArgumentException
- if the passed Execution
does not provide a failureInfo
.public static ExceptionHistoryEntry createGlobal(Throwable cause)
ExceptionHistoryEntry
that is not based on an Execution
.public boolean isGlobal()
@Nullable public ExceptionHistoryEntry.ArchivedTaskManagerLocation getTaskManagerLocation()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.