Exemplo n.º 1
0
def run(command, parser, cl_args, unknown_args):
    '''
  :param command:
  :param parser:
  :param cl_args:
  :param unknown_args:
  :return:
  '''
    return cli_helper.run(command, cl_args, "deactivate topology")
Exemplo n.º 2
0
def run(command, parser, cl_args, unknown_args):
  '''
  :param command:
  :param parser:
  :param cl_args:
  :param unknown_args:
  :return:
  '''
  return cli_helper.run(command, parser, cl_args, unknown_args, "activate topology")
Exemplo n.º 3
0
def run(command, parser, cl_args, unknown_args):
    """ run the update command """
    extra_args = [
        "--component_parallelism", ','.join(cl_args['component_parallelism'])
    ]
    extra_lib_jars = jars.packing_jars()

    return cli_helper.run(command, cl_args, "update topology", extra_args,
                          extra_lib_jars)
Exemplo n.º 4
0
def run(command, parser, cl_args, unknown_args):
    '''
  :param command:
  :param parser:
  :param cl_args:
  :param unknown_args:
  :return:
  '''
    Log.debug("Kill Args: %s", cl_args)
    return cli_helper.run(command, cl_args, "kill topology")
Exemplo n.º 5
0
def run(command, parser, cl_args, unknown_args):
  """ run the update command """
  extra_args = ["--component_parallelism", ','.join(cl_args['component_parallelism'])]
  extra_lib_jars = jars.packing_jars()
  if cl_args["dry_run"]:
    extra_args.append('--dry_run')
    if "dry_run_format" in cl_args:
      extra_args += ["--dry_run_format", cl_args["dry_run_format"]]

  return cli_helper.run(command, cl_args, "update topology", extra_args, extra_lib_jars)
Exemplo n.º 6
0
def run(command, parser, cl_args, unknown_args):
  '''
  :param command:
  :param parser:
  :param cl_args:
  :param unknown_args:
  :return:
  '''
  Log.debug("Activate Args: %s", cl_args)
  return cli_helper.run(command, cl_args, "activate topology")
Exemplo n.º 7
0
def run(command, parser, cl_args, unknown_args):
  """ run the update command """
  extra_args = ["--component_parallelism", ','.join(cl_args['component_parallelism'])]
  extra_lib_jars = jars.packing_jars()
  action = "update topology%s" % (' in dry-run mode' if cl_args["dry_run"] else '')
  if cl_args["dry_run"]:
    extra_args.append('--dry_run')
    if "dry_run_format" in cl_args:
      extra_args += ["--dry_run_format", cl_args["dry_run_format"]]

  return cli_helper.run(command, cl_args, action, extra_args, extra_lib_jars)
Exemplo n.º 8
0
def run(command, parser, cl_args, unknown_args):
  '''
  :param command:
  :param parser:
  :param cl_args:
  :param unknown_args:
  :return:
  '''
  container_id = cl_args['container-id']
  extra_args = ["--container_id", str(container_id)]

  return cli_helper.run(command, cl_args, "restart topology", extra_args=extra_args)
Exemplo n.º 9
0
def run(command, parser, cl_args, unknown_args):
  """ run the update command """
  extra_args = ["--component_parallelism", ','.join(cl_args['component_parallelism'])]
  extra_lib_jars = jars.packing_jars()

  return cli_helper.run(command, cl_args, "update topology", extra_args, extra_lib_jars)