p2pMapReduce.test.nodeModule
Class JobFactory

java.lang.Object
  extended by p2pMapReduce.test.nodeModule.JobFactory

public class JobFactory
extends java.lang.Object


Nested Class Summary
static class JobFactory.InvertedIndexMapper
           
static class JobFactory.InvertedIndexReducer
           
static class JobFactory.SorterMapper
           
static class JobFactory.SorterReducer
           
static class JobFactory.WordCountMapper
           
static class JobFactory.WordCountReducer
           
 
Field Summary
static java.lang.String INPUT_DIR_PATH
           
 
Constructor Summary
JobFactory()
           
 
Method Summary
static Job chainSorter()
           
static Job invertedIndex()
           
static Job sorter()
           
static Job wordCount()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INPUT_DIR_PATH

public static final java.lang.String INPUT_DIR_PATH
See Also:
Constant Field Values
Constructor Detail

JobFactory

public JobFactory()
Method Detail

sorter

public static Job sorter()
                  throws java.lang.IllegalStateException,
                         java.io.IOException,
                         java.lang.InterruptedException,
                         java.lang.ClassNotFoundException
Throws:
java.lang.IllegalStateException
java.io.IOException
java.lang.InterruptedException
java.lang.ClassNotFoundException

chainSorter

public static Job chainSorter()
                       throws java.lang.IllegalStateException,
                              java.io.IOException,
                              java.lang.InterruptedException,
                              java.lang.ClassNotFoundException
Throws:
java.lang.IllegalStateException
java.io.IOException
java.lang.InterruptedException
java.lang.ClassNotFoundException

wordCount

public static Job wordCount()
                     throws java.lang.IllegalStateException,
                            java.io.IOException,
                            java.lang.InterruptedException,
                            java.lang.ClassNotFoundException
Throws:
java.lang.IllegalStateException
java.io.IOException
java.lang.InterruptedException
java.lang.ClassNotFoundException

invertedIndex

public static Job invertedIndex()
                         throws java.lang.IllegalStateException,
                                java.io.IOException,
                                java.lang.InterruptedException,
                                java.lang.ClassNotFoundException
Throws:
java.lang.IllegalStateException
java.io.IOException
java.lang.InterruptedException
java.lang.ClassNotFoundException