java.lang.Comparable<ApplicationId>@Public @Stable public abstract class ApplicationId extends java.lang.Object implements java.lang.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.
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
appIdStrPrefix |
| Constructor | Description |
|---|---|
ApplicationId() |
| Modifier and Type | Method | Description |
|---|---|---|
protected abstract void |
build() |
|
int |
compareTo(ApplicationId other) |
|
boolean |
equals(java.lang.Object obj) |
|
static ApplicationId |
fromString(java.lang.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) |
|
protected abstract void |
setClusterTimestamp(long clusterTimestamp) |
|
protected abstract void |
setId(int id) |
|
java.lang.String |
toString() |
@Private @Unstable public static final java.lang.String appIdStrPrefix
@Public @Unstable public static ApplicationId newInstance(long clusterTimestamp, int id)
@Public @Stable public abstract int getId()
ApplicationId
which is unique for all applications started by a particular instance
of the ResourceManager.ApplicationId@Private @Unstable protected abstract void setId(int id)
@Public @Stable public abstract long getClusterTimestamp()
ResourceManager which is
used to generate globally unique ApplicationId.ResourceManager@Private @Unstable protected abstract void setClusterTimestamp(long clusterTimestamp)
protected abstract void build()
public int compareTo(ApplicationId other)
compareTo in interface java.lang.Comparable<ApplicationId>public java.lang.String toString()
toString in class java.lang.Object@Public @Stable public static ApplicationId fromString(java.lang.String appIdStr)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2008–2025 Apache Software Foundation. All rights reserved.