Package org.onosproject.net.topology
Interface Topology
-
- All Superinterfaces:
Provided
- All Known Implementing Classes:
DefaultTopology
public interface Topology extends Provided
Represents a network topology computation snapshot.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intclusterCount()Returns the number of SCCs (strongly connected components) in the topology.longcomputeCost()Returns the time, specified in system nanos of how long the topology took to compute.longcreationTime()Returns the time, specified in system millis of when the topology became available.intdeviceCount()Returns the number of infrastructure devices in the topology.intlinkCount()Returns the number of infrastructure links in the topology.longtime()Returns the time, specified in system nanos of when the topology became available.-
Methods inherited from interface org.onosproject.net.Provided
providerId
-
-
-
-
Method Detail
-
time
long time()
Returns the time, specified in system nanos of when the topology became available.- Returns:
- time in system nanos
-
creationTime
long creationTime()
Returns the time, specified in system millis of when the topology became available.- Returns:
- time in system nanos
-
computeCost
long computeCost()
Returns the time, specified in system nanos of how long the topology took to compute.- Returns:
- elapsed time in system nanos
-
clusterCount
int clusterCount()
Returns the number of SCCs (strongly connected components) in the topology.- Returns:
- number of clusters
-
deviceCount
int deviceCount()
Returns the number of infrastructure devices in the topology.- Returns:
- number of devices
-
linkCount
int linkCount()
Returns the number of infrastructure links in the topology.- Returns:
- number of links
-
-