public class InProcessHadoopTaskExecutor extends Object implements TaskExecutor
HadoopTaskInfo
in this process.Constructor and Description |
---|
InProcessHadoopTaskExecutor() |
Modifier and Type | Method and Description |
---|---|
void |
execute(TaskExecutionContext context,
TaskInfo task)
Executes a task.
|
boolean |
isSupported(TaskExecutionContext context,
TaskInfo task)
Returns whether this executor supports executing the target task.
|
public boolean isSupported(TaskExecutionContext context, TaskInfo task)
TaskExecutor
isSupported
in interface TaskExecutor
context
- the current contexttask
- the target tasktrue
if this supports the target task, otherwise false
public void execute(TaskExecutionContext context, TaskInfo task) throws InterruptedException, IOException
TaskExecutor
execute
in interface TaskExecutor
context
- the current contexttask
- the target taskInterruptedException
- if interrupted while executing the taskIOException
- if task execution was failedCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.