|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.yarn.api.records.ContainerId
@InterfaceAudience.Public @InterfaceStability.Stable public abstract class 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 |
|---|
public ContainerId()
| Method Detail |
|---|
@InterfaceAudience.Public @InterfaceStability.Stable public abstract ApplicationAttemptId getApplicationAttemptId()
ApplicationAttemptId of the application to which the
Container was assigned.
Note: If containers are kept alive across application attempts via
ApplicationSubmissionContext.setKeepContainersAcrossApplicationAttempts(boolean)
the ContainerId does not necessarily contain the current
running application attempt's ApplicationAttemptId This
container can be allocated by previously exited application attempt and
managed by the current running attempt thus have the previous application
attempt's ApplicationAttemptId.
ApplicationAttemptId of the application to which the
Container was assigned@InterfaceAudience.Public @InterfaceStability.Stable public abstract int getId()
ContainerId.
ContainerIdpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic int compareTo(ContainerId other)
compareTo in interface Comparable<ContainerId>public String toString()
toString in class Objectprotected abstract void build()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||