Class TaskId
java.lang.Object
org.apache.hadoop.applications.mawo.server.common.TaskId
- All Implemented Interfaces:
org.apache.hadoop.io.Writable
Defines TaskId for MaWo app.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TaskId
public TaskId()TaskId constructor. -
TaskId
TaskId constructor with jobId and taskId.- Parameters:
localjobId- : Job identifierid- : Task identifier
-
-
Method Details
-
getJobId
public final int getJobId()Getter method for jobId.- Returns:
- JobID: Job identifier
-
getId
public final long getId()Getter method for TaskID.- Returns:
- TaskId: Task identifier
-
toString
Print method for TaskId. -
hashCode
public final int hashCode() -
equals
-
write
- Specified by:
writein interfaceorg.apache.hadoop.io.Writable- Throws:
IOException
-
readFields
- Specified by:
readFieldsin interfaceorg.apache.hadoop.io.Writable- Throws:
IOException
-