com.cliftonsnyder.clutch.mr.task
Class AbstractMapTaskFactory
java.lang.Object
com.cliftonsnyder.clutch.mr.task.AbstractMapTaskFactory
- All Implemented Interfaces:
- MapTaskFactory, java.io.Serializable
public abstract class AbstractMapTaskFactory
- extends java.lang.Object
- implements MapTaskFactory
An abstraction that handles the "messy" business of migrating MapTasks
- Author:
- Clifton L. Snyder
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
state
protected ClutchState state
AbstractMapTaskFactory
public AbstractMapTaskFactory()
getMapTask
public MapTask getMapTask(java.lang.String requestId)
throws java.io.IOException
- Specified by:
getMapTask
in interface MapTaskFactory
- Throws:
java.io.IOException
getMapTask
public MapTask getMapTask(java.lang.String requestId,
long offset,
long length)
throws java.io.IOException
- Specified by:
getMapTask
in interface MapTaskFactory
- Throws:
java.io.IOException
setState
public void setState(ClutchState state)
- Specified by:
setState
in interface MapTaskFactory
putMapTask
public void putMapTask(MapTask task)
- Specified by:
putMapTask
in interface MapTaskFactory
init
public void init()
- Specified by:
init
in interface MapTaskFactory
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object