Class AbstractSshClient
- java.lang.Object
-
- jenkins.plugins.ssh2easy.gssh.client.AbstractSshClient
-
- All Implemented Interfaces:
SshClient
- Direct Known Subclasses:
DefaultSshClient
public abstract class AbstractSshClient extends Object implements SshClient
-
-
Field Summary
Fields Modifier and Type Field Description static String
LATEEST_EXEC_SHELL_DEBUG
static String
TEMP_PATH
-
Fields inherited from interface jenkins.plugins.ssh2easy.gssh.client.SshClient
STATUS_FAILED, STATUS_SUCCESS
-
-
Constructor Summary
Constructors Constructor Description AbstractSshClient()
-
Method Summary
All Methods Instance Methods Concrete 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
executeCommand(PrintStream logger, InputStream command)
int
executeShellByFTP(PrintStream logger, InputStream shell)
int
executeShellByFTP(PrintStream logger, String shell)
int
mv(PrintStream logger, String source, String dest)
int
rm_Rf(PrintStream logger, String path)
int
uploadFile(PrintStream logger, String fileName, File file, String serverLocation)
int
uploadFile(PrintStream logger, String fileName, String fileContent, String serverLocation)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jenkins.plugins.ssh2easy.gssh.client.SshClient
downloadFile, executeCommand, executeShell, testConnection, uploadFile
-
-
-
-
Field Detail
-
TEMP_PATH
public static final String TEMP_PATH
- See Also:
- Constant Field Values
-
LATEEST_EXEC_SHELL_DEBUG
public static final String LATEEST_EXEC_SHELL_DEBUG
- See Also:
- Constant Field Values
-
-
Method Detail
-
uploadFile
public int uploadFile(PrintStream logger, String fileName, File file, String serverLocation)
- Specified by:
uploadFile
in interfaceSshClient
-
uploadFile
public int uploadFile(PrintStream logger, String fileName, String fileContent, String serverLocation)
- Specified by:
uploadFile
in interfaceSshClient
-
downloadFile
public int downloadFile(PrintStream logger, String remoteFile, String localFolder)
- Specified by:
downloadFile
in interfaceSshClient
-
executeShellByFTP
public int executeShellByFTP(PrintStream logger, InputStream shell)
-
executeShellByFTP
public int executeShellByFTP(PrintStream logger, String shell)
- Specified by:
executeShellByFTP
in interfaceSshClient
-
chmod
public int chmod(PrintStream logger, int mode, String path)
-
chown
public int chown(PrintStream logger, String own, String path)
-
mv
public int mv(PrintStream logger, String source, String dest)
-
rm_Rf
public int rm_Rf(PrintStream logger, String path)
-
executeCommand
public int executeCommand(PrintStream logger, InputStream command)
-
-