@InterfaceAudience.Public @InterfaceStability.Stable public abstract class ApplicationAttemptId extends Object implements 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 and Description |
---|---|
static String |
appAttemptIdStrPrefix |
Constructor and Description |
---|
ApplicationAttemptId() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
build() |
int |
compareTo(ApplicationAttemptId other) |
boolean |
equals(Object obj) |
static ApplicationAttemptId |
fromString(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) |
String |
toString() |
@InterfaceAudience.Private @InterfaceStability.Unstable public static final String appAttemptIdStrPrefix
@InterfaceAudience.Public @InterfaceStability.Unstable public static ApplicationAttemptId newInstance(ApplicationId appId, int attemptId)
@InterfaceAudience.Public @InterfaceStability.Stable public abstract ApplicationId getApplicationId()
ApplicationId
of the ApplicationAttempId
.ApplicationId
of the ApplicationAttempId
@InterfaceAudience.Private @InterfaceStability.Unstable protected abstract void setApplicationId(ApplicationId appID)
@InterfaceAudience.Public @InterfaceStability.Stable public abstract int getAttemptId()
attempt id
of the Application
.attempt id
of the Application
@InterfaceAudience.Private @InterfaceStability.Unstable protected abstract void setAttemptId(int attemptId)
public int compareTo(ApplicationAttemptId other)
compareTo
in interface Comparable<ApplicationAttemptId>
protected abstract void build()
@InterfaceAudience.Public @InterfaceStability.Stable public static ApplicationAttemptId fromString(String appAttemptIdStr)
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.