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
Constructor and Description |
---|
JobID() |
JobID(java.lang.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(java.lang.String str)
Construct a JobId object from given string
|
static java.lang.String |
getJobIDsPattern(java.lang.String jtIdentifier,
java.lang.Integer jobId)
Deprecated.
|
static JobID |
read(java.io.DataInput in)
Deprecated.
|
appendTo, compareTo, equals, getJtIdentifier, hashCode, readFields, toString, write
public JobID(java.lang.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(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public static JobID forName(java.lang.String str) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
- if the given string is malformed@Deprecated public static java.lang.String getJobIDsPattern(java.lang.String jtIdentifier, java.lang.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