public interface LinkResourceService
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(LinkResourceListener listener)
Adds a listener for resource related events.
|
Iterable<LinkResourceAllocations> |
getAllocations()
Returns all allocated resources.
|
LinkResourceAllocations |
getAllocations(IntentId intentId)
Returns the resources allocated for an Intent.
|
Iterable<LinkResourceAllocations> |
getAllocations(Link link)
Returns all allocated resources to given link.
|
Iterable<ResourceRequest> |
getAvailableResources(Link link)
Returns available resources for given link.
|
Iterable<ResourceRequest> |
getAvailableResources(Link link,
LinkResourceAllocations allocations)
Returns available resources for given link.
|
void |
releaseResources(LinkResourceAllocations allocations)
Releases resources.
|
void |
removeListener(LinkResourceListener listener)
Removes a listener for resource related events.
|
LinkResourceAllocations |
requestResources(LinkResourceRequest req)
Requests resources.
|
LinkResourceAllocations |
updateResources(LinkResourceRequest req,
LinkResourceAllocations oldAllocations)
Updates previously made allocations with a new resource request.
|
LinkResourceAllocations requestResources(LinkResourceRequest req)
req - resources to be allocatedvoid releaseResources(LinkResourceAllocations allocations)
allocations - resources to be releasedLinkResourceAllocations updateResources(LinkResourceRequest req, LinkResourceAllocations oldAllocations)
req - updated resource requestoldAllocations - old resource allocationsIterable<LinkResourceAllocations> getAllocations()
Iterable<LinkResourceAllocations> getAllocations(Link link)
link - a target linkLinkResourceAllocations getAllocations(IntentId intentId)
intentId - the target Intent's idIterable<ResourceRequest> getAvailableResources(Link link)
link - a target linkIterable<ResourceRequest> getAvailableResources(Link link, LinkResourceAllocations allocations)
link - a target linkallocations - allocations to be included as availablevoid addListener(LinkResourceListener listener)
listener - listener to addvoid removeListener(LinkResourceListener listener)
listener - listener to remove.Copyright © 2015. All rights reserved.