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.
|
Set<DeviceId> |
getClusterDevices(Topology topology,
TopologyCluster cluster)
Returns the cluster of the specified topology.
|
Set<Link> |
getClusterLinks(Topology topology,
TopologyCluster cluster)
Returns the cluster of the specified topology.
|
Set<TopologyCluster> |
getClusters(Topology topology)
Returns the set of topology SCC clusters.
|
Set<DisjointPath> |
getDisjointPaths(Topology topology,
DeviceId src,
DeviceId dst)
Computes and returns the set of disjoint shortest path pairs
between src and dst.
|
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.
|
Set<DisjointPath> |
getDisjointPaths(Topology topology,
DeviceId src,
DeviceId dst,
LinkWeigher weigher,
Map<Link,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.
|
Set<DisjointPath> |
getDisjointPaths(Topology topology,
DeviceId src,
DeviceId dst,
Map<Link,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 Stream<Path> |
getKShortestPaths(Topology topology,
DeviceId src,
DeviceId dst,
LinkWeigher weigher)
Computes and returns the k-shortest paths between source and
destination devices.
|
default 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.
|
Set<Path> |
getPaths(Topology topology,
DeviceId src,
DeviceId dst)
Returns the set of pre-computed shortest paths between src and dest.
|
Set<Path> |
getPaths(Topology topology,
DeviceId src,
DeviceId dst,
LinkWeigher weigher)
Computes and returns the set of shortest paths between src and dest.
|
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,
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 descriptorSet<TopologyCluster> getClusters(Topology topology)
topology - topology descriptorTopologyCluster getCluster(Topology topology, ClusterId clusterId)
topology - topology descriptorclusterId - cluster identitySet<DeviceId> getClusterDevices(Topology topology, TopologyCluster cluster)
topology - topology descriptorcluster - topology clusterSet<Link> getClusterLinks(Topology topology, TopologyCluster cluster)
topology - topology descriptorcluster - topology clusterSet<Path> getPaths(Topology topology, DeviceId src, DeviceId dst)
topology - topology descriptorsrc - source devicedst - destination deviceSet<Path> getPaths(Topology topology, DeviceId src, DeviceId dst, LinkWeigher weigher)
topology - topology descriptorsrc - source devicedst - destination deviceweigher - link weight functiondefault 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 Stream<Path> getKShortestPaths(Topology topology, DeviceId src, DeviceId dst, LinkWeigher weigher)
topology - topology descriptorsrc - source devicedst - destination deviceweigher - edge-weight entitySet<DisjointPath> getDisjointPaths(Topology topology, DeviceId src, DeviceId dst, LinkWeigher weigher)
topology - topology descriptorsrc - source devicedst - destination deviceweigher - link weight functionSet<DisjointPath> getDisjointPaths(Topology topology, DeviceId src, DeviceId dst)
topology - topology descriptorsrc - source devicedst - destination deviceSet<DisjointPath> getDisjointPaths(Topology topology, DeviceId src, DeviceId dst, LinkWeigher weigher, Map<Link,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.Set<DisjointPath> getDisjointPaths(Topology topology, DeviceId src, DeviceId dst, Map<Link,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, List<Event> reasons)
providerId - provider identificationgraphDescription - topology graph descriptionreasons - list of events that triggered the update