Class BandwidthCapacity
- java.lang.Object
- 
- org.onosproject.net.config.Config<ConnectPoint>
- 
- org.onosproject.net.config.basics.BandwidthCapacity
 
 
- 
 @Beta public class BandwidthCapacity extends Config<ConnectPoint> Configuration to specify maximum available bandwidth resource (Capacity) on a port.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.onosproject.net.config.ConfigConfig.FieldPresence
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static java.lang.StringCONFIG_KEYnetcfg ConfigKey forBandwidthCapacity.
 - 
Constructor SummaryConstructors Constructor Description BandwidthCapacity()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Bandwidthcapacity()Available Bandwidth resource (Capacity).BandwidthCapacitycapacity(Bandwidth bandwidth)Sets the Available Bandwidth resource (Capacity).booleanisValid()Indicates whether or not the backing JSON node contains valid data.java.lang.StringtoString()- 
Methods inherited from class org.onosproject.net.config.Configapply, clear, get, get, get, get, get, get, getList, getList, hasField, hasField, hasFields, hasFields, hasOnlyFields, hasOnlyFields, init, isBoolean, isBoolean, isConnectPoint, isConnectPoint, isDecimal, isDecimal, isIntegralNumber, isIntegralNumber, isIpAddress, isIpAddress, isIpPrefix, isIpPrefix, isMacAddress, isMacAddress, isNumber, isNumber, isString, isString, isTpPort, isTpPort, isValidLength, key, node, setList, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, subject
 
- 
 
- 
- 
- 
Field Detail- 
CONFIG_KEYpublic static final java.lang.String CONFIG_KEY netcfg ConfigKey forBandwidthCapacity.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
isValidpublic boolean isValid() Description copied from class:ConfigIndicates whether or not the backing JSON node contains valid data.Default implementation returns true. Subclasses are expected to override this with their own validation. Implementations are free to throw a RuntimeException if data is invalid. - Overrides:
- isValidin class- Config<ConnectPoint>
- Returns:
- true if the data is valid; false otherwise
 
 - 
capacitypublic BandwidthCapacity capacity(Bandwidth bandwidth) Sets the Available Bandwidth resource (Capacity).- Parameters:
- bandwidth- value to set.
- Returns:
- self
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- Config<ConnectPoint>
 
 
- 
 
-