Class Cluster


  • public class Cluster
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ID_FILE  
    • Constructor Summary

      Constructors 
      Constructor Description
      Cluster​(java.lang.String hosts)  
      Cluster​(java.lang.String user, java.lang.String hosts)  
    • Constructor Detail

      • Cluster

        public Cluster​(java.lang.String hosts)
      • Cluster

        public Cluster​(java.lang.String user,
                       java.lang.String hosts)
    • Method Detail

      • copyToRemote

        public java.util.List<java.util.concurrent.Future<CopyToRemote>> copyToRemote​(java.lang.String localFile,
                                                                                      java.lang.String remoteFile)
                                                                               throws com.jcraft.jsch.JSchException
        Throws:
        com.jcraft.jsch.JSchException
      • copyFromRemote

        public java.util.List<java.util.concurrent.Future<CopyFromRemote>> copyFromRemote​(java.lang.String remoteFile,
                                                                                          java.lang.String localFile)
                                                                                   throws com.jcraft.jsch.JSchException
        Throws:
        com.jcraft.jsch.JSchException
      • copyId

        public java.util.List<java.util.concurrent.Future<RunCommand>> copyId​(java.lang.String remoteDir)
                                                                       throws com.jcraft.jsch.JSchException
        Throws:
        com.jcraft.jsch.JSchException
      • runCommand

        public java.util.List<java.util.concurrent.Future<RunCommand>> runCommand​(java.lang.String command)
                                                                           throws com.jcraft.jsch.JSchException
        Throws:
        com.jcraft.jsch.JSchException
      • shoutdown

        public void shoutdown()