public class BridgeDeleteTaskExecutor extends BasicDeleteTaskExecutor
tools/bin/libexec/workflow/hadoop-bridge
.Modifier and Type | Field and Description |
---|---|
static String |
DELEGATE_CLASS
The target class name.
|
Constructor and Description |
---|
BridgeDeleteTaskExecutor()
Creates a new instance.
|
BridgeDeleteTaskExecutor(Function<? super TaskExecutionContext,? extends CommandLauncher> launchers)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
deleteOnHadoopFileSystem(TaskExecutionContext context,
String path)
Delete files on Hadoop file system.
|
boolean |
isSupported(TaskExecutionContext context,
TaskInfo task)
Returns whether this executor supports executing the target task.
|
deleteOnLocalFileSystem, execute
public static final String DELEGATE_CLASS
public BridgeDeleteTaskExecutor()
public BridgeDeleteTaskExecutor(Function<? super TaskExecutionContext,? extends CommandLauncher> launchers)
launchers
- the launcher providerpublic boolean isSupported(TaskExecutionContext context, TaskInfo task)
TaskExecutor
isSupported
in interface TaskExecutor
isSupported
in class BasicDeleteTaskExecutor
context
- the current contexttask
- the target tasktrue
if this supports the target task, otherwise false
protected void deleteOnHadoopFileSystem(TaskExecutionContext context, String path) throws IOException, InterruptedException
BasicDeleteTaskExecutor
deleteOnHadoopFileSystem
in class BasicDeleteTaskExecutor
context
- the current contextpath
- the target pathIOException
- if I/O error was occurred while deleting filesInterruptedException
- if interrupted while deleting filesCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.