public interface LinkService extends ListenerService<LinkEvent,LinkListener>
Modifier and Type | Method and Description |
---|---|
Iterable<Link> |
getActiveLinks()
Returns a collection of all active infrastructure links.
|
Set<Link> |
getDeviceEgressLinks(DeviceId deviceId)
Returns set of all infrastructure links leading from the specified device.
|
Set<Link> |
getDeviceIngressLinks(DeviceId deviceId)
Returns set of all infrastructure links leading to the specified device.
|
Set<Link> |
getDeviceLinks(DeviceId deviceId)
Returns set of all infrastructure links leading to and from the
specified device.
|
Set<Link> |
getEgressLinks(ConnectPoint connectPoint)
Returns set of all infrastructure links leading from the specified
connection point.
|
Set<Link> |
getIngressLinks(ConnectPoint connectPoint)
Returns set of all infrastructure links leading to the specified
connection point.
|
Link |
getLink(ConnectPoint src,
ConnectPoint dst)
Returns the infrastructure links between the specified source
and destination connection points.
|
int |
getLinkCount()
Returns the count of all known infrastructure links.
|
Iterable<Link> |
getLinks()
Returns a collection of all known infrastructure links.
|
Set<Link> |
getLinks(ConnectPoint connectPoint)
Returns set of all infrastructure links leading to and from the
specified connection point.
|
addListener, removeListener
int getLinkCount()
Iterable<Link> getLinks()
Iterable<Link> getActiveLinks()
Set<Link> getDeviceLinks(DeviceId deviceId)
deviceId
- device identifierSet<Link> getDeviceEgressLinks(DeviceId deviceId)
deviceId
- device identifierSet<Link> getDeviceIngressLinks(DeviceId deviceId)
deviceId
- device identifierSet<Link> getLinks(ConnectPoint connectPoint)
connectPoint
- connection pointSet<Link> getEgressLinks(ConnectPoint connectPoint)
connectPoint
- connection pointSet<Link> getIngressLinks(ConnectPoint connectPoint)
connectPoint
- connection pointLink getLink(ConnectPoint src, ConnectPoint dst)
src
- source connection pointdst
- destination connection point