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)
Exemple #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)
Exemple #3
0
 def status(self, env):
     from params import status_params
     env.set_params(status_params)
     commands = ParserCommands(status_params)
     if not commands.topologies_running(env):
         raise ComponentIsNotRunning()