org.apache.hadoop.yarn.api.records
Class ApplicationAttemptId

java.lang.Object
  extended by 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.


Field Summary
static String appAttemptIdStrPrefix
           
 
Constructor Summary
ApplicationAttemptId()
           
 
Method Summary
protected abstract  void build()
           
 int compareTo(ApplicationAttemptId other)
           
 boolean equals(Object obj)
           
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()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

appAttemptIdStrPrefix

@InterfaceAudience.Private
@InterfaceStability.Unstable
public static final String appAttemptIdStrPrefix
See Also:
Constant Field Values
Constructor Detail

ApplicationAttemptId

public ApplicationAttemptId()
Method Detail

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.