public interface TopologyStore extends Store<TopologyEvent,TopologyStoreDelegate>
| Modifier and Type | Method and Description |
|---|---|
Topology |
currentTopology()
Returns the current topology snapshot.
|
TopologyCluster |
getCluster(Topology topology,
ClusterId clusterId)
Returns the cluster of the specified topology.
|
java.util.Set<DeviceId> |
getClusterDevices(Topology topology,
TopologyCluster cluster)
Returns the cluster of the specified topology.
|
java.util.Set<Link> |
getClusterLinks(Topology topology,
TopologyCluster cluster)
Returns the cluster of the specified topology.
|
java.util.Set<TopologyCluster> |
getClusters(Topology topology)
Returns the set of topology SCC clusters.
|
java.util.Set<DisjointPath> |
getDisjointPaths(Topology topology,
DeviceId src,
DeviceId dst)
Computes and returns the set of disjoint shortest path pairs
between src and dst.
|
java.util.Set<DisjointPath> |
getDisjointPaths(Topology topology,
DeviceId src,
DeviceId dst,
LinkWeigher weigher)
Computes and returns the set of disjoint shortest path pairs
between src and dst.
|
java.util.Set<DisjointPath> |
getDisjointPaths(Topology topology,
DeviceId src,
DeviceId dst,
LinkWeigher weigher,
java.util.Map<Link,java.lang.Object> riskProfile)
Computes and returns the set of SRLG disjoint shortest path pairs between source
and dst, given a mapping of edges to SRLG risk groups.
|
java.util.Set<DisjointPath> |
getDisjointPaths(Topology topology,
DeviceId src,
DeviceId dst,
LinkWeight weight)
Deprecated.
in Junco (1.9.0), use version with LinkWeigher instead
|
java.util.Set<DisjointPath> |
getDisjointPaths(Topology topology,
DeviceId src,
DeviceId dst,
LinkWeight weight,
java.util.Map<Link,java.lang.Object> riskProfile)
Deprecated.
in Junco (1.9.0), use version with LinkWeigher instead
|
java.util.Set<DisjointPath> |
getDisjointPaths(Topology topology,
DeviceId src,
DeviceId dst,
java.util.Map<Link,java.lang.Object> riskProfile)
Returns the set of pre-computed SRLG shortest paths between src and dest.
|
TopologyGraph |
getGraph(Topology topology)
Returns the immutable graph view of the current topology.
|
default java.util.stream.Stream<Path> |
getKShortestPaths(Topology topology,
DeviceId src,
DeviceId dst,
LinkWeigher weigher)
Computes and returns the k-shortest paths between source and
destination devices.
|
default java.util.Set<Path> |
getKShortestPaths(Topology topology,
DeviceId src,
DeviceId dst,
LinkWeigher weigher,
int maxPaths)
Computes and returns the k-shortest paths between source and
destination devices.
|
java.util.Set<Path> |
getPaths(Topology topology,
DeviceId src,
DeviceId dst)
Returns the set of pre-computed shortest paths between src and dest.
|
java.util.Set<Path> |
getPaths(Topology topology,
DeviceId src,
DeviceId dst,
LinkWeigher weigher)
Computes and returns the set of shortest paths between src and dest.
|
java.util.Set<Path> |
getPaths(Topology topology,
DeviceId src,
DeviceId dst,
LinkWeight weight)
Deprecated.
in Junco (1.9.0), use version with LinkWeigher instead
|
boolean |
isBroadcastPoint(Topology topology,
ConnectPoint connectPoint)
Indicates whether broadcast is allowed for traffic received on the
given connection point.
|
boolean |
isInfrastructure(Topology topology,
ConnectPoint connectPoint)
Indicates whether the given connect point is part of the network fabric.
|
boolean |
isLatest(Topology topology)
Indicates whether the topology is the latest.
|
TopologyEvent |
updateTopology(ProviderId providerId,
GraphDescription graphDescription,
java.util.List<Event> reasons)
Generates a new topology snapshot from the specified description.
|
hasDelegate, setDelegate, unsetDelegateTopology currentTopology()
boolean isLatest(Topology topology)
topology - topology descriptorTopologyGraph getGraph(Topology topology)
topology - topology descriptorjava.util.Set<TopologyCluster> getClusters(Topology topology)
topology - topology descriptorTopologyCluster getCluster(Topology topology, ClusterId clusterId)
topology - topology descriptorclusterId - cluster identityjava.util.Set<DeviceId> getClusterDevices(Topology topology, TopologyCluster cluster)
topology - topology descriptorcluster - topology clusterjava.util.Set<Link> getClusterLinks(Topology topology, TopologyCluster cluster)
topology - topology descriptorcluster - topology clusterjava.util.Set<Path> getPaths(Topology topology, DeviceId src, DeviceId dst)
topology - topology descriptorsrc - source devicedst - destination device@Deprecated java.util.Set<Path> getPaths(Topology topology, DeviceId src, DeviceId dst, LinkWeight weight)
topology - topology descriptorsrc - source devicedst - destination deviceweight - link weight functionjava.util.Set<Path> getPaths(Topology topology, DeviceId src, DeviceId dst, LinkWeigher weigher)
topology - topology descriptorsrc - source devicedst - destination deviceweigher - link weight functiondefault java.util.Set<Path> getKShortestPaths(Topology topology, DeviceId src, DeviceId dst, LinkWeigher weigher, int maxPaths)
maxPaths paths will be returned
in ascending order according to the provided weighertopology - topology descriptorsrc - source devicedst - destination deviceweigher - edge-weight entitymaxPaths - maximum number of paths (k)default java.util.stream.Stream<Path> getKShortestPaths(Topology topology, DeviceId src, DeviceId dst, LinkWeigher weigher)
topology - topology descriptorsrc - source devicedst - destination deviceweigher - edge-weight entity@Deprecated java.util.Set<DisjointPath> getDisjointPaths(Topology topology, DeviceId src, DeviceId dst, LinkWeight weight)
topology - topology descriptorsrc - source devicedst - destination deviceweight - link weight functionjava.util.Set<DisjointPath> getDisjointPaths(Topology topology, DeviceId src, DeviceId dst, LinkWeigher weigher)
topology - topology descriptorsrc - source devicedst - destination deviceweigher - link weight functionjava.util.Set<DisjointPath> getDisjointPaths(Topology topology, DeviceId src, DeviceId dst)
topology - topology descriptorsrc - source devicedst - destination device@Deprecated java.util.Set<DisjointPath> getDisjointPaths(Topology topology, DeviceId src, DeviceId dst, LinkWeight weight, java.util.Map<Link,java.lang.Object> riskProfile)
topology - topology descriptorsrc - source devicedst - destination deviceweight - link weight functionriskProfile - map of edges to objects. Edges that map to the same object will
be treated as if they were in the same risk group.java.util.Set<DisjointPath> getDisjointPaths(Topology topology, DeviceId src, DeviceId dst, LinkWeigher weigher, java.util.Map<Link,java.lang.Object> riskProfile)
topology - topology descriptorsrc - source devicedst - destination deviceweigher - link weight functionriskProfile - map of edges to objects. Edges that map to the same object will
be treated as if they were in the same risk group.java.util.Set<DisjointPath> getDisjointPaths(Topology topology, DeviceId src, DeviceId dst, java.util.Map<Link,java.lang.Object> riskProfile)
topology - topology descriptorsrc - source devicedst - destination deviceriskProfile - map of edges to objects. Edges that map to the same object will
be treated as if they were in the same risk group.boolean isInfrastructure(Topology topology, ConnectPoint connectPoint)
topology - topology descriptorconnectPoint - connection pointboolean isBroadcastPoint(Topology topology, ConnectPoint connectPoint)
topology - topology descriptorconnectPoint - connection pointTopologyEvent updateTopology(ProviderId providerId, GraphDescription graphDescription, java.util.List<Event> reasons)
providerId - provider identificationgraphDescription - topology graph descriptionreasons - list of events that triggered the update