@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 and Description |
|---|
ContainerId() |
| Modifier and Type | Method and Description |
|---|---|
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() |
static ContainerId |
newInstance(ApplicationAttemptId appAttemptId,
int containerId) |
protected abstract void |
setApplicationAttemptId(ApplicationAttemptId atId) |
protected abstract void |
setId(int id) |
String |
toString() |
@InterfaceAudience.Private @InterfaceStability.Unstable public static ContainerId newInstance(ApplicationAttemptId appAttemptId, int containerId)
@InterfaceAudience.Public @InterfaceStability.Stable public abstract ApplicationAttemptId getApplicationAttemptId()
ApplicationAttemptId of the application to which
the Container was assigned.ApplicationAttemptId of the application to which
the Container was assigned@InterfaceAudience.Private @InterfaceStability.Unstable protected abstract void setApplicationAttemptId(ApplicationAttemptId atId)
@InterfaceAudience.Public @InterfaceStability.Stable public abstract int getId()
ContainerId.ContainerId@InterfaceAudience.Private @InterfaceStability.Unstable protected abstract void setId(int id)
public int compareTo(ContainerId other)
compareTo in interface Comparable<ContainerId>protected abstract void build()
Copyright © 2013 Apache Software Foundation. All rights reserved.