public abstract class ExecutionSystem extends Object implements Closeable
Modifier | Constructor and Description |
---|---|
protected |
ExecutionSystem() |
Modifier and Type | Method and Description |
---|---|
Command |
getCommand(Path executable,
Object... args)
Gets a command for this execution system.
|
Command |
getCommand(String command,
Object... args)
Gets a command for this execution system.
|
Command.Builder |
getCommandBuilder(Path executable)
Gets a command builder for this execution system.
|
abstract Command.Builder |
getCommandBuilder(String command)
Gets a command builder for this execution system.
|
abstract boolean |
isOpen()
Returns
true if this system is open. |
abstract ExecutionSystemProvider |
provider()
Returns this system's
ExecutionSystemProvider . |
abstract URI |
uri()
Returns this system's URI.
|
public abstract ExecutionSystemProvider provider()
ExecutionSystemProvider
.public abstract boolean isOpen()
true
if this system is open.public abstract URI uri()
public final Command getCommand(String command, Object... args)
command
- the command nameargs
- the optional argumentspublic final Command getCommand(Path executable, Object... args)
executable
- the path to the executableargs
- the optional argumentsIllegalArgumentException
- if executable
and this execution
system are associated with different hostspublic final Command.Builder getCommandBuilder(Path executable)
executable
- the path to the executableIllegalArgumentException
- if executable
and this execution
system are associated with different hostspublic abstract Command.Builder getCommandBuilder(String command)
command
- the command name