public interface DeviceResourceStore
| Modifier and Type | Method and Description |
|---|---|
boolean |
allocateMapping(IntentId keyIntentId,
IntentId valIntentId)
Allocates the mapping between the given intents.
|
boolean |
allocatePorts(Set<Port> ports,
IntentId intentId)
Allocates the given ports to the given intent.
|
Set<Port> |
getAllocations(IntentId intentId)
Returns set of ports allocated for an intent.
|
IntentId |
getAllocations(Port port)
Returns intent allocated to a port.
|
Set<Port> |
getFreePorts(DeviceId deviceId)
Returns unallocated ports on the given device.
|
Set<IntentId> |
getMapping(IntentId intentId)
Returns the set of intents mapped to a lower intent.
|
void |
releaseMapping(IntentId intentId)
Releases the mapping of the given intent.
|
boolean |
releasePorts(IntentId intentId)
Releases the ports allocated to the given intent.
|
Set<Port> getFreePorts(DeviceId deviceId)
deviceId - device IDboolean allocatePorts(Set<Port> ports, IntentId intentId)
ports - set of ports to allocateintentId - intent IDSet<Port> getAllocations(IntentId intentId)
intentId - the intent IDIntentId getAllocations(Port port)
port - the portboolean allocateMapping(IntentId keyIntentId, IntentId valIntentId)
keyIntentId - key intent IDvalIntentId - value intent IDSet<IntentId> getMapping(IntentId intentId)
intentId - intent IDvoid releaseMapping(IntentId intentId)
intentId - intent IDboolean releasePorts(IntentId intentId)
intentId - intent IDCopyright © 2015. All rights reserved.