SCS

scs.demos.mapreduce.servant
Class TaskServant

java.lang.Object
  extended by org.omg.PortableServer.Servant
      extended by scs.demos.mapreduce.TaskPOA
          extended by 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


Field Summary
protected  java.util.Properties conf
           
protected  java.lang.String configFileName
           
protected  int id
           
protected  FileSplit[] inputSplit
           
protected  FileSplit[] outputSplit
           
protected  Reporter reporter
           
protected  TaskStatus status
           
 
Constructor Summary
TaskServant(java.lang.String configFileName, Reporter reporter)
           
 
Method Summary
protected abstract  void doRun()
           
 int getId()
           
 FileSplit[] getInput()
           
 FileSplit[] getOutput()
           
 Reporter getReporter()
           
 TaskStatus getStatus()
           
 void run()
           
 void setStatus(TaskStatus status)
           
 
Methods inherited from class scs.demos.mapreduce.TaskPOA
_all_interfaces, _invoke, _this, _this
 
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
 

Field Detail

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
Constructor Detail

TaskServant

public TaskServant(java.lang.String configFileName,
                   Reporter reporter)
            throws java.io.IOException
Throws:
java.io.IOException
Method Detail

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()

SCS