@Service public class DefaultVirtualMeterProvider extends AbstractVirtualProvider implements VirtualMeterProvider
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.net.meter.MeterService |
meterService |
protected VirtualProviderRegistryService |
providerRegistryService |
| Constructor and Description |
|---|
DefaultVirtualMeterProvider()
Creates a provider with the identifier.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
deactivate() |
void |
performMeterOperation(NetworkId networkId,
org.onosproject.net.DeviceId deviceId,
org.onosproject.net.meter.MeterOperation meterOp)
Performs a meter operation on the specified vitual device with the
specified parameters.
|
void |
performMeterOperation(NetworkId networkId,
org.onosproject.net.DeviceId deviceId,
org.onosproject.net.meter.MeterOperations meterOps)
Performs a batch of meter operation on the specified virtual device
with the specified parameters.
|
idclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitid@Reference(cardinality=MANDATORY_UNARY) protected VirtualProviderRegistryService providerRegistryService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.meter.MeterService meterService
public DefaultVirtualMeterProvider()
@Activate public void activate()
@Deactivate public void deactivate()
public void performMeterOperation(NetworkId networkId, org.onosproject.net.DeviceId deviceId, org.onosproject.net.meter.MeterOperations meterOps)
VirtualMeterProviderperformMeterOperation in interface VirtualMeterProvidernetworkId - the identity of the virtual network where this rule appliesdeviceId - device identifier on which the batch of group
operations to be executedmeterOps - immutable list of meter operationpublic void performMeterOperation(NetworkId networkId, org.onosproject.net.DeviceId deviceId, org.onosproject.net.meter.MeterOperation meterOp)
VirtualMeterProviderperformMeterOperation in interface VirtualMeterProvidernetworkId - the identity of the virtual network where this rule appliesdeviceId - device identifier on which the batch of group
operations to be executedmeterOp - a meter operation