Package org.onosproject.net.meter
Interface MeterEntry
- 
- All Superinterfaces:
- Annotated,- Meter,- PiTranslatable
 - All Known Implementing Classes:
- DefaultMeter
 
 public interface MeterEntry extends Meter Represents a stored meter.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.onosproject.net.meter.MeterMeter.Builder, Meter.Unit
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsetLife(long life)Set the amount of time the meter has existed in seconds.voidsetProcessedBytes(long bytes)Updates the number of bytes seen by the meter.voidsetProcessedPackets(long packets)Updates the number of packets seen by this meter.voidsetReferenceCount(long count)Sets the number of flows which are using this meter.voidsetState(MeterState state)Updates the state of this meter.- 
Methods inherited from interface org.onosproject.net.Annotatedannotations
 - 
Methods inherited from interface org.onosproject.net.meter.MeterappId, bands, bytesSeen, deviceId, id, isBurst, life, meterCellId, packetsSeen, referenceCount, state, unit
 
- 
 
- 
- 
- 
Method Detail- 
setStatevoid setState(MeterState state) Updates the state of this meter.- Parameters:
- state- a meter state
 
 - 
setLifevoid setLife(long life) Set the amount of time the meter has existed in seconds.- Parameters:
- life- number of seconds
 
 - 
setReferenceCountvoid setReferenceCount(long count) Sets the number of flows which are using this meter.- Parameters:
- count- a reference count.
 
 - 
setProcessedPacketsvoid setProcessedPackets(long packets) Updates the number of packets seen by this meter.- Parameters:
- packets- a packet count.
 
 - 
setProcessedBytesvoid setProcessedBytes(long bytes) Updates the number of bytes seen by the meter.- Parameters:
- bytes- a byte counter.
 
 
- 
 
-