public interface LinkService extends ListenerService<LinkEvent,LinkListener>
| Modifier and Type | Method and Description |
|---|---|
java.lang.Iterable<Link> |
getActiveLinks()
Returns a collection of all active infrastructure links.
|
java.util.Set<Link> |
getDeviceEgressLinks(DeviceId deviceId)
Returns set of all infrastructure links leading from the specified device.
|
java.util.Set<Link> |
getDeviceIngressLinks(DeviceId deviceId)
Returns set of all infrastructure links leading to the specified device.
|
java.util.Set<Link> |
getDeviceLinks(DeviceId deviceId)
Returns set of all infrastructure links leading to and from the
specified device.
|
java.util.Set<Link> |
getEgressLinks(ConnectPoint connectPoint)
Returns set of all infrastructure links leading from the specified
connection point.
|
java.util.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.
|
java.lang.Iterable<Link> |
getLinks()
Returns a collection of all known infrastructure links.
|
java.util.Set<Link> |
getLinks(ConnectPoint connectPoint)
Returns set of all infrastructure links leading to and from the
specified connection point.
|
addListener, removeListenerint getLinkCount()
java.lang.Iterable<Link> getLinks()
java.lang.Iterable<Link> getActiveLinks()
java.util.Set<Link> getDeviceLinks(DeviceId deviceId)
deviceId - device identifierjava.util.Set<Link> getDeviceEgressLinks(DeviceId deviceId)
deviceId - device identifierjava.util.Set<Link> getDeviceIngressLinks(DeviceId deviceId)
deviceId - device identifierjava.util.Set<Link> getLinks(ConnectPoint connectPoint)
connectPoint - connection pointjava.util.Set<Link> getEgressLinks(ConnectPoint connectPoint)
connectPoint - connection pointjava.util.Set<Link> getIngressLinks(ConnectPoint connectPoint)
connectPoint - connection pointLink getLink(ConnectPoint src, ConnectPoint dst)
src - source connection pointdst - destination connection point