Package voldemort.utils.impl

Examples of voldemort.utils.impl.SshClusterStopper


        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

TOP

Related Classes of voldemort.utils.impl.SshClusterStopper

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.