@Service public class ConsistentDeviceResourceStore extends Object implements org.onosproject.net.resource.device.DeviceResourceStore
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.net.device.DeviceService |
deviceService |
protected org.onosproject.store.service.StorageService |
storageService |
| Constructor and Description |
|---|
ConsistentDeviceResourceStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
boolean |
allocateMapping(org.onosproject.net.intent.IntentId keyIntentId,
org.onosproject.net.intent.IntentId valIntentId) |
boolean |
allocatePorts(Set<org.onosproject.net.Port> ports,
org.onosproject.net.intent.IntentId intentId) |
void |
deactivate() |
Set<org.onosproject.net.Port> |
getAllocations(org.onosproject.net.intent.IntentId intentId) |
org.onosproject.net.intent.IntentId |
getAllocations(org.onosproject.net.Port port) |
Set<org.onosproject.net.Port> |
getFreePorts(org.onosproject.net.DeviceId deviceId) |
Set<org.onosproject.net.intent.IntentId> |
getMapping(org.onosproject.net.intent.IntentId intentId) |
void |
releaseMapping(org.onosproject.net.intent.IntentId intentId) |
boolean |
releasePorts(org.onosproject.net.intent.IntentId intentId) |
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.store.service.StorageService storageService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.device.DeviceService deviceService
@Activate public void activate()
@Deactivate public void deactivate()
public Set<org.onosproject.net.Port> getFreePorts(org.onosproject.net.DeviceId deviceId)
getFreePorts in interface org.onosproject.net.resource.device.DeviceResourceStorepublic boolean allocatePorts(Set<org.onosproject.net.Port> ports, org.onosproject.net.intent.IntentId intentId)
allocatePorts in interface org.onosproject.net.resource.device.DeviceResourceStorepublic Set<org.onosproject.net.Port> getAllocations(org.onosproject.net.intent.IntentId intentId)
getAllocations in interface org.onosproject.net.resource.device.DeviceResourceStorepublic org.onosproject.net.intent.IntentId getAllocations(org.onosproject.net.Port port)
getAllocations in interface org.onosproject.net.resource.device.DeviceResourceStorepublic Set<org.onosproject.net.intent.IntentId> getMapping(org.onosproject.net.intent.IntentId intentId)
getMapping in interface org.onosproject.net.resource.device.DeviceResourceStorepublic boolean allocateMapping(org.onosproject.net.intent.IntentId keyIntentId,
org.onosproject.net.intent.IntentId valIntentId)
allocateMapping in interface org.onosproject.net.resource.device.DeviceResourceStorepublic void releaseMapping(org.onosproject.net.intent.IntentId intentId)
releaseMapping in interface org.onosproject.net.resource.device.DeviceResourceStorepublic boolean releasePorts(org.onosproject.net.intent.IntentId intentId)
releasePorts in interface org.onosproject.net.resource.device.DeviceResourceStoreCopyright © 2015. All rights reserved.