scs.demos.mapreduce.servant
Class TaskServant
java.lang.Object
org.omg.PortableServer.Servant
scs.demos.mapreduce.TaskPOA
scs.demos.mapreduce.servant.TaskServant
- All Implemented Interfaces:
- org.omg.CORBA.portable.InvokeHandler, TaskOperations
- Direct Known Subclasses:
- MapTaskServant, ReduceTaskServant
public abstract class TaskServant
- extends TaskPOA
Servant generico que implementa a interface scs::demos::mapreduce::Task
É especializado para encapsular tarefas map e reduce
Methods inherited from class org.omg.PortableServer.Servant |
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
inputSplit
protected FileSplit[] inputSplit
outputSplit
protected FileSplit[] outputSplit
status
protected TaskStatus status
id
protected int id
conf
protected java.util.Properties conf
reporter
protected Reporter reporter
configFileName
protected java.lang.String configFileName
TaskServant
public TaskServant(java.lang.String configFileName,
Reporter reporter)
throws java.io.IOException
- Throws:
java.io.IOException
doRun
protected abstract void doRun()
throws IOMapReduceException
- Throws:
IOMapReduceException
run
public void run()
throws IOMapReduceException
- Throws:
IOMapReduceException
getId
public int getId()
setStatus
public void setStatus(TaskStatus status)
getStatus
public TaskStatus getStatus()
getInput
public FileSplit[] getInput()
getOutput
public FileSplit[] getOutput()
getReporter
public Reporter getReporter()