Examples of RemoteOperation


Examples of kafka.deploy.utils.RemoteOperation

            hostNames.add(hostNamePair.getInternalHostName());
          else
            hostNames.add(hostNamePair.getExternalHostName());
        }
       
        RemoteOperation operation = new SshRunner(hostNames,
                                                  sshPrivateKey,
                                                  hostUserId,
                                                  kafkaRootDirectory,
                                                  className,
                                                  builder.toString());
        operation.execute();
    }
View Full Code Here

Examples of kafka.deploy.utils.RemoteOperation

        Runtime.getRuntime().addShutdownHook(new Thread() {

            @Override
            public void run() {
                RemoteOperation operation = new SshBrokerStopper(hostNames,
                                                                 sshPrivateKey,
                                                                 hostUserId,
                                                                 kafkaRootDirectory,
                                                                 true);
                try {
                    operation.execute();
                } catch(RemoteOperationException e) {
                    e.printStackTrace();
                }
            }

        });

        RemoteOperation operation = new SshBrokerStarter(hostNames,
                                                         sshPrivateKey,
                                                         hostUserId,
                                                         brokerIds,
                                                         kafkaRootDirectory,
                                                         kafkaConfig,
                                                         kafkaLog,
                                                         zkHostNames,
                                                         zkPort);

        operation.execute();
    }
View Full Code Here

Examples of kafka.deploy.utils.RemoteOperation

        File sshPrivateKey = getInputFile(options, "sshprivatekey");
        String hostUserId = KafkaApp.valueOf(options, "hostuserid", "root");
        String kafkaRootDirectory = getRequiredString(options, "kafkaroot");
        
        RemoteOperation operation = new SshBrokerStopper(hostNames,
                                                         sshPrivateKey,
                                                         hostUserId,
                                                         kafkaRootDirectory,
                                                         false);
        operation.execute();
    }
View Full Code Here

Examples of kafka.deploy.utils.RemoteOperation

            hostNames.add(hostNamePair.getInternalHostName());
          else
            hostNames.add(hostNamePair.getExternalHostName());
        }

        RemoteOperation operation = new RsyncDeployer(hostNames,
                                                      sshPrivateKey,
                                                      hostUserId,
                                                      sourceDirectory,
                                                      kafkaRootDirectory);
        operation.execute();
    }
View Full Code Here

Examples of kafka.deploy.utils.RemoteOperation

        Runtime.getRuntime().addShutdownHook(new Thread() {

            @Override
            public void run() {
                RemoteOperation operation = new SshZkStopper(zookeeperHostNames,
                                                             sshPrivateKey,
                                                             hostUserId,
                                                             kafkaRootDirectory,
                                                             true);
                try {
                    operation.execute();
                } catch(RemoteOperationException e) {
                    e.printStackTrace();
                }
            }

        });

        RemoteOperation operation = new SshZkStarter(zookeeperHostNames,
                                                     sshPrivateKey,
                                                     hostUserId,
                                                     kafkaRootDirectory,
                                                     zkConfigFile,
                                                     zkDataDir,
                                                     zkPort);

        operation.execute();
    }
View Full Code Here

Examples of voldemort.utils.RemoteOperation

        File sshPrivateKey = getInputFile(options, "sshprivatekey");
        String hostUserId = CmdUtils.valueOf(options, "hostuserid", "root");
        String voldemortRootDirectory = getRequiredString(options, "voldemortroot");

        RemoteOperation operation = new SshClusterStopper(hostNames,
                                                          sshPrivateKey,
                                                          hostUserId,
                                                          voldemortRootDirectory,
                                                          false);
        operation.execute();
    }
View Full Code Here

Examples of voldemort.utils.RemoteOperation

        Runtime.getRuntime().addShutdownHook(new Thread() {

            @Override
            public void run() {
                RemoteOperation operation = new SshClusterStopper(externalHostNames,
                                                                  sshPrivateKey,
                                                                  hostUserId,
                                                                  voldemortRootDirectory,
                                                                  true);
                try {
                    operation.execute();
                } catch(RemoteOperationException e) {
                    e.printStackTrace();
                }
            }

        });

        RemoteOperation operation = new SshClusterStarter(externalHostNames,
                                                          sshPrivateKey,
                                                          hostUserId,
                                                          voldemortRootDirectory,
                                                          voldemortHomeDirectory,
                                                          nodeIds);
        operation.execute();
    }
View Full Code Here

Examples of voldemort.utils.RemoteOperation

        File sshPrivateKey = getInputFile(options, "sshprivatekey");
        String hostUserId = CmdUtils.valueOf(options, "hostuserid", "root");
        Map<String, String> commands = getRequiredPropertiesFile(getRequiredInputFile(options,
                                                                                      "commands"));

        RemoteOperation operation = new SshRemoteTest(hostNames,
                                                      sshPrivateKey,
                                                      hostUserId,
                                                      commands);
        operation.execute();
    }
View Full Code Here

Examples of voldemort.utils.RemoteOperation

        List<String> hostNames = new ArrayList<String>();

        for(HostNamePair hostNamePair: hostNamePairs)
            hostNames.add(hostNamePair.getExternalHostName());

        RemoteOperation operation = new SshClusterCleaner(hostNames,
                                                          sshPrivateKey,
                                                          hostUserId,
                                                          voldemortHomeDirectory);
        operation.execute();
    }
View Full Code Here

Examples of voldemort.utils.RemoteOperation

        List<String> hostNames = new ArrayList<String>();

        for(HostNamePair hostNamePair: hostNamePairs)
            hostNames.add(hostNamePair.getExternalHostName());

        RemoteOperation operation = new RsyncDeployer(hostNames,
                                                      sshPrivateKey,
                                                      hostUserId,
                                                      sourceDirectory,
                                                      parentDirectory);
        operation.execute();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.