org.apache.nutch.mapReduce
Class JobStatus
java.lang.Object
org.apache.nutch.mapReduce.JobStatus
- All Implemented Interfaces:
- Writable
- public class JobStatus
- extends Object
- implements Writable
Describes the current status of a job. This is
not intended to be a comprehensive piece of data.
For that, look at JobProfile.
- Author:
- Mike Cafarella
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
JobStatus
public JobStatus()
JobStatus
public JobStatus(String jobid,
float mapProgress,
float reduceProgress,
int runState)
getJobId
public String getJobId()
mapProgress
public float mapProgress()
setMapProgress
public void setMapProgress(float p)
reduceProgress
public float reduceProgress()
setReduceProgress
public void setReduceProgress(float p)
getRunState
public int getRunState()
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