| Package | Description |
|---|---|
| org.onosproject.net.intent |
Set of abstractions for conveying high-level intents for treatment of
selected network traffic by allowing applications to express the
what rather than the how.
|
| org.onosproject.net.newresource |
Generic network resource model and services for resource allocation and
resource tracking.
|
| Modifier and Type | Class and Description |
|---|---|
class |
IntentId
Intent identifier suitable as an external key.
|
| Modifier and Type | Method and Description |
|---|---|
ResourceConsumer |
ResourceAllocation.consumer()
Returns the consumer of this resource.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<ResourceConsumer> |
ResourceStore.getConsumer(ResourcePath resource)
Returns the resource consumer to whom the specified resource is allocated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
ResourceStore.allocate(List<ResourcePath> resources,
ResourceConsumer consumer)
Allocates the specified resources to the specified consumer in transactional way.
|
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.
|
Collection<ResourcePath> |
ResourceStore.getResources(ResourceConsumer consumer)
Returns a collection of the resources allocated to the specified consumer.
|
boolean |
ResourceService.release(ResourceConsumer consumer)
Transactionally releases the resources allocated to the specified consumer.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
ResourceStore.release(List<ResourcePath> resources,
List<ResourceConsumer> consumers)
Releases the specified resources allocated to the specified corresponding consumers
in transactional way.
|
| Constructor and Description |
|---|
ResourceAllocation(ResourcePath resource,
ResourceConsumer consumer)
Creates an instance with the specified subject, resource and consumer.
|
Copyright © 2015. All rights reserved.