Package org.onosproject.net.meter
Interface Band
- 
- All Known Subinterfaces:
- BandEntry
 - All Known Implementing Classes:
- DefaultBand
 
 public interface BandRepresents a band used within a meter.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static interfaceBand.Builderstatic classBand.TypeSpecifies the type of band.
 - 
Field SummaryFields Modifier and Type Field Description static StringERR_MSGstatic shortMAX_PRECEDENCEstatic shortMIN_PRECEDENCE
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.Band.Typetype()Signals the type of band to create.
 
- 
- 
- 
Field Detail- 
MIN_PRECEDENCEstatic final short MIN_PRECEDENCE - See Also:
- Constant Field Values
 
 - 
MAX_PRECEDENCEstatic final short MAX_PRECEDENCE - See Also:
- Constant Field Values
 
 - 
ERR_MSGstatic final String ERR_MSG - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
ratelong rate() The rate at which this meter applies.- Returns:
- the long value of the rate
 
 - 
burstLong burst() The burst size at which the meter applies.- Returns:
- the long value of the size
 
 - 
dropPrecedenceShort dropPrecedence() Only 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.- Returns:
- a short value
 
 - 
typeBand.Type type() Signals the type of band to create.- Returns:
- a band type
 
 - 
packetslong packets() Returns the packets seen by this band.- Returns:
- a long value
 
 - 
byteslong bytes() Return the bytes seen by this band.- Returns:
- a byte counter
 
 
- 
 
-