org.springframework.yarn.boot.app.YarnSubmitApplication类的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(128)

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

YarnSubmitApplication介绍

[英]Generic Spring Boot client application used to submit Spring Yarn Boot based apps into Yarn.
[中]

代码示例

代码示例来源:origin: org.springframework.data/spring-yarn-boot

/**
 * Sets the application name used for submit. Effectively this will override
 * setting from set for yarn client for configuration properties.
 * 
 * @param applicationName the application name 
 * @return the YarnSubmitApplication for chaining
 */
public YarnSubmitApplication applicationName(String applicationName) {
  this.applicationName = applicationName;
  return getThis();
}

代码示例来源:origin: org.springframework.data/spring-yarn-boot

/**
 * Run a {@link SpringApplication} build by a
 * {@link SpringApplicationBuilder} using an empty args.
 *
 * @return the application id
 * @see #run(String...)
 */
public ApplicationId run() {
  return run(new String[0]);
}

代码示例来源:origin: org.springframework.cloud/spring-cloud-dataflow-module-deployer-yarn

@Override
public String submitApplication(String appVersion) {
  String appName = "spring-cloud-dataflow-yarn-app_" + appVersion;
  YarnSubmitApplication app = new YarnSubmitApplication();
  if (StringUtils.hasText(appName)) {
    app.applicationName(appName);
  }
  app.applicationVersion(appVersion);
  return runApp(app);
}

代码示例来源:origin: org.springframework.data/spring-yarn-boot-cli

@Override
protected void runApplication(OptionSet options) throws Exception {
  String appVersion = options.valueOf(applicationVersionOption);
  String appName = options.valueOf(applicationNameOption);
  Assert.hasText(appVersion, "Application version must be defined");
  YarnSubmitApplication app = new YarnSubmitApplication();
  if (StringUtils.hasText(appName)) {
    app.applicationName(appName);
  }
  app.applicationVersion(appVersion);
  handleApplicationRun(app);
}

相关文章