Search in sources :

Example 1 with NCSServicePath

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);
}
Also used : NCSServicePath(org.opennms.features.topology.plugins.ncs.NCSServicePath) Message(org.apache.camel.Message) Node(org.w3c.dom.Node)

Aggregations

Message (org.apache.camel.Message)1 NCSServicePath (org.opennms.features.topology.plugins.ncs.NCSServicePath)1 Node (org.w3c.dom.Node)1