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 isBackendGraph
as there is already aGraph
used in the UI.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
addEdgeListener(EdgeListener listener)
void
addEdges(Edge... edges)
void
addVertexListener(VertexListener vertexListener)
void
addVertices(Vertex... vertices)
void
clearEdges()
void
clearVertices()
Edge
connectVertices(java.lang.String edgeId, VertexRef sourceVertextId, VertexRef targetVertextId)
boolean
containsVertexId(java.lang.String id)
Deprecated.UsecontainsVertexId(VertexRef, Criteria...)
instead.boolean
containsVertexId(VertexRef id, Criteria... criteria)
Edge
getEdge(java.lang.String namespace, java.lang.String id)
Edge
getEdge(EdgeRef reference)
EdgeRef[]
getEdgeIdsForVertex(VertexRef vertex)
java.util.Map<VertexRef,java.util.Set<EdgeRef>>
getEdgeIdsForVertices(VertexRef... vertices)
This function can be used for efficiency when you need theEdgeRef
instances for a large number of vertices.java.util.List<Edge>
getEdges(java.util.Collection<? extends EdgeRef> references)
Return an immutable list of all edges that match this set of references.java.util.List<Edge>
getEdges(Criteria... criteria)
Return an immutable list of edges that match the criteria.int
getEdgeTotalCount()
Vertex
getVertex(java.lang.String namespace, java.lang.String id)
Vertex
getVertex(VertexRef reference, Criteria... criteria)
int
getVertexTotalCount()
java.util.List<Vertex>
getVertices(java.util.Collection<? extends VertexRef> references, Criteria... criteria)
java.util.List<Vertex>
getVertices(Criteria... criteria)
Return an immutable list of vertices that match the criteria.void
removeEdgeListener(EdgeListener listener)
void
removeEdges(EdgeRef... edges)
void
removeVertex(VertexRef... vertexId)
void
removeVertexListener(VertexListener vertexListener)
void
resetContainer()
-
Methods inherited from interface org.opennms.features.topology.api.NamespaceAware
contributesTo, getNamespace
-
-
-
-
Method Detail
-
containsVertexId
@Deprecated boolean containsVertexId(java.lang.String id)
Deprecated.UsecontainsVertexId(VertexRef, Criteria...)
instead.
-
getVertex
Vertex getVertex(java.lang.String namespace, java.lang.String id)
-
getVertices
java.util.List<Vertex> getVertices(Criteria... criteria)
Return an immutable list of vertices that match the criteria.
-
getVertices
java.util.List<Vertex> getVertices(java.util.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)
-
getEdge
Edge getEdge(java.lang.String namespace, java.lang.String id)
-
getEdges
java.util.List<Edge> getEdges(Criteria... criteria)
Return an immutable list of edges that match the criteria.
-
getEdges
java.util.List<Edge> getEdges(java.util.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
java.util.Map<VertexRef,java.util.Set<EdgeRef>> getEdgeIdsForVertices(VertexRef... vertices)
This function can be used for efficiency when you need theEdgeRef
instances for a large number of vertices.
-
addEdges
void addEdges(Edge... edges)
-
removeEdges
void removeEdges(EdgeRef... edges)
-
connectVertices
Edge connectVertices(java.lang.String edgeId, VertexRef sourceVertextId, VertexRef targetVertextId)
-
resetContainer
void resetContainer()
-
-