public abstract class JobId extends Object implements Comparable<JobId>
JobId represents the globally unique 
 identifier for a MapReduce job.
The globally unique nature of the identifier is achieved by using the 
 cluster timestamp from the associated ApplicationId. i.e. 
 start-time of the ResourceManager along with a monotonically
 increasing counter for the jobId.
| Modifier and Type | Field and Description | 
|---|---|
| protected static String | JOB | 
| protected static char | SEPARATOR | 
| Constructor and Description | 
|---|
| JobId() | 
| Modifier and Type | Method and Description | 
|---|---|
| int | compareTo(JobId other) | 
| boolean | equals(Object obj) | 
| abstract org.apache.hadoop.yarn.api.records.ApplicationId | getAppId()Get the associated ApplicationId which represents the 
 start time of the  ResourceManagerand is used to generate 
 the globally uniqueJobId. | 
| abstract int | getId()Get the short integer identifier of the  JobIdwhich is unique for all applications started by a particular instance
 of theResourceManager. | 
| int | hashCode() | 
| abstract void | setAppId(org.apache.hadoop.yarn.api.records.ApplicationId appId) | 
| abstract void | setId(int id) | 
| String | toString() | 
protected static final String JOB
protected static final char SEPARATOR
public abstract org.apache.hadoop.yarn.api.records.ApplicationId getAppId()
ResourceManager and is used to generate 
 the globally unique JobId.ApplicationIdpublic abstract int getId()
JobId
 which is unique for all applications started by a particular instance
 of the ResourceManager.JobIdpublic abstract void setAppId(org.apache.hadoop.yarn.api.records.ApplicationId appId)
public abstract void setId(int id)
public int compareTo(JobId other)
compareTo in interface Comparable<JobId>Copyright © 2008–2023 Apache Software Foundation. All rights reserved.