本文整理了Java中azkaban.utils.Props.putLocal()
方法的一些代码示例,展示了Props.putLocal()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Props.putLocal()
方法的具体详情如下:
包路径:azkaban.utils.Props
类名称:Props
方法名:putLocal
[英]Puts only the local props from p into the current properties
[中]仅将p中的本地道具放入当前属性
代码示例来源:origin: azkaban/azkaban
/**
* Load job schedules from the given directories
*
* @param dirs The directories to check for properties
* @param suffixes The suffixes to load
* @return The properties
*/
public static Props loadPropsInDirs(final List<File> dirs, final String... suffixes) {
final Props props = new Props();
for (final File dir : dirs) {
props.putLocal(loadPropsInDir(dir, suffixes));
}
return props;
}
代码示例来源:origin: com.linkedin.azkaban/az-core
/**
* Load job schedules from the given directories
*
* @param dirs The directories to check for properties
* @param suffixes The suffixes to load
* @return The properties
*/
public static Props loadPropsInDirs(final List<File> dirs, final String... suffixes) {
final Props props = new Props();
for (final File dir : dirs) {
props.putLocal(loadPropsInDir(dir, suffixes));
}
return props;
}
代码示例来源:origin: com.linkedin.azkaban/azkaban
/**
* Load job schedules from the given directories
*
* @param dirs
* The directories to check for properties
* @param suffixes
* The suffixes to load
* @return The properties
*/
public static Props loadPropsInDirs(List<File> dirs, String... suffixes) {
Props props = new Props();
for (File dir : dirs) {
props.putLocal(loadPropsInDir(dir, suffixes));
}
return props;
}
内容来源于网络,如有侵权,请联系作者删除!