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.

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

        public List<PortDescription> portDescriptions()
        Retrieves all port descriptions.
        Returns:
        set of port descriptions