Package org.onosproject.net.meter
Class DefaultMeterFeatures
- java.lang.Object
- 
- org.onosproject.net.meter.DefaultMeterFeatures
 
- 
- All Implemented Interfaces:
- MeterFeatures
 
 public final class DefaultMeterFeatures extends Object implements MeterFeatures Default implementation of MeterFeatures.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classDefaultMeterFeatures.BuilderA DefaultMeterFeatures builder.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<Band.Type>bandTypes()Returns band types supported.static DefaultMeterFeatures.Builderbuilder()DeviceIddeviceId()Return the device id to which this meter features apply.longendIndex()Returns the end index (inclusive) of the meters.Set<MeterFeaturesFlag>features()Returns features flags that supported for meter actions by device.booleanisBurstSupported()Returns if burst size is available.booleanisStatsSupported()Returns if statistics collection is available.shortmaxBands()Returns the maximum bands per meter.shortmaxColor()Returns the maximum colors value for DiffServ operation.longmaxMeter()Returns the maximum number of meters accepted by the device.static MeterFeaturesnoMeterFeatures(DeviceId deviceId)MeterScopescope()Returns Meter Scope.longstartIndex()Returns the start index (inclusive) of the meters.StringtoString()Set<Meter.Unit>unitTypes()Returns unit types available for meters.
 
- 
- 
- 
Method Detail- 
deviceIdpublic DeviceId deviceId() Description copied from interface:MeterFeaturesReturn the device id to which this meter features apply.- Specified by:
- deviceIdin interface- MeterFeatures
- Returns:
- the device id
 
 - 
maxMeterpublic long maxMeter() Description copied from interface:MeterFeaturesReturns the maximum number of meters accepted by the device.- Specified by:
- maxMeterin interface- MeterFeatures
- Returns:
- the maximum meter value.
 
 - 
startIndexpublic long startIndex() Description copied from interface:MeterFeaturesReturns the start index (inclusive) of the meters.- Specified by:
- startIndexin interface- MeterFeatures
- Returns:
- the start index
 
 - 
endIndexpublic long endIndex() Description copied from interface:MeterFeaturesReturns the end index (inclusive) of the meters.- Specified by:
- endIndexin interface- MeterFeatures
- Returns:
- the end index
 
 - 
bandTypespublic Set<Band.Type> bandTypes() Description copied from interface:MeterFeaturesReturns band types supported.- Specified by:
- bandTypesin interface- MeterFeatures
- Returns:
- the band types supported.
 
 - 
unitTypespublic Set<Meter.Unit> unitTypes() Description copied from interface:MeterFeaturesReturns unit types available for meters.- Specified by:
- unitTypesin interface- MeterFeatures
- Returns:
- the unit types available.
 
 - 
isBurstSupportedpublic boolean isBurstSupported() Description copied from interface:MeterFeaturesReturns if burst size is available.- Specified by:
- isBurstSupportedin interface- MeterFeatures
- Returns:
- burst availability
 
 - 
isStatsSupportedpublic boolean isStatsSupported() Description copied from interface:MeterFeaturesReturns if statistics collection is available.- Specified by:
- isStatsSupportedin interface- MeterFeatures
- Returns:
- statistics availability
 
 - 
maxBandspublic short maxBands() Description copied from interface:MeterFeaturesReturns the maximum bands per meter.- Specified by:
- maxBandsin interface- MeterFeatures
- Returns:
- the max bands value
 
 - 
maxColorpublic short maxColor() Description copied from interface:MeterFeaturesReturns the maximum colors value for DiffServ operation.- Specified by:
- maxColorin interface- MeterFeatures
- Returns:
- the maximum colors value.
 
 - 
featurespublic Set<MeterFeaturesFlag> features() Description copied from interface:MeterFeaturesReturns features flags that supported for meter actions by device.- Specified by:
- featuresin interface- MeterFeatures
- Returns:
- meter features flags otherwise empty set.
 
 - 
scopepublic MeterScope scope() Description copied from interface:MeterFeaturesReturns Meter Scope.- Specified by:
- scopein interface- MeterFeatures
- Returns:
- meter scope
 
 - 
builderpublic static DefaultMeterFeatures.Builder builder() 
 - 
noMeterFeaturespublic static MeterFeatures noMeterFeatures(DeviceId deviceId) 
 
- 
 
-