org.apache.nutch.mapReduce
Class TaskStatus

java.lang.Object
  extended byorg.apache.nutch.mapReduce.TaskStatus
All Implemented Interfaces:
Writable

public class TaskStatus
extends Object
implements Writable

Describes the current status of a task. This is not intended to be a comprehensive piece of data.

Author:
Mike Cafarella

Field Summary
static int FAILED
           
static int RUNNING
           
static int SUCCEEDED
           
static int UNASSIGNED
           
 
Constructor Summary
TaskStatus()
           
TaskStatus(String taskid, float progress, int runState)
           
 
Method Summary
 float getProgress()
           
 int getRunState()
           
 String getTaskId()
           
 void readFields(DataInput in)
          Reads the fields of this object from in.
 void setProgress(float progress)
           
 void setRunState(int runState)
           
 void write(DataOutput out)
          Writes the fields of this object to out.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RUNNING

public static final int RUNNING
See Also:
Constant Field Values

SUCCEEDED

public static final int SUCCEEDED
See Also:
Constant Field Values

FAILED

public static final int FAILED
See Also:
Constant Field Values

UNASSIGNED

public static final int UNASSIGNED
See Also:
Constant Field Values
Constructor Detail

TaskStatus

public TaskStatus()

TaskStatus

public TaskStatus(String taskid,
                  float progress,
                  int runState)
Method Detail

getTaskId

public String getTaskId()

getProgress

public float getProgress()

setProgress

public void setProgress(float progress)

getRunState

public int getRunState()

setRunState

public void setRunState(int runState)

write

public void write(DataOutput out)
           throws IOException
Description copied from interface: Writable
Writes the fields of this object to out.

Specified by:
write in interface Writable
Throws:
IOException

readFields

public void readFields(DataInput in)
                throws IOException
Description copied from interface: Writable
Reads the fields of this object from in. For efficiency, implementations should attempt to re-use storage in the existing object where possible.

Specified by:
readFields in interface Writable
Throws:
IOException


Copyright © 2006 The Apache Software Foundation