Interface SshClient
-
- All Known Implementing Classes:
AbstractSshClient,DefaultSshClient,JenkinsSshClient
public interface SshClient
-
-
Field Summary
Fields Modifier and Type Field Description static intSTATUS_FAILEDstatic intSTATUS_SUCCESS
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intchmod(PrintStream logger, int mode, String path)intchown(PrintStream logger, String own, String path)intdownloadFile(PrintStream logger, String remoteFile, String localFolder)intdownloadFile(PrintStream logger, String remoteFile, String localFolder, String fileName)intexecuteCommand(PrintStream logger, String command)intexecuteShell(PrintStream logger, String shell)intexecuteShellByFTP(PrintStream logger, String shell)intmv(PrintStream logger, String source, String dest)intrm_Rf(PrintStream logger, String path)booleantestConnection(PrintStream logger)intuploadFile(PrintStream logger, String fileName, File file, String serverLocation)intuploadFile(PrintStream logger, String fileName, InputStream fileContent, String serverLocation)intuploadFile(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)
-
-