本文整理了Java中azkaban.utils.Props.setParent()
方法的一些代码示例,展示了Props.setParent()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Props.setParent()
方法的具体详情如下:
包路径:azkaban.utils.Props
类名称:Props
方法名:setParent
[英]Sets parent.
[中]设置父项。
代码示例来源:origin: azkaban/azkaban
public void setEarliestAncestor(final Props parent) {
final Props props = getEarliestAncestor();
props.setParent(parent);
}
代码示例来源:origin: com.linkedin.azkaban/az-core
/**
* Sets earliest ancestor.
*
* @param parent the parent
*/
public void setEarliestAncestor(final Props parent) {
final Props props = getEarliestAncestor();
props.setParent(parent);
}
代码示例来源:origin: com.linkedin.azkaban/azkaban
public void setEarliestAncestor(Props parent) {
Props props = getEarliestAncestor();
props.setParent(parent);
}
代码示例来源:origin: com.linkedin.azkaban/azkaban
private void loadAllProperties() throws IOException {
// First load all the properties
for (FlowProps fprops : flow.getFlowProps()) {
String source = fprops.getSource();
File propsPath = new File(execDir, source);
Props props = new Props(null, propsPath);
sharedProps.put(source, props);
}
// Resolve parents
for (FlowProps fprops : flow.getFlowProps()) {
if (fprops.getInheritedSource() != null) {
String source = fprops.getSource();
String inherit = fprops.getInheritedSource();
Props props = sharedProps.get(source);
Props inherits = sharedProps.get(inherit);
props.setParent(inherits);
}
}
}
代码示例来源:origin: com.linkedin.azkaban/azkaban
private Props collectOutputProps(ExecutableNode node) {
Props previousOutput = null;
// Iterate the in nodes again and create the dependencies
for (String dependency : node.getInNodes()) {
Props output = node.getParentFlow().getExecutableNode(dependency).getOutputProps();
if (output != null) {
output = Props.clone(output);
output.setParent(previousOutput);
previousOutput = output;
}
}
return previousOutput;
}
代码示例来源:origin: com.linkedin.azkaban/azkaban
String source = flow.getJobSource();
Props flowProps = sharedProps.get(source);
flowProps.setParent(commonFlowProps);
commonFlowProps = flowProps;
代码示例来源:origin: com.linkedin.azkaban/azkaban
jobSource.setParent(props);
props = jobSource;
代码示例来源:origin: com.linkedin.azkaban/azkaban
if (output != null) {
output = Props.clone(output);
output.setParent(previousOutput);
previousOutput = output;
内容来源于网络,如有侵权,请联系作者删除!