public interface LinkService
Modifier and Type | Method and Description |
---|---|
void |
addListener(LinkListener listener)
Adds the specified link update listener.
|
Iterator<Link> |
getLinks()
Returns an iterator over the set of all infrastructure links.
|
Set<Link> |
getLinks(ConnectionPoint cp)
Returns the link(s) that contain the given connection point.
|
Set<Link> |
getLinks(DeviceId device)
Returns the set of all links for which the given device is either
the source or the destination.
|
Set<Link> |
getLinks(DeviceId deviceA,
DeviceId deviceB)
Returns the set of all links between the two given devices.
|
Set<Link> |
getLinksFrom(ConnectionPoint src)
Returns the set of all links for which this connection point
is the source.
|
Set<Link> |
getLinksFrom(DeviceId device)
Returns the set of all links for which this device is the source.
|
Set<Link> |
getLinksTo(ConnectionPoint dst)
Returns the set of all links for which this connection point
is the destination.
|
Set<Link> |
getLinksTo(DeviceId device)
Returns the set of all links for which this device is
the destination.
|
Set<LinkListener> |
getListeners()
Returns the set of all link update listeners.
|
void |
removeListener(LinkListener listener)
Removes the specified link update listener.
|
Iterator<Link> getLinks()
Set<Link> getLinks(DeviceId device)
device
- the device IDNullPointerException
- if device is nullSet<Link> getLinks(DeviceId deviceA, DeviceId deviceB)
deviceA
- the first device IDdeviceB
- the second device IDNullPointerException
- if any param is nullSet<Link> getLinksFrom(DeviceId device)
device
- the device IDNullPointerException
- if any param is nullSet<Link> getLinksTo(DeviceId device)
device
- the device IDNullPointerException
- if device is nullSet<Link> getLinks(ConnectionPoint cp)
Note that a connection point can appear to be part of more than one link when switches not connected to this controller are in the path.
cp
- the connection point to matchNullPointerException
- if cp is nullSet<Link> getLinksFrom(ConnectionPoint src)
src
- the source connection pointNullPointerException
- if src is nullSet<Link> getLinksTo(ConnectionPoint dst)
dst
- the source connection pointNullPointerException
- if dst is nullvoid addListener(LinkListener listener)
listener
- the listener to be addedNullPointerException
- if the listener is nullvoid removeListener(LinkListener listener)
listener
- the listener to be removedNullPointerException
- if the listener is nullSet<LinkListener> getListeners()
Copyright © 2015. All Rights Reserved.