gpt4 book ai didi

org.springframework.yarn.container.YarnContainer类的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 22:13:31 26 4
gpt4 key购买 nike

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

YarnContainer介绍

[英]A simple interface for container implementations which should work together with rest of the framework when something in a container should be executed.
[中]一个用于容器实现的简单接口,当容器中的某些内容应该被执行时,它应该与框架的其余部分一起工作。

代码示例

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

@Override
public void run(YarnContainer container) {
  Assert.notNull(container, "YarnContainer must not be null");
  container.run();
}

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

@Override
protected ExitStatus handleBeanRun(YarnContainer bean, String[] parameters, Set<String> opts) {
  Properties properties = StringUtils.splitArrayElementsIntoProperties(parameters, "=");
  bean.setParameters(properties != null ? properties : new Properties());
  bean.setEnvironment(System.getenv());
  bean.run();

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

protected void launchContainer(YarnContainer container, String[] parameters) {
  Properties properties = StringUtils.splitArrayElementsIntoProperties(parameters, "=");
  container.setParameters(properties != null ? properties : new Properties());
  container.setEnvironment(System.getenv());
  container.run();

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com