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,
TaskAttemptIDidFormat, JOB, JOBID_REGEX| 限定符和类型 | 方法和说明 |
|---|---|
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)
已过时。
|
static JobID |
read(DataInput in)
已过时。
|
appendTo, compareTo, equals, getJtIdentifier, hashCode, readFields, toString, writepublic 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
IOExceptionpublic 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 © 2009 The Apache Software Foundation