@Service public class SimpleVirtualMeterStore extends AbstractVirtualStore<org.onosproject.net.meter.MeterEvent,org.onosproject.net.meter.MeterStoreDelegate> implements org.onosproject.incubator.net.virtual.VirtualNetworkMeterStore
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.cluster.ClusterService |
clusterService |
delegateMap| Constructor and Description |
|---|
SimpleVirtualMeterStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
deactivate() |
CompletableFuture<org.onosproject.net.meter.MeterStoreResult> |
deleteMeter(org.onosproject.incubator.net.virtual.NetworkId networkId,
org.onosproject.net.meter.Meter meter) |
org.onosproject.net.meter.MeterStoreResult |
deleteMeterFeatures(org.onosproject.incubator.net.virtual.NetworkId networkId,
org.onosproject.net.DeviceId deviceId) |
void |
deleteMeterNow(org.onosproject.incubator.net.virtual.NetworkId networkId,
org.onosproject.net.meter.Meter m) |
void |
failedMeter(org.onosproject.incubator.net.virtual.NetworkId networkId,
org.onosproject.net.meter.MeterOperation op,
org.onosproject.net.meter.MeterFailReason reason) |
Collection<org.onosproject.net.meter.Meter> |
getAllMeters(org.onosproject.incubator.net.virtual.NetworkId networkId) |
long |
getMaxMeters(org.onosproject.incubator.net.virtual.NetworkId networkId,
org.onosproject.net.meter.MeterFeaturesKey key) |
org.onosproject.net.meter.Meter |
getMeter(org.onosproject.incubator.net.virtual.NetworkId networkId,
org.onosproject.net.meter.MeterKey key) |
CompletableFuture<org.onosproject.net.meter.MeterStoreResult> |
storeMeter(org.onosproject.incubator.net.virtual.NetworkId networkId,
org.onosproject.net.meter.Meter meter) |
org.onosproject.net.meter.MeterStoreResult |
storeMeterFeatures(org.onosproject.incubator.net.virtual.NetworkId networkId,
org.onosproject.net.meter.MeterFeatures meterfeatures) |
CompletableFuture<org.onosproject.net.meter.MeterStoreResult> |
updateMeter(org.onosproject.incubator.net.virtual.NetworkId networkId,
org.onosproject.net.meter.Meter meter) |
void |
updateMeterState(org.onosproject.incubator.net.virtual.NetworkId networkId,
org.onosproject.net.meter.Meter meter) |
hasDelegate, notifyDelegate, notifyDelegate, setDelegate, unsetDelegate@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.cluster.ClusterService clusterService
@Activate public void activate()
@Deactivate public void deactivate()
public CompletableFuture<org.onosproject.net.meter.MeterStoreResult> storeMeter(org.onosproject.incubator.net.virtual.NetworkId networkId, org.onosproject.net.meter.Meter meter)
storeMeter in interface org.onosproject.incubator.net.virtual.VirtualNetworkMeterStorepublic CompletableFuture<org.onosproject.net.meter.MeterStoreResult> deleteMeter(org.onosproject.incubator.net.virtual.NetworkId networkId, org.onosproject.net.meter.Meter meter)
deleteMeter in interface org.onosproject.incubator.net.virtual.VirtualNetworkMeterStorepublic org.onosproject.net.meter.MeterStoreResult storeMeterFeatures(org.onosproject.incubator.net.virtual.NetworkId networkId,
org.onosproject.net.meter.MeterFeatures meterfeatures)
storeMeterFeatures in interface org.onosproject.incubator.net.virtual.VirtualNetworkMeterStorepublic org.onosproject.net.meter.MeterStoreResult deleteMeterFeatures(org.onosproject.incubator.net.virtual.NetworkId networkId,
org.onosproject.net.DeviceId deviceId)
deleteMeterFeatures in interface org.onosproject.incubator.net.virtual.VirtualNetworkMeterStorepublic CompletableFuture<org.onosproject.net.meter.MeterStoreResult> updateMeter(org.onosproject.incubator.net.virtual.NetworkId networkId, org.onosproject.net.meter.Meter meter)
updateMeter in interface org.onosproject.incubator.net.virtual.VirtualNetworkMeterStorepublic void updateMeterState(org.onosproject.incubator.net.virtual.NetworkId networkId,
org.onosproject.net.meter.Meter meter)
updateMeterState in interface org.onosproject.incubator.net.virtual.VirtualNetworkMeterStorepublic org.onosproject.net.meter.Meter getMeter(org.onosproject.incubator.net.virtual.NetworkId networkId,
org.onosproject.net.meter.MeterKey key)
getMeter in interface org.onosproject.incubator.net.virtual.VirtualNetworkMeterStorepublic Collection<org.onosproject.net.meter.Meter> getAllMeters(org.onosproject.incubator.net.virtual.NetworkId networkId)
getAllMeters in interface org.onosproject.incubator.net.virtual.VirtualNetworkMeterStorepublic void failedMeter(org.onosproject.incubator.net.virtual.NetworkId networkId,
org.onosproject.net.meter.MeterOperation op,
org.onosproject.net.meter.MeterFailReason reason)
failedMeter in interface org.onosproject.incubator.net.virtual.VirtualNetworkMeterStorepublic void deleteMeterNow(org.onosproject.incubator.net.virtual.NetworkId networkId,
org.onosproject.net.meter.Meter m)
deleteMeterNow in interface org.onosproject.incubator.net.virtual.VirtualNetworkMeterStorepublic long getMaxMeters(org.onosproject.incubator.net.virtual.NetworkId networkId,
org.onosproject.net.meter.MeterFeaturesKey key)
getMaxMeters in interface org.onosproject.incubator.net.virtual.VirtualNetworkMeterStore