public class JobID extends ID implements java.lang.Comparable<ID>
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.
Modifier and Type | Field and Description |
---|---|
protected static java.text.NumberFormat |
idFormat |
protected static java.lang.String |
JOB |
Constructor and Description |
---|
JobID() |
JobID(java.lang.String jtIdentifier,
int id)
Constructs a JobID object
|
Modifier and Type | Method and Description |
---|---|
java.lang.StringBuilder |
appendTo(java.lang.StringBuilder builder)
Add the stuff after the "job" prefix to the given builder.
|
int |
compareTo(ID o)
Compare JobIds by first jtIdentifiers, then by job numbers
|
boolean |
equals(java.lang.Object o) |
static JobID |
forName(java.lang.String str)
Construct a JobId object from given string
|
java.lang.String |
getJtIdentifier() |
int |
hashCode() |
void |
readFields(java.io.DataInput in) |
java.lang.String |
toString() |
void |
write(java.io.DataOutput out) |
protected static final java.lang.String JOB
protected static final java.text.NumberFormat idFormat
public JobID(java.lang.String jtIdentifier, int id)
jtIdentifier
- jobTracker identifierid
- job numberpublic JobID()
public java.lang.String getJtIdentifier()
public int compareTo(ID o)
public java.lang.StringBuilder appendTo(java.lang.StringBuilder builder)
builder
- the builder to append topublic void readFields(java.io.DataInput in) throws java.io.IOException
readFields
in interface org.apache.hadoop.io.Writable
readFields
in class ID
java.io.IOException
public void write(java.io.DataOutput out) throws java.io.IOException
public static JobID forName(java.lang.String str) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
- if the given string is malformedCopyright © 2009 The Apache Software Foundation