java.lang.Object
org.apache.hadoop.applications.mawo.server.common.TaskId
All Implemented Interfaces:
org.apache.hadoop.io.Writable

public class TaskId extends Object implements org.apache.hadoop.io.Writable
Defines TaskId for MaWo app.
  • Constructor Details

    • TaskId

      public TaskId()
      TaskId constructor.
    • TaskId

      public TaskId(JobId localjobId, int id)
      TaskId constructor with jobId and taskId.
      Parameters:
      localjobId - : Job identifier
      id - : 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

      public final String toString()
      Print method for TaskId.
      Overrides:
      toString in class Object
      Returns:
      : Full TaskId which is TaskId_prefix + jobId + _ + TaskId
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • write

      public final void write(DataOutput out) throws IOException
      Specified by:
      write in interface org.apache.hadoop.io.Writable
      Throws:
      IOException
    • readFields

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