@Service
public class ConsistentLinkResourceStore
extends org.onosproject.store.AbstractStore<org.onosproject.net.resource.link.LinkResourceEvent,org.onosproject.net.resource.link.LinkResourceStoreDelegate>
implements org.onosproject.net.resource.link.LinkResourceStore
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.net.device.DeviceService |
deviceService |
protected org.onosproject.net.link.LinkService |
linkService |
protected org.onosproject.store.service.StorageService |
storageService |
| Constructor and Description |
|---|
ConsistentLinkResourceStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
allocateResources(org.onosproject.net.resource.link.LinkResourceAllocations allocations) |
void |
deactivate() |
Iterable<org.onosproject.net.resource.link.LinkResourceAllocations> |
getAllocations() |
org.onosproject.net.resource.link.LinkResourceAllocations |
getAllocations(org.onosproject.net.intent.IntentId intentId) |
Iterable<org.onosproject.net.resource.link.LinkResourceAllocations> |
getAllocations(org.onosproject.net.Link link) |
Set<org.onosproject.net.resource.ResourceAllocation> |
getFreeResources(org.onosproject.net.Link link) |
org.onosproject.net.resource.link.LinkResourceEvent |
releaseResources(org.onosproject.net.resource.link.LinkResourceAllocations allocations) |
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.store.service.StorageService storageService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.link.LinkService linkService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.device.DeviceService deviceService
@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.link.LinkResourceStorepublic void allocateResources(org.onosproject.net.resource.link.LinkResourceAllocations allocations)
allocateResources in interface org.onosproject.net.resource.link.LinkResourceStorepublic org.onosproject.net.resource.link.LinkResourceEvent releaseResources(org.onosproject.net.resource.link.LinkResourceAllocations allocations)
releaseResources in interface org.onosproject.net.resource.link.LinkResourceStorepublic org.onosproject.net.resource.link.LinkResourceAllocations getAllocations(org.onosproject.net.intent.IntentId intentId)
getAllocations in interface org.onosproject.net.resource.link.LinkResourceStorepublic Iterable<org.onosproject.net.resource.link.LinkResourceAllocations> getAllocations(org.onosproject.net.Link link)
getAllocations in interface org.onosproject.net.resource.link.LinkResourceStorepublic Iterable<org.onosproject.net.resource.link.LinkResourceAllocations> getAllocations()
getAllocations in interface org.onosproject.net.resource.link.LinkResourceStoreCopyright © 2015. All rights reserved.