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. 
 | 
Set<Link> | 
getDeviceEgressLinks(DeviceId deviceId)
Returns all links egressing from the specified device. 
 | 
Set<Link> | 
getDeviceIngressLinks(DeviceId deviceId)
Returns all links ingressing from the specified device. 
 | 
Set<Link> | 
getEgressLinks(ConnectPoint src)
Returns all links egressing from the specified connection point. 
 | 
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. 
 | 
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, unsetDelegateint getLinkCount()
Iterable<Link> getLinks()
Set<Link> getDeviceEgressLinks(DeviceId deviceId)
deviceId - device identifierSet<Link> getDeviceIngressLinks(DeviceId deviceId)
deviceId - device identifierLink getLink(ConnectPoint src, ConnectPoint dst)
src - source connection pointdst - destination connection pointSet<Link> getEgressLinks(ConnectPoint src)
src - source connection pointSet<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