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()
MeterFeaturesdeviceId in interface MeterFeaturespublic long maxMeter()
MeterFeaturesmaxMeter in interface MeterFeaturespublic java.util.Set<Band.Type> bandTypes()
MeterFeaturesbandTypes in interface MeterFeaturespublic java.util.Set<Meter.Unit> unitTypes()
MeterFeaturesunitTypes in interface MeterFeaturespublic boolean isBurstSupported()
MeterFeaturesisBurstSupported in interface MeterFeaturespublic boolean isStatsSupported()
MeterFeaturesisStatsSupported in interface MeterFeaturespublic short maxBands()
MeterFeaturesmaxBands in interface MeterFeaturespublic short maxColor()
MeterFeaturesmaxColor in interface MeterFeaturespublic java.util.Set<MeterFeaturesFlag> features()
MeterFeaturesfeatures in interface MeterFeaturespublic static DefaultMeterFeatures.Builder builder()
public static MeterFeatures noMeterFeatures(DeviceId deviceId)
public java.lang.String toString()
toString in class java.lang.Object