@Service public class HazelcastLinkResourceStore extends AbstractHazelcastStore<org.onosproject.net.resource.LinkResourceEvent,org.onosproject.store.StoreDelegate<org.onosproject.net.resource.LinkResourceEvent>> implements org.onosproject.net.resource.LinkResourceStore
AbstractHazelcastStore.RemoteCacheEventHandler<K,V>, AbstractHazelcastStore.RemoteEventHandler<K,V>| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.net.link.LinkService |
linkService |
serializer, storeService, theInstance| Constructor and Description |
|---|
HazelcastLinkResourceStore() |
| 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) |
deserialize, serialize@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.link.LinkService linkService
@Activate public void activate()
activate in class AbstractHazelcastStore<org.onosproject.net.resource.LinkResourceEvent,org.onosproject.store.StoreDelegate<org.onosproject.net.resource.LinkResourceEvent>>@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.