public interface TopologyService extends ListenerService<TopologyEvent,TopologyListener>
Modifier and Type | Method and Description |
---|---|
Topology |
currentTopology()
Returns the current topology descriptor.
|
TopologyCluster |
getCluster(Topology topology,
ClusterId clusterId)
Returns the cluster with the specified ID.
|
java.util.Set<DeviceId> |
getClusterDevices(Topology topology,
TopologyCluster cluster)
Returns the set of devices that belong to the specified cluster.
|
java.util.Set<Link> |
getClusterLinks(Topology topology,
TopologyCluster cluster)
Returns the set of links that form the specified cluster.
|
java.util.Set<TopologyCluster> |
getClusters(Topology topology)
Returns the set of clusters in the specified topology.
|
java.util.Set<DisjointPath> |
getDisjointPaths(Topology topology,
DeviceId src,
DeviceId dst)
Returns the set of all disjoint shortest path pairs, precomputed in terms of hop-count,
between the specified source and destination devices.
|
java.util.Set<DisjointPath> |
getDisjointPaths(Topology topology,
DeviceId src,
DeviceId dst,
LinkWeigher weigher)
Returns the set of all disjoint shortest path pairs, computed using the supplied
edge-weight entity, between the specified source and destination devices.
|
java.util.Set<DisjointPath> |
getDisjointPaths(Topology topology,
DeviceId src,
DeviceId dst,
LinkWeigher weigher,
java.util.Map<Link,java.lang.Object> riskProfile)
Returns the set of all disjoint shortest path pairs, precomputed in terms of hop-count,
between the specified source and destination devices.
|
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 all disjoint shortest path pairs, precomputed in terms of hop-count,
between the specified source and destination devices.
|
TopologyGraph |
getGraph(Topology topology)
Returns the graph view of the specified topology.
|
default java.util.stream.Stream<Path> |
getKShortestPaths(Topology topology,
DeviceId src,
DeviceId dst)
Returns the k-shortest paths between source and
destination devices.
|
default java.util.stream.Stream<Path> |
getKShortestPaths(Topology topology,
DeviceId src,
DeviceId dst,
LinkWeigher weigher)
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)
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 all shortest paths, precomputed in terms of hop-count,
between the specified source and destination devices.
|
java.util.Set<Path> |
getPaths(Topology topology,
DeviceId src,
DeviceId dst,
LinkWeigher weigher)
Returns the set of all shortest paths, computed using the supplied
edge-weight entity, between the specified source and destination devices.
|
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
specified connection point.
|
boolean |
isInfrastructure(Topology topology,
ConnectPoint connectPoint)
Indicates whether the specified connection point is part of the network
infrastructure or part of network edge.
|
boolean |
isLatest(Topology topology)
Indicates whether the specified topology is the latest or not.
|
addListener, removeListener
Topology 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 identifierjava.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
- edge-weight entityjava.util.Set<Path> getPaths(Topology topology, DeviceId src, DeviceId dst, LinkWeigher weigher)
topology
- topology descriptorsrc
- source devicedst
- destination deviceweigher
- edge-weight entitydefault 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 weigher
topology
- 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)
topology
- topology descriptorsrc
- source devicedst
- destination devicedefault java.util.stream.Stream<Path> getKShortestPaths(Topology topology, DeviceId src, DeviceId dst, LinkWeigher weigher)
topology
- topology descriptorsrc
- source devicedst
- destination deviceweigher
- edge-weight entityjava.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)
topology
- topology descriptorsrc
- source devicedst
- destination deviceweight
- edge-weight entityjava.util.Set<DisjointPath> getDisjointPaths(Topology topology, DeviceId src, DeviceId dst, LinkWeigher weigher)
topology
- topology descriptorsrc
- source devicedst
- destination deviceweigher
- edge-weight entityjava.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 risk profiles@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
- edge-weight entityriskProfile
- map of edges to risk profilesjava.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
- edge-weight entityriskProfile
- map of edges to risk profilesboolean isInfrastructure(Topology topology, ConnectPoint connectPoint)
topology
- topology descriptorconnectPoint
- connection pointboolean isBroadcastPoint(Topology topology, ConnectPoint connectPoint)
topology
- topology descriptorconnectPoint
- connection point