public class SshConnection extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_TMP_FOLDER |
static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
SshConnection(String host) |
SshConnection(String host,
String login,
String passwd,
String pem) |
| Modifier and Type | Method and Description |
|---|---|
String |
createTmpFolder() |
String |
execAndWaitCommand(String... command) |
String |
execAndWaitCommandNoBr(String... command) |
String |
execAndWaitCommandWithStderr(String... command) |
void |
execCommand(String... command) |
boolean |
exists(String fileOrFolder) |
com.xebialabs.overthere.OverthereConnection |
getConnection() |
int |
getConnectionTimeout() |
void |
getFile(String targetFile,
String origFile) |
int |
getFreePort() |
String |
getHost() |
String |
getPem() |
String |
getTmpFolder() |
boolean |
isStarted() |
List<String> |
listFiles(String folder,
boolean recursive,
boolean includeFolders) |
void |
mkdirs(String dir) |
static boolean |
ping(String ipAddress) |
static boolean |
ping(String ipAddress,
int timeout) |
int |
runAndWaitCommand(String... command) |
void |
scp(String origFile,
String targetFile) |
void |
setConnectionTimeout(int connectionTimeout) |
void |
setPem(String pem) |
void |
start() |
void |
stop() |
public static org.slf4j.Logger log
public static final String DEFAULT_TMP_FOLDER
public SshConnection(String host)
public void mkdirs(String dir)
public String createTmpFolder()
public void start()
public boolean isStarted()
public void stop()
public void execCommand(String... command)
public int runAndWaitCommand(String... command)
public String execAndWaitCommandWithStderr(String... command) throws IOException
IOExceptionpublic boolean exists(String fileOrFolder) throws IOException
IOExceptionpublic int getFreePort()
throws IOException
IOExceptionpublic static boolean ping(String ipAddress)
public static boolean ping(String ipAddress, int timeout)
public String getTmpFolder()
public String getHost()
public String getPem()
public void setPem(String pem)
public com.xebialabs.overthere.OverthereConnection getConnection()
public int getConnectionTimeout()
public void setConnectionTimeout(int connectionTimeout)
Copyright © 2016 Kurento. All rights reserved.