org.apache.hadoop.yarn.api.records
Class ContainerId
java.lang.Object
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.
ContainerId
public ContainerId()
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
Copyright © 2013 Apache Software Foundation. All Rights Reserved.