public interface TopologyViewerService
Modifier and Type | Method and Description |
---|---|
List<MBodyFlowStats> |
getFlowStats(DataPathId dpid)
Returns list of switch flow stats.
|
Set<Link> |
getLinks()
Returns all links.
|
NetworkElement |
getNode(ElementId elementId)
Returns the node with the specified id.
|
NetworkElement |
getNode(String id)
Returns the node with the specified String id.
|
Set<NetworkElement> |
getNodes()
Returns all nodes and devices.
|
BigPortNumber |
getOutPort(MBodyFlowStats rule)
Gets the outPort for a given flow stats
|
Path |
getPath(NetworkElement src,
NetworkElement dst)
Returns the shortest path between the specified nodes.
|
Path |
getPathFollowingFlows(NetworkElement src,
NetworkElement dst,
EthernetType ethType,
IpProtocol protocol)
Returns the path between the specified nodes using the supplied flow
descriptors.
|
String |
getPathLinkAnnotation(Link link)
Provides packetCount and bytecount for a path link
when follow flow is selected
|
long |
lastModified()
Returns the time-stamp of the most recent modification of the node or
link data.
|
void |
resetCache()
Resets the node cache and reloads it from scratch.
|
long lastModified()
Set<NetworkElement> getNodes()
NetworkElement getNode(ElementId elementId)
elementId
- element id (node/device)NetworkElement getNode(String id)
id
- Mac Address for nodes/Dpid for devicesPath getPath(NetworkElement src, NetworkElement dst)
src
- source element (Node/Device)dst
- destination (Node/Device)Path getPathFollowingFlows(NetworkElement src, NetworkElement dst, EthernetType ethType, IpProtocol protocol)
src
- source Node (cannot be a device)dst
- destination Node (cannot be a device)ethType
- Ethernet Typeprotocol
- IP protocol numberIllegalArgumentException
- if either of the srcId or dstId
are device IdsList<MBodyFlowStats> getFlowStats(DataPathId dpid)
dpid
- switch datapath idBigPortNumber getOutPort(MBodyFlowStats rule)
rule
- flow statsString getPathLinkAnnotation(Link link)
link
- link to get the stats forvoid resetCache()
Copyright © 2015. All Rights Reserved.