@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.
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) |
String |
toString() |
@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.Public @InterfaceStability.Stable public abstract int getAttemptId()
attempt id
of the Application
.attempt id
of the Application
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 © 2017 Apache Software Foundation. All rights reserved.