java.lang.Comparable<ApplicationAttemptId>@Public @Stable public abstract class ApplicationAttemptId extends java.lang.Object implements java.lang.Comparable<ApplicationAttemptId>
ApplicationAttemptId denotes the particular attempt
of an ApplicationMaster for a given ApplicationId.
Multiple attempts might be needed to run an application to completion due
to temporal failures of the ApplicationMaster such as hardware
failures, connectivity issues etc. on the node on which it was scheduled.
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
appAttemptIdStrPrefix |
| Constructor | Description |
|---|---|
ApplicationAttemptId() |
| Modifier and Type | Method | Description |
|---|---|---|
protected abstract void |
build() |
|
int |
compareTo(ApplicationAttemptId other) |
|
boolean |
equals(java.lang.Object obj) |
|
static ApplicationAttemptId |
fromString(java.lang.String appAttemptIdStr) |
|
abstract ApplicationId |
getApplicationId() |
Get the
ApplicationId of the ApplicationAttempId. |
abstract int |
getAttemptId() |
Get the
attempt id of the Application. |
int |
hashCode() |
|
static ApplicationAttemptId |
newInstance(ApplicationId appId,
int attemptId) |
|
protected abstract void |
setApplicationId(ApplicationId appID) |
|
protected abstract void |
setAttemptId(int attemptId) |
|
java.lang.String |
toString() |
@Private @Unstable public static final java.lang.String appAttemptIdStrPrefix
@Public @Unstable public static ApplicationAttemptId newInstance(ApplicationId appId, int attemptId)
@Public @Stable public abstract ApplicationId getApplicationId()
ApplicationId of the ApplicationAttempId.ApplicationId of the ApplicationAttempId@Private @Unstable protected abstract void setApplicationId(ApplicationId appID)
@Public @Stable public abstract int getAttemptId()
attempt id of the Application.attempt id of the Application@Private @Unstable protected abstract void setAttemptId(int attemptId)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int compareTo(ApplicationAttemptId other)
compareTo in interface java.lang.Comparable<ApplicationAttemptId>public java.lang.String toString()
toString in class java.lang.Objectprotected abstract void build()
@Public @Stable public static ApplicationAttemptId fromString(java.lang.String appAttemptIdStr)
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.