Package org.onosproject.net.meter
Class DefaultMeterFeatures.Builder
- java.lang.Object
- 
- org.onosproject.net.meter.DefaultMeterFeatures.Builder
 
- 
- All Implemented Interfaces:
- MeterFeatures.Builder
 - Enclosing class:
- DefaultMeterFeatures
 
 public static final class DefaultMeterFeatures.Builder extends Object implements MeterFeatures.Builder A DefaultMeterFeatures builder.
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description MeterFeaturesbuild()Builds the Meter Features based on the specified parameters.MeterFeatures.BuilderforDevice(DeviceId deviceId)Assigns the target device for this meter features.MeterFeatures.BuilderhasBurst(boolean hasBurst)Assigns the burst capabilities.MeterFeatures.BuilderhasStats(boolean hasStats)Assigns the stats capabilities.MeterFeatures.BuilderwithBandTypes(Set<Band.Type> types)Assigns the band types for this meter features.MeterFeatures.BuilderwithEndIndex(long endIndex)Assigns the end index (inclusive) for this meter features.MeterFeatures.BuilderwithFeatures(Set<MeterFeaturesFlag> featureFlags)Assigns the features for this meter features for OF1.5.MeterFeatures.BuilderwithMaxBands(short maxBands)Assigns the max bands value for this meter features.MeterFeatures.BuilderwithMaxColors(short maxColors)Assigns the max colors value for this meter features.MeterFeatures.BuilderwithMaxMeters(long maxMeter)Assigns the max meters value for this meter features.MeterFeatures.BuilderwithScope(MeterScope scope)Assigns the meter scope.MeterFeatures.BuilderwithStartIndex(long startIndex)Assigns the start index (inclusive) for this meter features.MeterFeatures.BuilderwithUnits(Set<Meter.Unit> units)Assigns the capabilities for this meter features.
 
- 
- 
- 
Method Detail- 
forDevicepublic MeterFeatures.Builder forDevice(DeviceId deviceId) Description copied from interface:MeterFeatures.BuilderAssigns the target device for this meter features.- Specified by:
- forDevicein interface- MeterFeatures.Builder
- Parameters:
- deviceId- a device id
- Returns:
- this builder
 
 - 
withMaxMeterspublic MeterFeatures.Builder withMaxMeters(long maxMeter) Description copied from interface:MeterFeatures.BuilderAssigns the max meters value for this meter features.- Specified by:
- withMaxMetersin interface- MeterFeatures.Builder
- Parameters:
- maxMeter- the maximum meters available
- Returns:
- this builder
 
 - 
withStartIndexpublic MeterFeatures.Builder withStartIndex(long startIndex) Description copied from interface:MeterFeatures.BuilderAssigns the start index (inclusive) for this meter features.- Specified by:
- withStartIndexin interface- MeterFeatures.Builder
- Parameters:
- startIndex- the start index
- Returns:
- this builder
 
 - 
withEndIndexpublic MeterFeatures.Builder withEndIndex(long endIndex) Description copied from interface:MeterFeatures.BuilderAssigns the end index (inclusive) for this meter features.- Specified by:
- withEndIndexin interface- MeterFeatures.Builder
- Parameters:
- endIndex- the end index
- Returns:
- this builder
 
 - 
withMaxBandspublic MeterFeatures.Builder withMaxBands(short maxBands) Description copied from interface:MeterFeatures.BuilderAssigns the max bands value for this meter features.- Specified by:
- withMaxBandsin interface- MeterFeatures.Builder
- Parameters:
- maxBands- the maximum bands available.
- Returns:
- this builder
 
 - 
withMaxColorspublic MeterFeatures.Builder withMaxColors(short maxColors) Description copied from interface:MeterFeatures.BuilderAssigns the max colors value for this meter features.- Specified by:
- withMaxColorsin interface- MeterFeatures.Builder
- Parameters:
- maxColors- the maximum colors available.
- Returns:
- this builder
 
 - 
withBandTypespublic MeterFeatures.Builder withBandTypes(Set<Band.Type> types) Description copied from interface:MeterFeatures.BuilderAssigns the band types for this meter features.- Specified by:
- withBandTypesin interface- MeterFeatures.Builder
- Parameters:
- types- the band types available.
- Returns:
- this builder
 
 - 
withUnitspublic MeterFeatures.Builder withUnits(Set<Meter.Unit> units) Description copied from interface:MeterFeatures.BuilderAssigns the capabilities for this meter features.- Specified by:
- withUnitsin interface- MeterFeatures.Builder
- Parameters:
- units- the units available
- Returns:
- this
 
 - 
hasBurstpublic MeterFeatures.Builder hasBurst(boolean hasBurst) Description copied from interface:MeterFeatures.BuilderAssigns the burst capabilities.- Specified by:
- hasBurstin interface- MeterFeatures.Builder
- Parameters:
- hasBurst- if the burst is supported
- Returns:
- this builder
 
 - 
hasStatspublic MeterFeatures.Builder hasStats(boolean hasStats) Description copied from interface:MeterFeatures.BuilderAssigns the stats capabilities.- Specified by:
- hasStatsin interface- MeterFeatures.Builder
- Parameters:
- hasStats- if the statistics are supported
- Returns:
- this builder
 
 - 
withFeaturespublic MeterFeatures.Builder withFeatures(Set<MeterFeaturesFlag> featureFlags) Description copied from interface:MeterFeatures.BuilderAssigns the features for this meter features for OF1.5.- Specified by:
- withFeaturesin interface- MeterFeatures.Builder
- Parameters:
- featureFlags- if meter features flags are supported
- Returns:
- this builder
 
 - 
withScopepublic MeterFeatures.Builder withScope(MeterScope scope) Description copied from interface:MeterFeatures.BuilderAssigns the meter scope.- Specified by:
- withScopein interface- MeterFeatures.Builder
- Parameters:
- scope- the scope
- Returns:
- this builder
 
 - 
buildpublic MeterFeatures build() Description copied from interface:MeterFeatures.BuilderBuilds the Meter Features based on the specified parameters.- Specified by:
- buildin interface- MeterFeatures.Builder
- Returns:
- the meter features
 
 
- 
 
-