// do nothing,
return lsrcTree;
}
// check logical name manager
PhysicalNodeInfo pni = nameMan.getPhysicalNodeInfo(ln);
if (pni == null) {
// bail out
nameMan.updateNode(ln);
pni = nameMan.getPhysicalNodeInfo(ln);
if (pni == null) {
// return failure.
LOG.warn("Logical node '" + ln
+ "' has not been assigned to a physical node yet");
String src = "fail( \"logical node not mapped to physical node yet\" )";
CommonTree psrcTree = FlumeBuilder.parseSource(src);
PatternMatch.replaceChildren(lsrcTree, psrcTree);
return lsrcTree;
}
}
String src = pni.getPhysicalSource();
String phys = getPhysicalNode(ln);
if (phys == null) {
src = "fail( \"no physical translation for " + ln + "\" )";
}