Package kafka.deploy.utils

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


        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

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

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

        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.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.