Class EdgeDaoImpl
- java.lang.Object
-
- org.opennms.features.apilayer.topology.EdgeDaoImpl
-
- All Implemented Interfaces:
org.opennms.integration.api.v1.dao.EdgeDao
public class EdgeDaoImpl extends Object implements org.opennms.integration.api.v1.dao.EdgeDao
This class acts as a simple intermediary layer on top ofOnmsTopologyDao
to satisfy the contract ofthe integration API
by exposing the functionality only via OSGI.
-
-
Constructor Summary
Constructors Constructor Description EdgeDaoImpl(OnmsTopologyDao onmsTopologyDao, EdgeMapper edgeMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getEdgeCount()
long
getEdgeCount(org.opennms.integration.api.v1.model.TopologyProtocol protocol)
Set<org.opennms.integration.api.v1.model.TopologyEdge>
getEdges()
Set<org.opennms.integration.api.v1.model.TopologyEdge>
getEdges(org.opennms.integration.api.v1.model.TopologyProtocol protocol)
Set<org.opennms.integration.api.v1.model.TopologyProtocol>
getProtocols()
-
-
-
Constructor Detail
-
EdgeDaoImpl
public EdgeDaoImpl(OnmsTopologyDao onmsTopologyDao, EdgeMapper edgeMapper)
-
-
Method Detail
-
getEdgeCount
public long getEdgeCount()
- Specified by:
getEdgeCount
in interfaceorg.opennms.integration.api.v1.dao.EdgeDao
-
getEdgeCount
public long getEdgeCount(org.opennms.integration.api.v1.model.TopologyProtocol protocol)
- Specified by:
getEdgeCount
in interfaceorg.opennms.integration.api.v1.dao.EdgeDao
-
getEdges
public Set<org.opennms.integration.api.v1.model.TopologyEdge> getEdges()
- Specified by:
getEdges
in interfaceorg.opennms.integration.api.v1.dao.EdgeDao
-
getEdges
public Set<org.opennms.integration.api.v1.model.TopologyEdge> getEdges(org.opennms.integration.api.v1.model.TopologyProtocol protocol)
- Specified by:
getEdges
in interfaceorg.opennms.integration.api.v1.dao.EdgeDao
-
getProtocols
public Set<org.opennms.integration.api.v1.model.TopologyProtocol> getProtocols()
- Specified by:
getProtocols
in interfaceorg.opennms.integration.api.v1.dao.EdgeDao
-
-