public interface MeterService extends ListenerService<MeterEvent,MeterListener>
| Modifier and Type | Method and Description |
|---|---|
Collection<Meter> |
getAllMeters()
Fetches all the meters.
|
Meter |
getMeter(MeterId id)
Fetch the meter by the meter id.
|
Meter |
submit(MeterRequest meter)
Adds a meter to the system and performs it installation.
|
void |
withdraw(MeterRequest meter,
MeterId meterId)
Remove a meter from the system and the dataplane.
|
addListener, removeListenerMeter submit(MeterRequest meter)
meter - a metervoid withdraw(MeterRequest meter, MeterId meterId)
meter - a meter to removemeterId - the meter id of the meter to remove.Meter getMeter(MeterId id)
id - a meter idCollection<Meter> getAllMeters()
Copyright © 2015. All rights reserved.