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 java.util.concurrent.CompletableFuture<java.util.Collection<Meter>>
getMeters()
Queries the meters from the device.java.util.concurrent.CompletableFuture<java.lang.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
java.util.concurrent.CompletableFuture<java.lang.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
java.util.concurrent.CompletableFuture<java.util.Collection<Meter>> getMeters()
Queries the meters from the device.- Returns:
- completable future with the collection of meters
-
-