gpt4 book ai didi

com.asakusafw.yaess.core.YaessProfile类的使用及代码示例

转载 作者:知者 更新时间:2024-03-20 13:34:31 27 4
gpt4 key购买 nike

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

YaessProfile介绍

[英]Profile services for YAESS.
[中]YAESS的个人资料服务。

代码示例

代码示例来源:origin: asakusafw/asakusafw

/**
 * Loads a YAESS profile from the specified properties.
 * @param properties source properties
 * @param classLoader the class loader to load the service class
 * @return the loaded profile
 * @throws IllegalArgumentException if the target profile is invalid, or parameters contain {@code null}
 * @deprecated use {@link #load(Properties, ProfileContext)} instead
 */
@Deprecated
public static YaessProfile load(Properties properties, ClassLoader classLoader) {
  if (properties == null) {
    throw new IllegalArgumentException("properties must not be null"); //$NON-NLS-1$
  }
  if (classLoader == null) {
    throw new IllegalArgumentException("classLoader must not be null"); //$NON-NLS-1$
  }
  return load(properties, ProfileContext.system(classLoader));
}

代码示例来源:origin: asakusafw/asakusafw

throw new IllegalArgumentException("commandHandlers must not be null"); //$NON-NLS-1$
checkPrefix(core, PREFIX_CORE);
checkPrefix(monitors, PREFIX_MONITOR);
checkPrefix(locks, PREFIX_LOCK);
checkPrefix(scheduler, PREFIX_SCHEDULER);
checkPrefix(hadoopHandler, PREFIX_HADOOP);
this.core = core;
this.monitors = monitors;

代码示例来源:origin: asakusafw/asakusafw

ExecutionMonitorProvider monitors = profile.getMonitors().newInstance();
ExecutionLockProvider locks = profile.getLocks().newInstance();
JobScheduler scheduler = profile.getScheduler().newInstance();
HadoopScriptHandler hadoopHandler = profile.getHadoopHandler().newInstance();
    : profile.getCommandHandlers().entrySet()) {
  commandHandlers.put(entry.getKey(), entry.getValue().newInstance());

代码示例来源:origin: asakusafw/asakusafw

commandHandlers.add(profile);
return new YaessProfile(core, monitors, locks, scheduler, hadoopHandler, commandHandlers);

代码示例来源:origin: asakusafw/asakusafw

result.context = new ProfileContext(loader, new VariableResolver(env));
  Properties properties = CommandLineUtil.loadProperties(file);
  result.profile = YaessProfile.load(properties, result.context);
} catch (Exception e) {
  YSLOG.error(e, "E01001", file.getPath());

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