@InterfaceAudience.Public @InterfaceStability.Stable public abstract class ApplicationId extends Object implements Comparable<ApplicationId>
ApplicationId represents the globally unique
identifier for an application.
The globally unique nature of the identifier is achieved by using the
cluster timestamp i.e. start-time of the
ResourceManager along with a monotonically increasing counter
for the application.
| Constructor and Description |
|---|
ApplicationId() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
build() |
int |
compareTo(ApplicationId other) |
boolean |
equals(Object obj) |
abstract long |
getClusterTimestamp()
Get the start time of the
ResourceManager which is
used to generate globally unique ApplicationId. |
abstract int |
getId()
Get the short integer identifier of the
ApplicationId
which is unique for all applications started by a particular instance
of the ResourceManager. |
int |
hashCode() |
String |
toString() |
public ApplicationId()
@InterfaceAudience.Public @InterfaceStability.Stable public abstract int getId()
ApplicationId
which is unique for all applications started by a particular instance
of the ResourceManager.ApplicationId@InterfaceAudience.Public @InterfaceStability.Stable public abstract long getClusterTimestamp()
ResourceManager which is
used to generate globally unique ApplicationId.ResourceManagerprotected abstract void build()
public int compareTo(ApplicationId other)
compareTo in interface Comparable<ApplicationId>Copyright © 2017 Apache Software Foundation. All rights reserved.