@InterfaceAudience.Public @InterfaceStability.Stable public class JobID extends JobID
job_200707121733_0003
, which represents the third job
running at the jobtracker started at 200707121733
.
Applications should never construct or parse JobID strings, but rather
use appropriate constructors or forName(String)
method.
TaskID
,
TaskAttemptID
idFormat, JOB, JOBID_REGEX
Constructor and Description |
---|
JobID() |
JobID(String jtIdentifier,
int id)
Constructs a JobID object
|
Modifier and Type | Method and Description |
---|---|
static JobID |
downgrade(JobID old)
Downgrade a new JobID to an old one
|
static JobID |
forName(String str)
Construct a JobId object from given string
|
static String |
getJobIDsPattern(String jtIdentifier,
Integer jobId)
Deprecated.
|
static JobID |
read(DataInput in)
Deprecated.
|
appendTo, compareTo, equals, getJtIdentifier, hashCode, readFields, toString, write
public JobID(String jtIdentifier, int id)
jtIdentifier
- jobTracker identifierid
- job numberpublic JobID()
public static JobID downgrade(JobID old)
old
- a new or old JobID@Deprecated public static JobID read(DataInput in) throws IOException
IOException
public static JobID forName(String str) throws IllegalArgumentException
IllegalArgumentException
- if the given string is malformed@Deprecated public static String getJobIDsPattern(String jtIdentifier, Integer jobId)
JobID.getTaskIDsPattern("200707121733", null);which will return :
"job_200707121733_[0-9]*"
jtIdentifier
- jobTracker identifier, or nulljobId
- job number, or nullCopyright © 2016 Apache Software Foundation. All Rights Reserved.