Package kafka.deploy.utils

Examples of kafka.deploy.utils.SshZkStopper


        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

TOP

Related Classes of kafka.deploy.utils.SshZkStopper

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.