water.H2O.main()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(3.0k)|赞(0)|评价(0)|浏览(149)

本文整理了Java中water.H2O.main()方法的一些代码示例,展示了H2O.main()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。H2O.main()方法的具体详情如下:
包路径:water.H2O
类名称:H2O
方法名:main

H2O.main介绍

暂无

代码示例

代码示例来源:origin: h2oai/h2o-2

@BeforeClass public static void setupCloud() {
 H2O.main(new String[] { });
}

代码示例来源:origin: h2oai/h2o-2

public static void userMain(String[] args) throws Exception {
  H2O.main(args);
  new CholTest().test();
  System.exit(0);
 }
}

代码示例来源:origin: h2oai/h2o-2

w.start();
H2O.main(Utils.append(workerArgs, args));
stall_till_cloudsize(1 + workers.size(), 10000); // stall for cloud 10seconds
Log.unwrap(System.out, "");

代码示例来源:origin: h2oai/h2o-2

public static void main(String[] args) throws Throwable {
 OptArgs ARGS = new Arguments(args).extract(new OptArgs());
 // Bring up the cluster
 String[] h2oArgs;
 String as = ARGS.h2oArgs;
 if( as != null ) {
  if( as.startsWith("\"") && as.endsWith("\"") ) as = as.substring(1, as.length()-1);
  h2oArgs = as.trim().split("[ \t]+");
 } else h2oArgs=new String[0];
 H2O.main(h2oArgs);
 // Make sure we shutdown on all exit paths
 try {
  main(ARGS);
 } catch( Throwable t ) {
  t.printStackTrace();
  throw t;
 } finally {
  UDPRebooted.T.shutdown.broadcast();
 }
}

代码示例来源:origin: h2oai/h2o-2

public static void userMain(String[] args) throws Exception {
  H2O.main(args);
  Summary2Test test = new Summary2Test();
  test.testConstColumn();
  test.testEnumColumn();
  test.testIntColumn();
  System.exit(0);
 }
}

代码示例来源:origin: h2oai/h2o-2

public static void main(String[] args) {
  try {
   H2O.main(args);
   TestUtil.stall_till_cloudsize(3);
   List<Class> tests = JUnitRunner.all();
   Result r = org.junit.runner.JUnitCore.runClasses(tests.toArray(new Class[0]));
   if( r.getFailureCount() == 0 ) {
    System.out.println("Successfully ran the following tests in " + (r.getRunTime() / 1000) + "s");
    for( Class c : tests )
     System.out.println(c.getName());
   } else {
    for( Failure f : r.getFailures() ) {
     System.err.println(f.getDescription());
     if( f.getException() != null )
      f.getException().printStackTrace();
    }
   }
   System.exit(r.getFailureCount());
  } catch( Throwable t ) {
   t.printStackTrace();
   System.exit(1);
  }
 }
}

代码示例来源:origin: h2oai/h2o-2

@BeforeClass public static void setupCloud() {
 H2O.main(new String[] {});
 _initial_keycnt = H2O.store_size();
 assert Job.all().length == 0;      // No outstanding jobs
 _testClassTimer = new Timer();
}

代码示例来源:origin: h2oai/h2o-2

@Test public void testString() throws Exception {
 H2O.main(new String[0]);
 String[] tests = { new String(), "monkey", "ninja", null };
 for( String exp : tests) {
  _string = exp;
  this.write(abw());
  this. read(abr());
  Assert.assertEquals(exp, _string);
 }
}

代码示例来源:origin: h2oai/h2o-2

public static void userMain(String[] args) {
 H2O.main(args);
 TestUtil.stall_till_cloudsize(NODES);

代码示例来源:origin: h2oai/h2o-2

@Test public void testKey() throws Exception {
 H2O.main(new String[0]);
 Key[] tests = { Key.make(), Key.make("monkey"), Key.make("ninja"), null };
 for( Key exp : tests) {
  _key = exp;
  this.write(abw());
  this. read(abr());
  Assert.assertEquals(exp, _key);
 }
}

代码示例来源:origin: h2oai/h2o-droplets

@Before public void initCloud() {
 // Setup cloud name
 String[] args = new String[] { "-name", "h2o_test_cloud"};
 // Build a cloud of 1
 H2O.main(args);
 H2O.waitForCloudSize(1, 10*1000 /* ms */);
}

相关文章