public final class DefaultMeterFeatures extends java.lang.Object implements MeterFeatures
Modifier and Type | Class and Description |
---|---|
static class |
DefaultMeterFeatures.Builder
A DefaultMeterFeatures builder.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<Band.Type> |
bandTypes()
Returns band types supported.
|
static DefaultMeterFeatures.Builder |
builder() |
DeviceId |
deviceId()
Return the device id to which this meter features apply.
|
java.util.Set<MeterFeaturesFlag> |
features()
Returns features flags that supported for meter actions by device.
|
boolean |
isBurstSupported()
Returns if burst size is available.
|
boolean |
isStatsSupported()
Returns if statistics collection is available.
|
short |
maxBands()
Returns the maximum bands per meter.
|
short |
maxColor()
Returns the maximum colors value for DiffServ operation.
|
long |
maxMeter()
Returns the maximum number of meters accepted by the device.
|
static MeterFeatures |
noMeterFeatures(DeviceId deviceId) |
java.lang.String |
toString() |
java.util.Set<Meter.Unit> |
unitTypes()
Returns unit types available for meters.
|
public DeviceId deviceId()
MeterFeatures
deviceId
in interface MeterFeatures
public long maxMeter()
MeterFeatures
maxMeter
in interface MeterFeatures
public java.util.Set<Band.Type> bandTypes()
MeterFeatures
bandTypes
in interface MeterFeatures
public java.util.Set<Meter.Unit> unitTypes()
MeterFeatures
unitTypes
in interface MeterFeatures
public boolean isBurstSupported()
MeterFeatures
isBurstSupported
in interface MeterFeatures
public boolean isStatsSupported()
MeterFeatures
isStatsSupported
in interface MeterFeatures
public short maxBands()
MeterFeatures
maxBands
in interface MeterFeatures
public short maxColor()
MeterFeatures
maxColor
in interface MeterFeatures
public java.util.Set<MeterFeaturesFlag> features()
MeterFeatures
features
in interface MeterFeatures
public static DefaultMeterFeatures.Builder builder()
public static MeterFeatures noMeterFeatures(DeviceId deviceId)
public java.lang.String toString()
toString
in class java.lang.Object