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

java.lang.Object
  extended by org.apache.hadoop.yarn.api.records.ContainerId
All Implemented Interfaces:
Comparable<ContainerId>

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract class ContainerId
extends Object
implements Comparable<ContainerId>

ContainerId represents a globally unique identifier for a Container in the cluster.


Constructor Summary
ContainerId()
           
 
Method Summary
protected abstract  void build()
           
 int compareTo(ContainerId other)
           
 boolean equals(Object obj)
           
abstract  ApplicationAttemptId getApplicationAttemptId()
          Get the ApplicationAttemptId of the application to which the Container was assigned.
abstract  int getId()
          Get the identifier of the ContainerId.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContainerId

public ContainerId()
Method Detail

getApplicationAttemptId

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract ApplicationAttemptId getApplicationAttemptId()
Get the ApplicationAttemptId of the application to which the Container was assigned.

Returns:
ApplicationAttemptId of the application to which the Container was assigned

getId

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract int getId()
Get the identifier of the ContainerId.

Returns:
identifier of the ContainerId

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

compareTo

public int compareTo(ContainerId other)
Specified by:
compareTo in interface Comparable<ContainerId>

toString

public String toString()
Overrides:
toString in class Object

build

protected abstract void build()


Copyright © 2013 Apache Software Foundation. All Rights Reserved.