| Package | Description |
|---|---|
| org.onosproject.net.newresource |
Generic network resource model and services for resource allocation and
resource tracking.
|
| Modifier and Type | Method and Description |
|---|---|
List<ResourceAllocation> |
ResourceService.allocate(ResourceConsumer consumer,
List<ResourcePath> resources)
Transactionally allocates the specified resources to the specified user.
|
default List<ResourceAllocation> |
ResourceService.allocate(ResourceConsumer consumer,
ResourcePath... resources)
Transactionally allocates the specified resources to the specified user.
|
default Optional<ResourceAllocation> |
ResourceService.allocate(ResourceConsumer consumer,
ResourcePath resource)
Allocates the specified resource to the specified user.
|
Collection<ResourceAllocation> |
ResourceService.getResourceAllocations(ResourceConsumer consumer)
Returns resources allocated to the specified consumer.
|
<T> Collection<ResourceAllocation> |
ResourceService.getResourceAllocations(ResourcePath parent,
Class<T> cls)
Returns allocated resources being as children of the specified parent and being the specified resource type.
|
| Modifier and Type | Method and Description |
|---|---|
default boolean |
ResourceService.release(ResourceAllocation... allocations)
Transactionally releases the specified resource allocations.
|
default boolean |
ResourceService.release(ResourceAllocation allocation)
Releases the specified resource allocation.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
ResourceService.release(List<ResourceAllocation> allocations)
Transactionally releases the specified resource allocations.
|
Copyright © 2015. All rights reserved.