Class BandwidthCapacity


  • @Beta
    public class BandwidthCapacity
    extends Config<ConnectPoint>
    Configuration to specify maximum available bandwidth resource (Capacity) on a port.
    • Constructor Detail

      • BandwidthCapacity

        public BandwidthCapacity()
    • Method Detail

      • isValid

        public boolean isValid()
        Description copied from class: Config
        Indicates 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:
        isValid in class Config<ConnectPoint>
        Returns:
        true if the data is valid; false otherwise
      • capacity

        public BandwidthCapacity capacity​(Bandwidth bandwidth)
        Sets the Available Bandwidth resource (Capacity).
        Parameters:
        bandwidth - value to set.
        Returns:
        self
      • capacity

        public Bandwidth capacity()
        Available Bandwidth resource (Capacity).
        Returns:
        Bandwidth