public abstract class AbstractHostControlSystem extends Object implements HostControlSystem
HostControlSystem
that delegates to a file system
instance and an execution system instance.Modifier | Constructor and Description |
---|---|
protected |
AbstractHostControlSystem(URI uri,
FileSystem fs,
ExecutionSystem es) |
Modifier and Type | Method and Description |
---|---|
Command |
getCommand(Path executable,
Object... args)
Gets a command on this host's execution system.
|
Command |
getCommand(String command,
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.
|
protected AbstractHostControlSystem(URI uri, FileSystem fs, ExecutionSystem es)
public final Path getPath(String first, String... more)
HostControlSystem
getPath
in interface HostControlSystem
FileSystem.getPath(java.lang.String, java.lang.String...)
public final Command getCommand(String command, Object... args)
HostControlSystem
getCommand
in interface HostControlSystem
ExecutionSystem.getCommand(String, Object...)
public final Command getCommand(Path executable, Object... args)
HostControlSystem
getCommand
in interface HostControlSystem
ExecutionSystem.getCommand(Path, Object...)
public final FileSystem getFileSystem()
HostControlSystem
FileSystem
. The system is open and should not
be closed.getFileSystem
in interface HostControlSystem
public final ExecutionSystem getExecutionSystem()
HostControlSystem
ExecutionSystem
. The system is open and
should not be closed.getExecutionSystem
in interface HostControlSystem
public final Host getHost()
HostControlSystem
Host
controlled by this system.getHost
in interface HostControlSystem
public final String getHostname()
HostControlSystem
getHostname
in interface HostControlSystem
public final URI uri()
HostControlSystem
uri
in interface HostControlSystem