@Service
@Beta
public class ConsistentResourceStore
extends org.onosproject.store.AbstractStore<org.onosproject.net.newresource.ResourceEvent,org.onosproject.net.newresource.ResourceStoreDelegate>
implements org.onosproject.net.newresource.ResourceStore
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.store.service.StorageService |
service |
| Constructor and Description |
|---|
ConsistentResourceStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
boolean |
allocate(List<org.onosproject.net.newresource.ResourcePath> resources,
org.onosproject.net.newresource.ResourceConsumer consumer) |
<T> Collection<org.onosproject.net.newresource.ResourcePath> |
getAllocatedResources(org.onosproject.net.newresource.ResourcePath parent,
Class<T> cls) |
Collection<org.onosproject.net.newresource.ResourcePath> |
getChildResources(org.onosproject.net.newresource.ResourcePath parent) |
Optional<org.onosproject.net.newresource.ResourceConsumer> |
getConsumer(org.onosproject.net.newresource.ResourcePath resource) |
Collection<org.onosproject.net.newresource.ResourcePath> |
getResources(org.onosproject.net.newresource.ResourceConsumer consumer) |
boolean |
register(List<org.onosproject.net.newresource.ResourcePath> resources) |
boolean |
release(List<org.onosproject.net.newresource.ResourcePath> resources,
List<org.onosproject.net.newresource.ResourceConsumer> consumers) |
boolean |
unregister(List<org.onosproject.net.newresource.ResourcePath> resources) |
hasDelegate, notifyDelegate, notifyDelegate, setDelegate, unsetDelegate@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.store.service.StorageService service
@Activate public void activate()
public Optional<org.onosproject.net.newresource.ResourceConsumer> getConsumer(org.onosproject.net.newresource.ResourcePath resource)
getConsumer in interface org.onosproject.net.newresource.ResourceStorepublic boolean register(List<org.onosproject.net.newresource.ResourcePath> resources)
register in interface org.onosproject.net.newresource.ResourceStorepublic boolean unregister(List<org.onosproject.net.newresource.ResourcePath> resources)
unregister in interface org.onosproject.net.newresource.ResourceStorepublic boolean allocate(List<org.onosproject.net.newresource.ResourcePath> resources, org.onosproject.net.newresource.ResourceConsumer consumer)
allocate in interface org.onosproject.net.newresource.ResourceStorepublic boolean release(List<org.onosproject.net.newresource.ResourcePath> resources, List<org.onosproject.net.newresource.ResourceConsumer> consumers)
release in interface org.onosproject.net.newresource.ResourceStorepublic Collection<org.onosproject.net.newresource.ResourcePath> getResources(org.onosproject.net.newresource.ResourceConsumer consumer)
getResources in interface org.onosproject.net.newresource.ResourceStorepublic Collection<org.onosproject.net.newresource.ResourcePath> getChildResources(org.onosproject.net.newresource.ResourcePath parent)
getChildResources in interface org.onosproject.net.newresource.ResourceStorepublic <T> Collection<org.onosproject.net.newresource.ResourcePath> getAllocatedResources(org.onosproject.net.newresource.ResourcePath parent, Class<T> cls)
getAllocatedResources in interface org.onosproject.net.newresource.ResourceStoreCopyright © 2015. All rights reserved.