Class PortDescriptionsConfig

  • @Beta
    public class PortDescriptionsConfig
    extends Config<DeviceId>
    Configuration for Ports. Creates a list of PortDescription based on the given Json.
    • Constructor Detail

      • PortDescriptionsConfig

        public PortDescriptionsConfig()
    • 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.

        isValid in class Config<DeviceId>
        true if the data is valid; false otherwise
      • portDescriptions

        public java.util.List<PortDescription> portDescriptions()
        Retrieves all port descriptions.
        set of port descriptions