public interface LinkStore extends Store<LinkEvent,LinkStoreDelegate>
Modifier and Type | Method and Description |
---|---|
LinkEvent |
createOrUpdateLink(ProviderId providerId,
LinkDescription linkDescription)
Creates a new link, or updates an existing one, based on the given
information.
|
java.util.Set<Link> |
getDeviceEgressLinks(DeviceId deviceId)
Returns all links egressing from the specified device.
|
java.util.Set<Link> |
getDeviceIngressLinks(DeviceId deviceId)
Returns all links ingressing from the specified device.
|
java.util.Set<Link> |
getEgressLinks(ConnectPoint src)
Returns all links egressing from the specified connection point.
|
java.util.Set<Link> |
getIngressLinks(ConnectPoint dst)
Returns all links ingressing to the specified connection point.
|
Link |
getLink(ConnectPoint src,
ConnectPoint dst)
Returns the link between the two end-points.
|
int |
getLinkCount()
Returns the number of links in the store.
|
java.lang.Iterable<Link> |
getLinks()
Returns an iterable collection of all links in the inventory.
|
LinkEvent |
removeLink(ConnectPoint src,
ConnectPoint dst)
Removes the link based on the specified information.
|
LinkEvent |
removeOrDownLink(ConnectPoint src,
ConnectPoint dst)
Removes the link, or marks it as inactive if the link is durable,
based on the specified information.
|
hasDelegate, setDelegate, unsetDelegate
int getLinkCount()
java.lang.Iterable<Link> getLinks()
java.util.Set<Link> getDeviceEgressLinks(DeviceId deviceId)
deviceId
- device identifierjava.util.Set<Link> getDeviceIngressLinks(DeviceId deviceId)
deviceId
- device identifierLink getLink(ConnectPoint src, ConnectPoint dst)
src
- source connection pointdst
- destination connection pointjava.util.Set<Link> getEgressLinks(ConnectPoint src)
src
- source connection pointjava.util.Set<Link> getIngressLinks(ConnectPoint dst)
dst
- destination connection pointLinkEvent createOrUpdateLink(ProviderId providerId, LinkDescription linkDescription)
providerId
- provider identitylinkDescription
- link descriptionLinkEvent removeOrDownLink(ConnectPoint src, ConnectPoint dst)
src
- link sourcedst
- link destinationLinkEvent removeLink(ConnectPoint src, ConnectPoint dst)
src
- link sourcedst
- link destination