SCS

scs.demos.mapreduce.servant
Class MapTaskServant

java.lang.Object
  extended by org.omg.PortableServer.Servant
      extended by scs.demos.mapreduce.TaskPOA
          extended by scs.demos.mapreduce.servant.TaskServant
              extended by scs.demos.mapreduce.servant.MapTaskServant
All Implemented Interfaces:
org.omg.CORBA.portable.InvokeHandler, TaskOperations

public class MapTaskServant
extends TaskServant

Especializa a classe TaskServant para criar uma tarefa map


Field Summary
 
Fields inherited from class scs.demos.mapreduce.servant.TaskServant
conf, configFileName, id, inputSplit, outputSplit, reporter, status
 
Constructor Summary
MapTaskServant(java.lang.String configFileName, Reporter reporter)
           
MapTaskServant(java.lang.String configFileName, Reporter reporter, org.omg.PortableServer.POA poa, FileSplit inputSplit)
           
 
Method Summary
 void doRun()
           
 Reducer getCombiner()
           
 java.lang.String getConfigFileName()
           
 IOFormat getIOFormat()
           
 int getNumReducers()
           
 PartitionerServant getPartitioner()
           
 org.omg.PortableServer.POA getPoa()
           
 Reporter getReporter()
           
 
Methods inherited from class scs.demos.mapreduce.servant.TaskServant
getId, getInput, getOutput, getStatus, run, setStatus
 
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
 

Constructor Detail

MapTaskServant

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

MapTaskServant

public MapTaskServant(java.lang.String configFileName,
                      Reporter reporter,
                      org.omg.PortableServer.POA poa,
                      FileSplit inputSplit)
               throws java.io.IOException
Throws:
java.io.IOException
Method Detail

doRun

public void doRun()
           throws IOMapReduceException
Specified by:
doRun in class TaskServant
Throws:
IOMapReduceException

getIOFormat

public IOFormat getIOFormat()

getReporter

public Reporter getReporter()
Specified by:
getReporter in interface TaskOperations
Overrides:
getReporter in class TaskServant

getConfigFileName

public java.lang.String getConfigFileName()

getPartitioner

public PartitionerServant getPartitioner()

getCombiner

public Reducer getCombiner()

getNumReducers

public int getNumReducers()

getPoa

public org.omg.PortableServer.POA getPoa()

SCS