Package org.springframework.yarn.boot.app

Examples of org.springframework.yarn.boot.app.YarnInfoApplication


          .defaultsTo(true);
    }

    @Override
    protected void runApplication(OptionSet options) throws Exception {
      YarnInfoApplication app = new YarnInfoApplication();
      Properties appProperties = new Properties();
      appProperties.setProperty("spring.yarn.internal.YarnInfoApplication.operation", "SUBMITTED");
      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);
    }
View Full Code Here


  public static class PushedOptionHandler extends ApplicationOptionHandler {

    @Override
    protected void runApplication(OptionSet options) throws Exception {
      YarnInfoApplication app = new YarnInfoApplication();
      Properties appProperties = new Properties();
      appProperties.setProperty("spring.yarn.internal.YarnInfoApplication.operation", "PUSHED");
      app.appProperties(appProperties);
      String info = app.run();
      handleOutput(info);
    }
View Full Code Here

TOP

Related Classes of org.springframework.yarn.boot.app.YarnInfoApplication

Copyright © 2018 www.massapicom. 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.