public class Driver extends App
| Modifier and Type | Class and Description |
|---|---|
static class |
Driver.Config |
| Constructor and Description |
|---|
Driver() |
| Modifier and Type | Method and Description |
|---|---|
void |
copyFromRemote(java.lang.String remoteFilePath,
java.lang.String localFilePath) |
void |
copyToRemote(java.lang.String localFilePath,
java.lang.String remoteFilePath) |
void |
createSessionFolder(java.lang.String folder) |
boolean |
exec(java.lang.String cmd) |
protected org.slf4j.Logger |
getLogger() |
static void |
main(java.lang.String[] args) |
int |
run0() |
getConfig, getConfigFile, getSessionName, run, usagepublic int run0()
throws java.lang.Exception
public boolean exec(java.lang.String cmd)
throws com.jcraft.jsch.JSchException,
java.lang.InterruptedException,
java.util.concurrent.ExecutionException
com.jcraft.jsch.JSchExceptionjava.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptionpublic void copyToRemote(java.lang.String localFilePath,
java.lang.String remoteFilePath)
throws java.lang.InterruptedException,
java.util.concurrent.ExecutionException,
com.jcraft.jsch.JSchException
java.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptioncom.jcraft.jsch.JSchExceptionpublic void copyFromRemote(java.lang.String remoteFilePath,
java.lang.String localFilePath)
throws java.lang.InterruptedException,
java.util.concurrent.ExecutionException,
com.jcraft.jsch.JSchException
java.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptioncom.jcraft.jsch.JSchExceptionpublic void createSessionFolder(java.lang.String folder)
throws com.jcraft.jsch.JSchException,
java.lang.InterruptedException,
java.util.concurrent.ExecutionException
com.jcraft.jsch.JSchExceptionjava.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptionpublic static void main(java.lang.String[] args)
throws java.lang.InterruptedException,
java.util.concurrent.ExecutionException,
java.lang.Exception
java.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptionjava.lang.Exception