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. 
 | 
Set<DeviceId> | 
getClusterDevices(Topology topology,
                 TopologyCluster cluster)
Returns the set of devices that belong to the specified cluster. 
 | 
Set<Link> | 
getClusterLinks(Topology topology,
               TopologyCluster cluster)
Returns the set of links that form the specified cluster. 
 | 
Set<TopologyCluster> | 
getClusters(Topology topology)
Returns the set of clusters in the specified topology. 
 | 
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. 
 | 
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. 
 | 
Set<DisjointPath> | 
getDisjointPaths(Topology topology,
                DeviceId src,
                DeviceId dst,
                LinkWeigher weigher,
                Map<Link,Object> riskProfile)
Returns the set of all disjoint shortest path pairs, precomputed in terms of hop-count,
 between the specified source and destination devices. 
 | 
Set<DisjointPath> | 
getDisjointPaths(Topology topology,
                DeviceId src,
                DeviceId dst,
                Map<Link,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 Stream<Path> | 
getKShortestPaths(Topology topology,
                 DeviceId src,
                 DeviceId dst)
Returns the k-shortest paths between source and
 destination devices. 
 | 
default Stream<Path> | 
getKShortestPaths(Topology topology,
                 DeviceId src,
                 DeviceId dst,
                 LinkWeigher weigher)
Returns the k-shortest paths between source and
 destination devices. 
 | 
default Set<Path> | 
getKShortestPaths(Topology topology,
                 DeviceId src,
                 DeviceId dst,
                 LinkWeigher weigher,
                 int maxPaths)
Returns the k-shortest paths between source and
 destination devices. 
 | 
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. 
 | 
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. 
 | 
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, removeListenerTopology 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 identifierSet<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 - edge-weight entitydefault 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)
topology - topology descriptorsrc - source devicedst - destination devicedefault 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)
topology - topology descriptorsrc - source devicedst - destination deviceSet<DisjointPath> getDisjointPaths(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, Map<Link,Object> riskProfile)
topology - topology descriptorsrc - source devicedst - destination deviceriskProfile - map of edges to risk profilesSet<DisjointPath> getDisjointPaths(Topology topology, DeviceId src, DeviceId dst, LinkWeigher weigher, Map<Link,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