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 Summary
Nested Classes Modifier and Type Interface Description static interfaceBand.Builderstatic classBand.TypeSpecifies the type of band.
-
Field Summary
Fields Modifier and Type Field Description static StringERR_MSGstatic shortMAX_PRECEDENCEstatic shortMIN_PRECEDENCE
-
Method Summary
All 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_PRECEDENCE
static final short MIN_PRECEDENCE
- See Also:
- Constant Field Values
-
MAX_PRECEDENCE
static final short MAX_PRECEDENCE
- See Also:
- Constant Field Values
-
ERR_MSG
static final String ERR_MSG
- See Also:
- Constant Field Values
-
-
Method Detail
-
rate
long rate()
The rate at which this meter applies.- Returns:
- the long value of the rate
-
burst
Long burst()
The burst size at which the meter applies.- Returns:
- the long value of the size
-
dropPrecedence
Short 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
-
type
Band.Type type()
Signals the type of band to create.- Returns:
- a band type
-
packets
long packets()
Returns the packets seen by this band.- Returns:
- a long value
-
bytes
long bytes()
Return the bytes seen by this band.- Returns:
- a byte counter
-
-