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.


Constructor Summary
ApplicationAttemptId()
           
 
Method Summary
 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()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApplicationAttemptId

public ApplicationAttemptId()
Method Detail

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 © 2012 Apache Software Foundation. All Rights Reserved.