public class BridgeHadoopTaskExecutor extends Object implements TaskExecutor
tools/bin/libexec/workflow/hadoop-bridge.| Modifier and Type | Field and Description |
|---|---|
static String |
LAUNCHER_CLASS
The Asakusa application launcher class name.
|
| Constructor and Description |
|---|
BridgeHadoopTaskExecutor()
Creates a new instance.
|
BridgeHadoopTaskExecutor(Function<? super TaskExecutionContext,? extends CommandLauncher> launchers)
Creates a new instance.
|
| 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 static final String LAUNCHER_CLASS
public BridgeHadoopTaskExecutor()
public BridgeHadoopTaskExecutor(Function<? super TaskExecutionContext,? extends CommandLauncher> launchers)
launchers - the launcher providerpublic boolean isSupported(TaskExecutionContext context, TaskInfo task)
TaskExecutorisSupported in interface TaskExecutorcontext - the current contexttask - the target tasktrue if this supports the target task, otherwise falsepublic void execute(TaskExecutionContext context, TaskInfo task) throws IOException, InterruptedException
TaskExecutorexecute in interface TaskExecutorcontext - the current contexttask - the target taskIOException - if task execution was failedInterruptedException - if interrupted while executing the taskCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.