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.Meter
Meter.Builder, Meter.Unit
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
setLife(long life)
Set the amount of time the meter has existed in seconds.void
setProcessedBytes(long bytes)
Updates the number of bytes seen by the meter.void
setProcessedPackets(long packets)
Updates the number of packets seen by this meter.void
setReferenceCount(long count)
Sets the number of flows which are using this meter.void
setState(MeterState state)
Updates the state of this meter.-
Methods inherited from interface org.onosproject.net.Annotated
annotations
-
Methods inherited from interface org.onosproject.net.meter.Meter
appId, bands, bytesSeen, deviceId, id, isBurst, life, meterCellId, packetsSeen, referenceCount, state, unit
-
-
-
-
Method Detail
-
setState
void setState(MeterState state)
Updates the state of this meter.- Parameters:
state
- a meter state
-
setLife
void setLife(long life)
Set the amount of time the meter has existed in seconds.- Parameters:
life
- number of seconds
-
setReferenceCount
void setReferenceCount(long count)
Sets the number of flows which are using this meter.- Parameters:
count
- a reference count.
-
setProcessedPackets
void setProcessedPackets(long packets)
Updates the number of packets seen by this meter.- Parameters:
packets
- a packet count.
-
setProcessedBytes
void setProcessedBytes(long bytes)
Updates the number of bytes seen by the meter.- Parameters:
bytes
- a byte counter.
-
-