public class ExceptionHistoryEntry extends ErrorInfo
ExceptionHistoryEntry collects information about a single failure that triggered the
scheduler's failure handling.| 限定符和类型 | 类和说明 |
|---|---|
static class |
ExceptionHistoryEntry.ArchivedTaskManagerLocation
ArchivedTaskManagerLocation represents a archived (static) version of a TaskManagerLocation. |
| 限定符 | 构造器和说明 |
|---|---|
protected |
ExceptionHistoryEntry(Throwable cause,
long timestamp,
String failingTaskName,
TaskManagerLocation taskManagerLocation)
Instantiates a
ExceptionHistoryEntry. |
| 限定符和类型 | 方法和说明 |
|---|---|
static ExceptionHistoryEntry |
create(AccessExecution failedExecution,
String taskName)
Creates an
ExceptionHistoryEntry based on the provided Execution. |
String |
getFailingTaskName() |
ExceptionHistoryEntry.ArchivedTaskManagerLocation |
getTaskManagerLocation() |
boolean |
isGlobal() |
createErrorInfoWithNullableCause, getException, getExceptionAsString, getTimestamp, handleMissingThrowableprotected 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 boolean isGlobal()
@Nullable public ExceptionHistoryEntry.ArchivedTaskManagerLocation getTaskManagerLocation()
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.