org.apache.hama.bsp
Class TaskAttemptID

java.lang.Object
  extended by org.apache.hama.bsp.ID
      extended by org.apache.hama.bsp.TaskAttemptID
All Implemented Interfaces:
Comparable<ID>, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable<ID>

public class TaskAttemptID
extends ID

TaskAttemptID is a unique identifier for a task attempt.


Field Summary
protected static String ATTEMPT
           
 
Fields inherited from class org.apache.hama.bsp.ID
id, SEPARATOR
 
Constructor Summary
TaskAttemptID()
           
TaskAttemptID(String jtIdentifier, int jobId, int taskId, int id)
           
TaskAttemptID(TaskID taskId, int id)
           
 
Method Summary
protected  StringBuilder appendTo(StringBuilder builder)
           
 int compareTo(ID o)
           
 boolean equals(Object o)
           
static TaskAttemptID forName(String str)
           
 BSPJobID getJobID()
           
 TaskID getTaskID()
           
 int hashCode()
           
 void readFields(DataInput in)
           
 String toString()
           
 void write(DataOutput out)
           
 
Methods inherited from class org.apache.hama.bsp.ID
getId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ATTEMPT

protected static final String ATTEMPT
See Also:
Constant Field Values
Constructor Detail

TaskAttemptID

public TaskAttemptID(TaskID taskId,
                     int id)

TaskAttemptID

public TaskAttemptID(String jtIdentifier,
                     int jobId,
                     int taskId,
                     int id)

TaskAttemptID

public TaskAttemptID()
Method Detail

getJobID

public BSPJobID getJobID()

getTaskID

public TaskID getTaskID()

equals

public boolean equals(Object o)
Overrides:
equals in class ID

appendTo

protected StringBuilder appendTo(StringBuilder builder)

readFields

public void readFields(DataInput in)
                throws IOException
Specified by:
readFields in interface org.apache.hadoop.io.Writable
Overrides:
readFields in class ID
Throws:
IOException

write

public void write(DataOutput out)
           throws IOException
Specified by:
write in interface org.apache.hadoop.io.Writable
Overrides:
write in class ID
Throws:
IOException

hashCode

public int hashCode()
Overrides:
hashCode in class ID

compareTo

public int compareTo(ID o)
Specified by:
compareTo in interface Comparable<ID>
Overrides:
compareTo in class ID

toString

public String toString()
Overrides:
toString in class ID

forName

public static TaskAttemptID forName(String str)
                             throws IllegalArgumentException
Throws:
IllegalArgumentException


Copyright © 2011 The Apache Software Foundation