예제 #1
0
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()
예제 #2
0
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()
예제 #3
0
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()
예제 #4
0
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()