org.apache.hadoop.yarn.api.records
Class ApplicationAttemptId
java.lang.Object
org.apache.hadoop.yarn.api.records.ApplicationAttemptId
- All Implemented Interfaces:
- Comparable<ApplicationAttemptId>
@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.
appAttemptIdStrPrefix
@InterfaceAudience.Private
@InterfaceStability.Unstable
public static final String appAttemptIdStrPrefix
- See Also:
- Constant Field Values
ApplicationAttemptId
public ApplicationAttemptId()
newInstance
@InterfaceAudience.Private
@InterfaceStability.Unstable
public static ApplicationAttemptId newInstance(ApplicationId appId,
int attemptId)
getApplicationId
@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract ApplicationId getApplicationId()
- Get the
ApplicationId of the ApplicationAttempId.
- Returns:
ApplicationId of the ApplicationAttempId
setApplicationId
@InterfaceAudience.Private
@InterfaceStability.Unstable
protected abstract void setApplicationId(ApplicationId appID)
getAttemptId
@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract int getAttemptId()
- Get the
attempt id of the Application.
- Returns:
attempt id of the Application
setAttemptId
@InterfaceAudience.Private
@InterfaceStability.Unstable
protected abstract void setAttemptId(int attemptId)
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
compareTo
public int compareTo(ApplicationAttemptId other)
- Specified by:
compareTo in interface Comparable<ApplicationAttemptId>
toString
public String toString()
- Overrides:
toString in class Object
build
protected abstract void build()
Copyright © 2014 Apache Software Foundation. All Rights Reserved.