public class LinkSupplierServiceAdapter extends Object implements LinkSupplierService
LinkSupplierService
for unit testsConstructor and Description |
---|
LinkSupplierServiceAdapter() |
Modifier and Type | Method and Description |
---|---|
Link |
createOrUpdateLink(ConnectionPoint src,
ConnectionPoint dst,
LinkInfo linkInfo)
Returns a new or updated infrastructure
Link
and updates the link information store. |
void |
removeAllLinks(ConnectionPoint cp)
Removes all infrastructure links to/from the given connection point.
|
void |
removeAllLinks(DeviceId device)
Removes all infrastructure links to/from the given device.
|
void |
removeLink(ConnectionPoint src,
ConnectionPoint dst)
Removes an infrastructure link from the cache.
|
public Link createOrUpdateLink(ConnectionPoint src, ConnectionPoint dst, LinkInfo linkInfo)
LinkSupplierService
Link
and updates the link information store. Note that the link.info returned
may not match the linkInfo passed in as the supplier updates the stored
info if appropriate.createOrUpdateLink
in interface LinkSupplierService
src
- source connection pointdst
- destination connection pointlinkInfo
- infrastructure link information to updatepublic void removeLink(ConnectionPoint src, ConnectionPoint dst)
LinkSupplierService
removeLink
in interface LinkSupplierService
src
- source connection pointdst
- destination connection pointpublic void removeAllLinks(DeviceId device)
LinkSupplierService
removeAllLinks
in interface LinkSupplierService
device
- device whose links will be removed from the cache.public void removeAllLinks(ConnectionPoint cp)
LinkSupplierService
removeAllLinks
in interface LinkSupplierService
cp
- connection point whose links will be removed from the cache.Copyright © 2015. All Rights Reserved.