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
public static final String appAttemptIdStrPrefix
- See Also:
- Constant Field Values
ApplicationAttemptId
public ApplicationAttemptId()
getApplicationId
@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract ApplicationId getApplicationId()
- Get the
ApplicationId of the ApplicationAttempId.
- Returns:
ApplicationId of the ApplicationAttempId
getAttemptId
public abstract int getAttemptId()
- Get the
attempt id of the Application.
- Returns:
attempt id of the Application
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
Copyright © 2013 Apache Software Foundation. All Rights Reserved.