def handleBoth(args, config, command): zkManager = ZookeeperManager(config) solrManager = SolrManager(config) if "status" == command: zkManager.status() print solrManager.status() elif "stop" == command: solrManager.stop() zkManager.stop() elif "start" == command: zkManager.start() solrManager.start()
def handleSolr(args, config): manager = SolrManager(config) if 'install' == args.subcommand: manager.uninstall() if manager.install(): print "Solr Installed" elif 'uninstall' == args.subcommand: if manager.uninstall(): print "Solr uninstalled" elif 'start' == args.subcommand: if manager.start(): print "Solr started" elif 'stop' == args.subcommand: if manager.stop(): print "Solr stopped" elif 'status' == args.subcommand: manager.status()
def handleSolr(args, config): manager = SolrManager(config) if "install" == args.subcommand: manager.uninstall() if manager.install(): print "Solr Installed" elif "remove" == args.subcommand: if manager.uninstall(): print "Solr removed" elif "start" == args.subcommand: if manager.start(): print "Solr started" elif "stop" == args.subcommand: if manager.stop(): print "Solr stopped" elif "status" == args.subcommand: manager.status()
def handleBoth(args, config, command): zkManager = ZookeeperManager(config) solrManager = SolrManager(config) if 'install' == command: zkManager.install() solrManager.install() elif 'uninstall' == command: zkManager.uninstall() solrManager.uninstall() elif 'start' == command: zkManager.start() solrManager.start() elif 'stop' == command: solrManager.stop() zkManager.stop() elif 'status' == command: zkManager.status() print solrManager.status()