use of org.opennms.features.topology.plugins.ncs.NCSServicePath in project opennms by OpenNMS.
the class NCSPathRouteUtil method createPath.
public NCSServicePath createPath(@JuniperXPath("//juniper:Data") Node data, Exchange exchange) {
Message in = exchange.getIn();
LoggerFactory.getLogger(this.getClass()).info("NCSPathRouteUtil [createPath] received message: " + in.toString());
String nodeForeignSource = (String) in.getHeader("nodeForeignSource");
String serviceForeignSource = (String) in.getHeader("foreignSource");
Node servicePath = data;
String deviceA = (String) in.getHeader("deviceA");
String deviceZ = (String) in.getHeader("deviceZ");
String serviceName = (String) in.getHeader("serviceName");
String string = servicePath.getOwnerDocument().getTextContent();
LoggerFactory.getLogger(this.getClass()).info("NCSPathRouteUtil parsing nodes: " + string);
return new NCSServicePath(servicePath, m_dao, m_nodeDao, nodeForeignSource, serviceForeignSource, deviceA, deviceZ, serviceName);
}
Aggregations