Package kafka.deploy.utils

Examples of kafka.deploy.utils.SshBrokerStopper


        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


        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

TOP

Related Classes of kafka.deploy.utils.SshBrokerStopper

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.