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 ofOnmsTopologyDaoto satisfy the contract ofthe integration APIby 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 longgetEdgeCount()longgetEdgeCount(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:
getEdgeCountin interfaceorg.opennms.integration.api.v1.dao.EdgeDao
-
getEdgeCount
public long getEdgeCount(org.opennms.integration.api.v1.model.TopologyProtocol protocol)
- Specified by:
getEdgeCountin interfaceorg.opennms.integration.api.v1.dao.EdgeDao
-
getEdges
public Set<org.opennms.integration.api.v1.model.TopologyEdge> getEdges()
- Specified by:
getEdgesin 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:
getEdgesin interfaceorg.opennms.integration.api.v1.dao.EdgeDao
-
getProtocols
public Set<org.opennms.integration.api.v1.model.TopologyProtocol> getProtocols()
- Specified by:
getProtocolsin interfaceorg.opennms.integration.api.v1.dao.EdgeDao
-
-