|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.service.mapred.AbstractJobAndTaskService.AbstractTaskWorker<M,T>
public abstract static class AbstractJobAndTaskService.AbstractTaskWorker<M,T extends ITask>
Abstract base class for task workers running in the MapService or the
ReduceService.
| Field Summary | |
|---|---|
protected JobState<M> |
jobState
The job state. |
protected T |
task
The task to be executed. |
| Constructor Summary | |
|---|---|
protected |
AbstractJobAndTaskService.AbstractTaskWorker(JobState<M> jobState,
T task)
|
| Method Summary | |
|---|---|
Object |
call()
Invokes run() to run the task. |
protected abstract void |
run()
Actually run the task. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final JobState<M> jobState
protected final T extends ITask task
| Constructor Detail |
|---|
protected AbstractJobAndTaskService.AbstractTaskWorker(JobState<M> jobState,
T task)
| Method Detail |
|---|
public Object call()
throws Exception
run() to run the task. On completion, an
Outcome is constructed and placed into
JobState.outcomes.
call in interface Callable<Object>Exception
protected abstract void run()
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||