def service_check(self, env):
     from params import params
     parsercommands = ParserCommands(params)
     indexingcommands = IndexingCommands(params)
     all_found = parsercommands.topologies_running(env) and indexingcommands.is_topology_active(env)
     if all_found:
         exit(0)
     else:
         exit(1)
Exemplo n.º 2
0
 def service_check(self, env):
     from params import params
     parsercommands = ParserCommands(params)
     indexingcommands = IndexingCommands(params)
     all_found = parsercommands.topologies_running(
         env) and indexingcommands.is_topology_active(env)
     if all_found:
         exit(0)
     else:
         exit(1)
Exemplo n.º 3
0
 def status(self, env):
     from params import status_params
     env.set_params(status_params)
     commands = IndexingCommands(status_params)
     if not commands.is_topology_active(env):
         raise ComponentIsNotRunning()
 def status(self, env):
     from params import status_params
     env.set_params(status_params)
     commands = IndexingCommands(status_params)
     if not commands.is_topology_active(env):
         raise ComponentIsNotRunning()