Package voldemort.utils

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


        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

        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

        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

        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

Related Classes of voldemort.utils.RemoteOperation

Copyright © 2018 www.massapicom. 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.