@Service public class DistributedLinkResourceStore extends Object implements org.onosproject.net.resource.LinkResourceStore
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.store.service.DatabaseAdminService |
databaseAdminService |
protected org.onosproject.store.service.DatabaseService |
databaseService |
protected org.onosproject.net.link.LinkService |
linkService |
| Constructor and Description |
|---|
DistributedLinkResourceStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
allocateResources(org.onosproject.net.resource.LinkResourceAllocations allocations) |
void |
deactivate() |
Iterable<org.onosproject.net.resource.LinkResourceAllocations> |
getAllocations() |
org.onosproject.net.resource.LinkResourceAllocations |
getAllocations(org.onosproject.net.intent.IntentId intentId) |
List<org.onosproject.net.resource.LinkResourceAllocations> |
getAllocations(org.onosproject.net.Link link) |
Set<org.onosproject.net.resource.ResourceAllocation> |
getFreeResources(org.onosproject.net.Link link) |
org.onosproject.net.resource.LinkResourceEvent |
releaseResources(org.onosproject.net.resource.LinkResourceAllocations allocations) |
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.store.service.DatabaseAdminService databaseAdminService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.store.service.DatabaseService databaseService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.link.LinkService linkService
@Activate public void activate()
@Deactivate public void deactivate()
public Set<org.onosproject.net.resource.ResourceAllocation> getFreeResources(org.onosproject.net.Link link)
getFreeResources in interface org.onosproject.net.resource.LinkResourceStorepublic void allocateResources(org.onosproject.net.resource.LinkResourceAllocations allocations)
allocateResources in interface org.onosproject.net.resource.LinkResourceStorepublic org.onosproject.net.resource.LinkResourceEvent releaseResources(org.onosproject.net.resource.LinkResourceAllocations allocations)
releaseResources in interface org.onosproject.net.resource.LinkResourceStorepublic org.onosproject.net.resource.LinkResourceAllocations getAllocations(org.onosproject.net.intent.IntentId intentId)
getAllocations in interface org.onosproject.net.resource.LinkResourceStorepublic List<org.onosproject.net.resource.LinkResourceAllocations> getAllocations(org.onosproject.net.Link link)
getAllocations in interface org.onosproject.net.resource.LinkResourceStorepublic Iterable<org.onosproject.net.resource.LinkResourceAllocations> getAllocations()
getAllocations in interface org.onosproject.net.resource.LinkResourceStoreCopyright © 2014. All rights reserved.