Package org.onosproject.net.meter
Interface MeterProgrammable
-
- All Superinterfaces:
Behaviour
,HandlerBehaviour
@Beta public interface MeterProgrammable extends HandlerBehaviour
Meter programmable device behaviour.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletableFuture<Collection<MeterFeatures>>
getMeterFeatures()
Queries the meter features from the device.CompletableFuture<Collection<Meter>>
getMeters()
Queries the meters from the device.CompletableFuture<Boolean>
performMeterOperation(MeterOperation meterOp)
Performs a meter operation on this device.-
Methods inherited from interface org.onosproject.net.driver.HandlerBehaviour
handler, setHandler
-
-
-
-
Method Detail
-
performMeterOperation
CompletableFuture<Boolean> performMeterOperation(MeterOperation meterOp)
Performs a meter operation on this device.- Parameters:
meterOp
- operation to be performed- Returns:
- Completable future with result of the operation
-
getMeters
CompletableFuture<Collection<Meter>> getMeters()
Queries the meters from the device.- Returns:
- completable future with the collection of meters
-
getMeterFeatures
CompletableFuture<Collection<MeterFeatures>> getMeterFeatures()
Queries the meter features from the device.- Returns:
- completable future with the collection of meter features
-
-