public final class DefaultMeterFeatures extends Object implements MeterFeatures
Modifier and Type | Class and Description |
---|---|
static class |
DefaultMeterFeatures.Builder
A DefaultMeterFeatures builder.
|
Modifier and Type | Method and Description |
---|---|
Set<Band.Type> |
bandTypes()
Returns band types supported.
|
static DefaultMeterFeatures.Builder |
builder() |
DeviceId |
deviceId()
Return the device id to which this meter features apply.
|
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) |
String |
toString() |
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 Set<Band.Type> bandTypes()
MeterFeatures
bandTypes
in interface MeterFeatures
public 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 Set<MeterFeaturesFlag> features()
MeterFeatures
features
in interface MeterFeatures
public static DefaultMeterFeatures.Builder builder()
public static MeterFeatures noMeterFeatures(DeviceId deviceId)