Interface SshClient
-
- All Known Implementing Classes:
AbstractSshClient
,DefaultSshClient
,JenkinsSshClient
public interface SshClient
-
-
Field Summary
Fields Modifier and Type Field Description static int
STATUS_FAILED
static int
STATUS_SUCCESS
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
chmod(PrintStream logger, int mode, String path)
int
chown(PrintStream logger, String own, String path)
int
downloadFile(PrintStream logger, String remoteFile, String localFolder)
int
downloadFile(PrintStream logger, String remoteFile, String localFolder, String fileName)
int
executeCommand(PrintStream logger, String command)
int
executeShell(PrintStream logger, String shell)
int
executeShellByFTP(PrintStream logger, String shell)
int
mv(PrintStream logger, String source, String dest)
int
rm_Rf(PrintStream logger, String path)
boolean
testConnection(PrintStream logger)
int
uploadFile(PrintStream logger, String fileName, File file, String serverLocation)
int
uploadFile(PrintStream logger, String fileName, InputStream fileContent, String serverLocation)
int
uploadFile(PrintStream logger, String fileName, String fileContent, String serverLocation)
-
-
-
Field Detail
-
STATUS_SUCCESS
static final int STATUS_SUCCESS
- See Also:
- Constant Field Values
-
STATUS_FAILED
static final int STATUS_FAILED
- See Also:
- Constant Field Values
-
-
Method Detail
-
executeCommand
int executeCommand(PrintStream logger, String command)
-
executeShell
int executeShell(PrintStream logger, String shell)
-
executeShellByFTP
int executeShellByFTP(PrintStream logger, String shell)
-
uploadFile
int uploadFile(PrintStream logger, String fileName, String fileContent, String serverLocation)
-
uploadFile
int uploadFile(PrintStream logger, String fileName, InputStream fileContent, String serverLocation)
-
uploadFile
int uploadFile(PrintStream logger, String fileName, File file, String serverLocation)
-
downloadFile
int downloadFile(PrintStream logger, String remoteFile, String localFolder, String fileName)
-
downloadFile
int downloadFile(PrintStream logger, String remoteFile, String localFolder)
-
chmod
int chmod(PrintStream logger, int mode, String path)
-
chown
int chown(PrintStream logger, String own, String path)
-
mv
int mv(PrintStream logger, String source, String dest)
-
rm_Rf
int rm_Rf(PrintStream logger, String path)
-
testConnection
boolean testConnection(PrintStream logger)
-
-