本文整理了Java中org.springframework.yarn.boot.app.YarnSubmitApplication
类的一些代码示例,展示了YarnSubmitApplication
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YarnSubmitApplication
类的具体详情如下:
包路径:org.springframework.yarn.boot.app.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);
}
内容来源于网络,如有侵权,请联系作者删除!