Package org.onosproject.net.meter
Class DefaultBand
- java.lang.Object
- 
- org.onosproject.net.meter.DefaultBand
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classDefaultBand.Builder
 - 
Field Summary- 
Fields inherited from interface org.onosproject.net.meter.BandERR_MSG, MAX_PRECEDENCE, MIN_PRECEDENCE
 
- 
 - 
Constructor SummaryConstructors Constructor Description DefaultBand(Band.Type type, long rate, Long burstSize, Short prec)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DefaultBand.Builderbuilder()Longburst()The burst size at which the meter applies.longbytes()Return the bytes seen by this band.ShortdropPrecedence()Only meaningful in the case of a REMARK band type.longpackets()Returns the packets seen by this band.longrate()The rate at which this meter applies.voidsetBytes(long bytes)Sets the number of bytes seen by this band.voidsetPackets(long packets)Sets the number of packets seen by this band.StringtoString()Band.Typetype()Signals the type of band to create.
 
- 
- 
- 
Method Detail- 
ratepublic long rate() Description copied from interface:BandThe rate at which this meter applies.
 - 
burstpublic Long burst() Description copied from interface:BandThe burst size at which the meter applies.
 - 
dropPrecedencepublic Short dropPrecedence() Description copied from interface:BandOnly meaningful in the case of a REMARK band type. indicates by which amount the drop precedence of the packet should be increase if the band is exceeded.- Specified by:
- dropPrecedencein interface- Band
- Returns:
- a short value
 
 - 
typepublic Band.Type type() Description copied from interface:BandSignals the type of band to create.
 - 
packetspublic long packets() Description copied from interface:BandReturns the packets seen by this band.
 - 
bytespublic long bytes() Description copied from interface:BandReturn the bytes seen by this band.
 - 
setPacketspublic void setPackets(long packets) Description copied from interface:BandEntrySets the number of packets seen by this band.- Specified by:
- setPacketsin interface- BandEntry
- Parameters:
- packets- a packet count
 
 - 
setBytespublic void setBytes(long bytes) Description copied from interface:BandEntrySets the number of bytes seen by this band.
 - 
builderpublic static DefaultBand.Builder builder() 
 
- 
 
-