示例#1
0
文件: gen_all.py 项目: sharmalabs/h2o
cloud = run.H2OCloud(cloud_num=0,
                     use_client=False,
                     nodes_per_cloud=1,
                     h2o_jar=os.path.abspath(h2o_jarfile),
                     base_port=48000,
                     xmx="4g",
                     cp="",
                     output_dir=results_dir,
                     test_ssl=False,
                     ldap_config_path=None)
cloud.start()
cloud.wait_for_cloud_to_be_up()

# Manipulate the command line arguments, so that bindings module would know which cloud to use
sys.argv.insert(1, "--usecloud")
sys.argv.insert(2, "%s:%s" % (cloud.get_ip(), cloud.get_port()))

# Actually generate all the bindings
print()
gen_R.main()
gen_python.main()
gen_docs_json.main()
gen_thrift.main()
gen_csharp.main()
gen_java.main()
bindings.done()
print()

# The END
cloud.stop()
示例#2
0
print("Starting H2O cloud...")
cloud = run.H2OCloud(
    cloud_num=0,
    use_client=False,
    nodes_per_cloud=1,
    h2o_jar=os.path.abspath("../../build/h2o.jar"),
    base_port=48000,
    xmx="4g",
    cp="",
    output_dir=results_dir
)
cloud.start()
cloud.wait_for_cloud_to_be_up()

# Manipulate the command line arguments, so that bindings module would know which cloud to use
sys.argv.insert(1, "--usecloud")
sys.argv.insert(2, "%s:%s" % (cloud.get_ip(), cloud.get_port()))

# Actually generate all the bindings
print()
gen_java.main()
gen_python.main()
gen_docs_json.main()
gen_thrift.main()
gen_csharp.main()
bindings.done()
print()

# The END
cloud.stop()