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