public class LoggingEngine<T extends CommandLineToolExecutionHandle> extends Object implements CommandLineToolExecutionEngine<T>
Modifier and Type | Method and Description |
---|---|
T |
submit(CommandLineToolInvocation invocation)
Schedule specified
CommandLineToolInvocation for execution using this engine. |
static <T extends CommandLineToolExecutionHandle> |
wrap(CommandLineToolExecutionEngine<T> engine) |
public T submit(CommandLineToolInvocation invocation)
CommandLineToolExecutionEngine
CommandLineToolInvocation
for execution using this engine.
Once the execution is scheduled, it's up to the engine to decide when the execution will start.
The returned handle allows some control over the execution, not all engine support the same set of features.
Refer to the specific execution engine documentation.
NOTE: A execution engine may not support all the feature an invocation may be requesting. It is up to the strategy of each engine to decide if the feature will be ignored or an exception will be thrown.
submit
in interface CommandLineToolExecutionEngine<T extends CommandLineToolExecutionHandle>
invocation
- the command line invocation information to executeCommandLineToolExecutionHandle
instance, never null.public static <T extends CommandLineToolExecutionHandle> LoggingEngine<T> wrap(CommandLineToolExecutionEngine<T> engine)