@InterfaceAudience.Public @InterfaceStability.Stable public class TaskAttemptID extends TaskAttemptID
TaskID, that this TaskAttemptID belongs to.
 Second part is the task attempt number. attempt_200707121733_0003_m_000005_0 , which represents the
 zeroth task attempt for the fifth map task in the third job 
 running at the jobtracker started at 200707121733.
 
 Applications should never construct or parse TaskAttemptID strings
 , but rather use appropriate constructors or forName(String) 
 method.
ATTEMPT| Constructor and Description | 
|---|
TaskAttemptID()  | 
TaskAttemptID(String jtIdentifier,
                          int jobId,
                          boolean isMap,
                          int taskId,
                          int id)
Deprecated. 
 
 | 
TaskAttemptID(String jtIdentifier,
                          int jobId,
                          TaskType type,
                          int taskId,
                          int id)
Constructs a TaskId object from given parts. 
 | 
TaskAttemptID(TaskID taskId,
                          int id)
Constructs a TaskAttemptID object from given  
TaskID. | 
| Modifier and Type | Method and Description | 
|---|---|
static TaskAttemptID | 
downgrade(TaskAttemptID old)
Downgrade a new TaskAttemptID to an old one 
 | 
static TaskAttemptID | 
forName(String str)
Construct a TaskAttemptID object from given string 
 | 
JobID | 
getJobID()
Returns the  
JobID object that this task attempt belongs to | 
static String | 
getTaskAttemptIDsPattern(String jtIdentifier,
                                                Integer jobId,
                                                Boolean isMap,
                                                Integer taskId,
                                                Integer attemptId)
Deprecated.  
 | 
static String | 
getTaskAttemptIDsPattern(String jtIdentifier,
                                                Integer jobId,
                                                TaskType type,
                                                Integer taskId,
                                                Integer attemptId)
Deprecated.  
 | 
TaskID | 
getTaskID()
Returns the  
TaskID object that this task attempt belongs to | 
static TaskAttemptID | 
read(DataInput in)
Deprecated.  
 | 
appendTo, compareTo, equals, getTaskType, hashCode, isMap, readFields, toString, writepublic TaskAttemptID(TaskID taskId, int id)
TaskID.taskId - TaskID that this task belongs toid - the task attempt number@Deprecated public TaskAttemptID(String jtIdentifier, int jobId, boolean isMap, int taskId, int id)
TaskAttemptID(String, int, TaskType, int, int).jtIdentifier - jobTracker identifierjobId - job numberisMap - whether the tip is a maptaskId - taskId numberid - the task attempt numberpublic TaskAttemptID(String jtIdentifier, int jobId, TaskType type, int taskId, int id)
jtIdentifier - jobTracker identifierjobId - job numbertype - the TaskTypetaskId - taskId numberid - the task attempt numberpublic TaskAttemptID()
public static TaskAttemptID downgrade(TaskAttemptID old)
old - the new idpublic TaskID getTaskID()
TaskAttemptIDTaskID object that this task attempt belongs togetTaskID in class TaskAttemptIDpublic JobID getJobID()
TaskAttemptIDJobID object that this task attempt belongs togetJobID in class TaskAttemptID@Deprecated public static TaskAttemptID read(DataInput in) throws IOException
IOExceptionpublic static TaskAttemptID forName(String str) throws IllegalArgumentException
IllegalArgumentException - if the given string is malformed@Deprecated public static String getTaskAttemptIDsPattern(String jtIdentifier, Integer jobId, Boolean isMap, Integer taskId, Integer attemptId)
TaskAttemptID.getTaskAttemptIDsPattern(null, null, true, 1, null);which will return :
"attempt_[^_]*_[0-9]*_m_000001_[0-9]*"
jtIdentifier - jobTracker identifier, or nulljobId - job number, or nullisMap - whether the tip is a map, or nulltaskId - taskId number, or nullattemptId - the task attempt number, or null@Deprecated public static String getTaskAttemptIDsPattern(String jtIdentifier, Integer jobId, TaskType type, Integer taskId, Integer attemptId)
TaskAttemptID.getTaskAttemptIDsPattern(null, null, TaskType.MAP, 1, null);which will return :
"attempt_[^_]*_[0-9]*_m_000001_[0-9]*"
jtIdentifier - jobTracker identifier, or nulljobId - job number, or nulltype - the TaskTypetaskId - taskId number, or nullattemptId - the task attempt number, or nullCopyright © 2015 Apache Software Foundation. All Rights Reserved.