Examples of run()


Examples of org.springframework.yarn.boot.app.YarnInfoApplication.run()

      if (isFlagOn(options, verboseOption)) {
        appProperties.setProperty("spring.yarn.internal.YarnInfoApplication.verbose", "true");
      }
      appProperties.setProperty("spring.yarn.internal.YarnInfoApplication.type", options.valueOf(typeOption));
      app.appProperties(appProperties);
      String info = app.run(new String[0]);
      handleOutput(info);
    }

    public String getDefaultAppType() {
      return defaultAppType;
View Full Code Here

Examples of org.springframework.yarn.boot.app.YarnKillApplication.run()

      Assert.hasText(appId, "Application Id must be defined");
      YarnKillApplication app = new YarnKillApplication();
      Properties appProperties = new Properties();
      appProperties.setProperty("spring.yarn.internal.YarnKillApplication.applicationId", appId);
      app.appProperties(appProperties);
      String info = app.run(new String[0]);
      handleOutput(info);
    }

    public OptionSpec<String> getApplicationIdOption() {
      return applicationIdOption;
View Full Code Here

Examples of org.springframework.yarn.boot.app.YarnPushApplication.run()

      YarnPushApplication app = new YarnPushApplication();
      app.applicationVersion(appVersion);
      Properties instanceProperties = new Properties();
      instanceProperties.setProperty("spring.yarn.applicationVersion", appVersion);
      app.configFile("application.properties", instanceProperties);
      app.run();
      handleOutput("New instance " + appVersion + " installed");
    }

    public OptionSpec<String> getApplicationVersionOption() {
      return applicationVersionOption;
View Full Code Here

Examples of org.springframework.yarn.boot.app.YarnSubmitApplication.run()

    protected void runApplication(OptionSet options) throws Exception {
      String appVersion = options.valueOf(applicationVersionOption);
      Assert.hasText(appVersion, "Application version must be defined");
      YarnSubmitApplication app = new YarnSubmitApplication();
      app.applicationVersion(appVersion);
      ApplicationId applicationId = app.run();
      handleOutput("New instance submitted with id " + applicationId);
    }

    public OptionSpec<String> getApplicationVersionOption() {
      return applicationVersionOption;
View Full Code Here

Examples of org.springframework.yarn.container.YarnContainer.run()

    assertTrue(ctx.containsBean(YarnSystemConstants.DEFAULT_ID_CONTAINER));
    assertTrue(ctx.containsBean("org.springframework.yarn.internal.springYarnAnnotationPostProcessor"));
    YarnContainer container = ctx.getBean(YarnSystemConstants.DEFAULT_ID_CONTAINER, YarnContainer.class);
    assertTrue(container instanceof DefaultYarnContainer);
    assertNotNull(container);
    container.run();
    TestContainerPojo testContainerPojo = ctx.getBean(TestContainerPojo.class);
    assertTrue(testContainerPojo.executed);
  }

  @Configuration
View Full Code Here

Examples of org.tarantool.core.StandardTest.run()

  public void standardTest() {

    TarantoolConnection connection = new SocketChannelTarantoolConnection("localhost", 33313);

    StandardTest st = new StandardTest(connection);
    st.run();

    connection.close();
  }

}
View Full Code Here

Examples of org.testng.SuiteRunner.run()

    m_suite.setVerbose(m_verbose != null ? m_verbose : 0);
    SuiteRunner suite = new SuiteRunner(m_configuration,
        m_suite, m_outputDirectory, m_testRunnerFactory);

    suite.run();
  }

  protected void addMethodSelector(String className, int priority) {
    XmlMethodSelector methodSelector= new XmlMethodSelector();
    methodSelector.setName(className);
View Full Code Here

Examples of org.testng.TestNG.run()

    public static void main(String[] args) {
        TestNG testng = new TestNG();
        testng.setTestClasses(new Class[] { CacheBenchmark4.class });
        TestListenerAdapter tla = new TestListenerAdapter();
        testng.addListener(tla);
        testng.run();
    }

    @DataProvider(name = "zipf")
    public Object[][] zipfDist1() {
        //return new Object[][] { { "/tmp/zipfgen/640k_zipf0.8.dat", 64, 1000, 10000, 20d, 100 } };
View Full Code Here

Examples of org.testng.eclipse.ui.OpenTestAction.run()

          ExcludedMethod em = (ExcludedMethod) items[0].getData();
          System.out.println("Double click " + em.packageName + "." + em.methodName);
          OpenTestAction openAction
              = new OpenTestAction(m_testRunnerPart, em.packageName, em.methodName,
                    true /* activate */);
          openAction.run();
        }
      }
    });

    //
View Full Code Here

Examples of org.testng.internal.thread.GroupThreadPoolExecutor.run()

      int threadCount = xmlTest.getThreadCount();
      DynamicGraph<ITestNGMethod> graph = computeAlternateTestList(m_allTestMethods);
      GroupThreadPoolExecutor executor = new GroupThreadPoolExecutor(this, xmlTest,
          threadCount, threadCount, 0, TimeUnit.MILLISECONDS,
          new LinkedBlockingQueue<Runnable>(), graph);
      executor.run();
      try {
        executor.awaitTermination(10000, TimeUnit.SECONDS);
        executor.shutdownNow();
      } catch (InterruptedException e) {
        e.printStackTrace();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.