public interface DeviceResourceService
| Modifier and Type | Method and Description |
|---|---|
Set<Port> |
getAllocations(IntentId intentId)
Returns the set of ports allocated for an intent.
|
IntentId |
getAllocations(Port port)
Returns the intent allocated to a port.
|
Set<IntentId> |
getMapping(IntentId intentId)
Returns the intents mapped to a lower intent.
|
void |
releaseMapping(IntentId intentId)
Release mapping of given intent.
|
void |
releasePorts(IntentId intentId)
Release ports associated with given intent ID.
|
boolean |
requestMapping(IntentId keyIntentId,
IntentId valIntentId)
Request a mapping between the given intents.
|
boolean |
requestPorts(Set<Port> ports,
Intent intent)
Request a set of ports needed to satisfy the intent.
|
boolean requestPorts(Set<Port> ports, Intent intent)
ports - set of ports to allocateintent - the intentSet<Port> getAllocations(IntentId intentId)
intentId - the intent IDIntentId getAllocations(Port port)
port - the portboolean requestMapping(IntentId keyIntentId, IntentId valIntentId)
keyIntentId - the key intent IDvalIntentId - the value intent IDSet<IntentId> getMapping(IntentId intentId)
intentId - the intent IDvoid releaseMapping(IntentId intentId)
intentId - intent IDvoid releasePorts(IntentId intentId)
intentId - intent IDCopyright © 2015. All rights reserved.