예제 #1
0
def launch_schema_transformer(test_id, api_server_ip, api_server_port):
    args_str = ""
    args_str = args_str + "--api_server_ip %s " % (api_server_ip)
    args_str = args_str + "--api_server_port %s " % (api_server_port)
    args_str = args_str + "--http_server_port %s " % (get_free_port())
    args_str = args_str + "--cassandra_server_list 0.0.0.0:9160 "
    args_str = args_str + "--log_local "
    args_str = args_str + "--log_file schema_transformer_%s.log " % (test_id)
    args_str = args_str + "--trace_file schema_transformer_%s.err " % (test_id)
    to_bgp.main(args_str)
def launch_schema_transformer(test_id, api_server_ip, api_server_port):
    args_str = ""
    args_str = args_str + "--api_server_ip %s " % (api_server_ip)
    args_str = args_str + "--api_server_port %s " % (api_server_port)
    args_str = args_str + "--http_server_port %s " % (get_free_port())
    args_str = args_str + "--cassandra_server_list 0.0.0.0:9160 "
    args_str = args_str + "--log_local "
    args_str = args_str + "--log_file schema_transformer_%s.log " %(test_id)
    args_str = args_str + "--trace_file schema_transformer_%s.err " %(test_id)
    to_bgp.main(args_str)
def launch_schema_transformer(api_server_ip, api_server_port):
    try:
        import to_bgp
    except ImportError:
        from schema_transformer import to_bgp
    args_str = ""
    args_str = args_str + "--api_server_ip %s " % (api_server_ip)
    args_str = args_str + "--api_server_port %s " % (api_server_port)
    args_str = args_str + "--cassandra_server_list 0.0.0.0:9160"
    to_bgp.main(args_str)
def launch_schema_transformer(api_server_ip, api_server_port):
    try:
        import to_bgp
    except ImportError:
        from schema_transformer import to_bgp
    args_str = ""
    args_str = args_str + "--api_server_ip %s " % (api_server_ip)
    args_str = args_str + "--api_server_port %s " % (api_server_port)
    args_str = args_str + "--cassandra_server_list 0.0.0.0:9160 "
    args_str = args_str + "--log_file schema_transformer.log "
    to_bgp.main(args_str)
예제 #5
0
def launch_schema_transformer(api_server_ip, api_server_port):
    try:
        import to_bgp
    except ImportError:
        from schema_transformer import to_bgp
    args_str = ""
    args_str = args_str + "--api_server_ip %s " % (api_server_ip)
    args_str = args_str + "--api_server_port %s " % (api_server_port)
    args_str = args_str + "--http_server_port %s " % (get_free_port())
    args_str = args_str + "--cassandra_server_list 0.0.0.0:9160 "
    args_str = args_str + "--log_local "
    args_str = args_str + "--log_file schema_transformer.log "
    args_str = args_str + "--trace_file schema_transformer.err "
    to_bgp.main(args_str)
def launch_schema_transformer(cluster_id, test_id, api_server_ip,
        api_server_port, extra_args=None):
    wait_for_schema_transformer_down()
    args_str = ""
    args_str = args_str + "--cluster_id %s " % (cluster_id)
    args_str = args_str + "--api_server_ip %s " % (api_server_ip)
    args_str = args_str + "--api_server_port %s " % (api_server_port)
    args_str = args_str + "--http_server_port %s " % (get_free_port())
    args_str = args_str + "--cassandra_server_list 0.0.0.0:9160 "
    args_str = args_str + "--log_local "
    args_str = args_str + "--log_file schema_transformer_%s.log " %(test_id)
    args_str = args_str + "--trace_file schema_transformer_%s.err " %(test_id)
    if extra_args:
        args_str = args_str + (extra_args)
    to_bgp.main(args_str)
예제 #7
0
def launch_schema_transformer(cluster_id, test_id, api_server_ip,
        api_server_port, extra_args=None):
    wait_for_schema_transformer_down()
    args_str = ""
    args_str = args_str + "--cluster_id %s " % (cluster_id)
    args_str = args_str + "--api_server_ip %s " % (api_server_ip)
    args_str = args_str + "--api_server_port %s " % (api_server_port)
    args_str = args_str + "--http_server_port %s " % (get_free_port())
    args_str = args_str + "--cassandra_server_list 0.0.0.0:9160 "
    args_str = args_str + "--log_local "
    args_str = args_str + "--log_file schema_transformer_%s.log " %(test_id)
    args_str = args_str + "--trace_file schema_transformer_%s.err " %(test_id)
    if extra_args:
        args_str = args_str + (extra_args)
    to_bgp.main(args_str)