Interface BackendGraph
-
- All Superinterfaces:
NamespaceAware
- All Known Implementing Classes:
BusinessServiceGraph,CollapsibleGraph,LegacyBackendGraph,SimpleGraph
public interface BackendGraph extends NamespaceAware
Graph interface which are provided by aGraphProvider. Name isBackendGraphas there is already aGraphused in the UI.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidaddEdgeListener(EdgeListener listener)voidaddEdges(Edge... edges)voidaddVertexListener(VertexListener vertexListener)voidaddVertices(Vertex... vertices)voidclearEdges()voidclearVertices()EdgeconnectVertices(String edgeId, VertexRef sourceVertextId, VertexRef targetVertextId)booleancontainsVertexId(String id)Deprecated.UsecontainsVertexId(VertexRef, Criteria...)instead.booleancontainsVertexId(VertexRef id, Criteria... criteria)EdgegetEdge(String namespace, String id)EdgegetEdge(EdgeRef reference)EdgeRef[]getEdgeIdsForVertex(VertexRef vertex)Map<VertexRef,Set<EdgeRef>>getEdgeIdsForVertices(VertexRef... vertices)This function can be used for efficiency when you need theEdgeRefinstances for a large number of vertices.List<Edge>getEdges(Collection<? extends EdgeRef> references)Return an immutable list of all edges that match this set of references.List<Edge>getEdges(Criteria... criteria)Return an immutable list of edges that match the criteria.intgetEdgeTotalCount()VertexgetVertex(String namespace, String id)VertexgetVertex(VertexRef reference, Criteria... criteria)intgetVertexTotalCount()List<Vertex>getVertices(Collection<? extends VertexRef> references, Criteria... criteria)List<Vertex>getVertices(Criteria... criteria)Return an immutable list of vertices that match the criteria.voidremoveEdgeListener(EdgeListener listener)voidremoveEdges(EdgeRef... edges)voidremoveVertex(VertexRef... vertexId)voidremoveVertexListener(VertexListener vertexListener)voidresetContainer()-
Methods inherited from interface org.opennms.features.topology.api.NamespaceAware
contributesTo, getNamespace
-
-
-
-
Method Detail
-
containsVertexId
@Deprecated boolean containsVertexId(String id)
Deprecated.UsecontainsVertexId(VertexRef, Criteria...)instead.
-
getVertices
List<Vertex> getVertices(Criteria... criteria)
Return an immutable list of vertices that match the criteria.
-
getVertices
List<Vertex> getVertices(Collection<? extends VertexRef> references, Criteria... criteria)
-
addVertexListener
void addVertexListener(VertexListener vertexListener)
-
removeVertexListener
void removeVertexListener(VertexListener vertexListener)
-
clearVertices
void clearVertices()
-
getVertexTotalCount
int getVertexTotalCount()
-
addVertices
void addVertices(Vertex... vertices)
-
removeVertex
void removeVertex(VertexRef... vertexId)
-
getEdges
List<Edge> getEdges(Criteria... criteria)
Return an immutable list of edges that match the criteria.
-
getEdges
List<Edge> getEdges(Collection<? extends EdgeRef> references)
Return an immutable list of all edges that match this set of references.
-
addEdgeListener
void addEdgeListener(EdgeListener listener)
-
removeEdgeListener
void removeEdgeListener(EdgeListener listener)
-
clearEdges
void clearEdges()
-
getEdgeTotalCount
int getEdgeTotalCount()
-
getEdgeIdsForVertices
Map<VertexRef,Set<EdgeRef>> getEdgeIdsForVertices(VertexRef... vertices)
This function can be used for efficiency when you need theEdgeRefinstances for a large number of vertices.
-
addEdges
void addEdges(Edge... edges)
-
removeEdges
void removeEdges(EdgeRef... edges)
-
connectVertices
Edge connectVertices(String edgeId, VertexRef sourceVertextId, VertexRef targetVertextId)
-
resetContainer
void resetContainer()
-
-