public interface Environment
| Modifier and Type | Method and Description |
|---|---|
void |
copyFilesFromLocalDisk(java.nio.file.Path srcPath,
java.lang.String destRelPath) |
void |
copyFilesToLocalDisk(java.lang.String srcRelPath,
java.nio.file.Path destPath) |
java.lang.String |
getHostname() |
int |
getId() |
java.lang.String |
getName() |
java.lang.Object |
getProperty(java.lang.String key) |
void |
removeFile(java.lang.String relPath)
Removes specified file.
|
RemoteProcess |
runCommand(java.util.List<java.lang.String> command)
Synchronously runs arbitrary command on this environment's OS.
|
RemoteProcess |
runCommandAsynchronously(java.util.List<java.lang.String> command) |
void |
setProperty(java.lang.String key,
java.lang.Object value)
Set arbitrary property of this environment.
|
void copyFilesFromLocalDisk(java.nio.file.Path srcPath,
java.lang.String destRelPath)
throws java.io.IOException
srcPath - Local source path.destRelPath - Relative destination directory on this environment.java.io.IOExceptionvoid copyFilesToLocalDisk(java.lang.String srcRelPath,
java.nio.file.Path destPath)
throws java.io.IOException
srcRelPath - Relative source path on this environment.destPath - Local destination directory.java.io.IOExceptionjava.lang.String getHostname()
int getId()
java.lang.String getName()
java.lang.Object getProperty(java.lang.String key)
throws java.util.NoSuchElementException
java.util.NoSuchElementExceptionRemoteProcess runCommand(java.util.List<java.lang.String> command) throws java.lang.InterruptedException, java.io.IOException
command - CommandExceptionjava.lang.InterruptedExceptionjava.io.IOExceptionRemoteProcess runCommandAsynchronously(java.util.List<java.lang.String> command) throws java.io.IOException
java.io.IOExceptionvoid removeFile(java.lang.String relPath)
throws java.lang.InterruptedException,
java.io.IOException
relPath - Relative path to file on this environment.java.io.IOExceptionjava.lang.InterruptedExceptionvoid setProperty(java.lang.String key,
java.lang.Object value)
key - value -