org.apache.hama.bsp
Class TaskRunner
java.lang.Object
java.lang.Thread
org.apache.hama.bsp.TaskRunner
- All Implemented Interfaces:
- Runnable
- Direct Known Subclasses:
- BSPTaskRunner
public class TaskRunner
- extends Thread
Base class that runs a task in a separate process.
Field Summary |
static org.apache.commons.logging.Log |
LOG
|
Method Summary |
Task |
getTask()
|
void |
kill()
Kill the child process |
boolean |
prepare()
Called to assemble this task's input. |
void |
run()
|
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
LOG
public static final org.apache.commons.logging.Log LOG
TaskRunner
public TaskRunner(BSPTask bspTask,
GroomServer groom,
BSPJob conf)
getTask
public Task getTask()
prepare
public boolean prepare()
throws IOException
- Called to assemble this task's input. This method is run in the parent
process before the child is spawned. It should not execute user code, only
system code.
- Throws:
IOException
run
public void run()
- Specified by:
run
in interface Runnable
- Overrides:
run
in class Thread
kill
public void kill()
- Kill the child process
Copyright © 2011 The Apache Software Foundation