@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) |
static ApplicationId |
fromString(String appIdStr) |
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() |
static ApplicationId |
newInstance(long clusterTimestamp,
int id) |
String |
toString() |
@InterfaceAudience.Public @InterfaceStability.Unstable public static ApplicationId newInstance(long clusterTimestamp, int id)
@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
.ResourceManager
protected abstract void build()
public int compareTo(ApplicationId other)
compareTo
in interface Comparable<ApplicationId>
@InterfaceAudience.Public @InterfaceStability.Stable public static ApplicationId fromString(String appIdStr)
Copyright © 2018 Apache Software Foundation. All rights reserved.