public interface HostControlSystem extends Closeable
HostControlSystems are open on creation and should be closed after
use. Clients should not close the underlying systems individually.
| Modifier and Type | Method and Description |
|---|---|
Command |
getCommand(Path executable,
Object... args)
Gets a command on this host's execution system.
|
Command |
getCommand(String executable,
Object... args)
Gets a command on this host's execution system.
|
ExecutionSystem |
getExecutionSystem()
Returns this host's
ExecutionSystem. |
FileSystem |
getFileSystem()
Returns this host's
FileSystem. |
Host |
getHost()
Returns the
Host controlled by this system. |
String |
getHostname()
Returns the name of the host controlled by this system.
|
Path |
getPath(String first,
String... more)
Gets a path on this host's file system.
|
URI |
uri()
Returns this system's URI.
|
Command getCommand(String executable, Object... args)
Command getCommand(Path executable, Object... args)
FileSystem getFileSystem()
FileSystem. The system is open and should not
be closed.ExecutionSystem getExecutionSystem()
ExecutionSystem. The system is open and
should not be closed.String getHostname()
URI uri()