public class Cluster
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ID_FILE |
| Constructor and Description |
|---|
Cluster(java.lang.String hosts) |
Cluster(java.lang.String user,
java.lang.String hosts) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.util.concurrent.Future<CopyFromRemote>> |
copyFromRemote(java.lang.String remoteFile,
java.lang.String localFile) |
java.util.List<java.util.concurrent.Future<RunCommand>> |
copyId(java.lang.String remoteDir) |
java.util.List<java.util.concurrent.Future<CopyToRemote>> |
copyToRemote(java.lang.String localFile,
java.lang.String remoteFile) |
SessionManager |
getSessionManager() |
java.util.List<java.util.concurrent.Future<RunCommand>> |
runCommand(java.lang.String command) |
void |
shoutdown() |
public static final java.lang.String ID_FILE
public Cluster(java.lang.String hosts)
public Cluster(java.lang.String user,
java.lang.String hosts)
public SessionManager getSessionManager()
public java.util.List<java.util.concurrent.Future<CopyToRemote>> copyToRemote(java.lang.String localFile, java.lang.String remoteFile) throws com.jcraft.jsch.JSchException
com.jcraft.jsch.JSchExceptionpublic java.util.List<java.util.concurrent.Future<CopyFromRemote>> copyFromRemote(java.lang.String remoteFile, java.lang.String localFile) throws com.jcraft.jsch.JSchException
com.jcraft.jsch.JSchExceptionpublic java.util.List<java.util.concurrent.Future<RunCommand>> copyId(java.lang.String remoteDir) throws com.jcraft.jsch.JSchException
com.jcraft.jsch.JSchExceptionpublic java.util.List<java.util.concurrent.Future<RunCommand>> runCommand(java.lang.String command) throws com.jcraft.jsch.JSchException
com.jcraft.jsch.JSchExceptionpublic void shoutdown()