Class DeviceInjectionConfig

    • Constructor Detail

      • DeviceInjectionConfig

        public DeviceInjectionConfig()
        Create a DeviceInjectionConfig.

        Note: created instance needs to be initialized by #init(..) before using.

      • DeviceInjectionConfig

        public DeviceInjectionConfig​(DeviceId did)
        Create a DeviceInjectionConfig for specified Device.

        Note: created instance is not bound to NetworkConfigService, cannot use Config.apply(). Must be passed to the service using NetworkConfigService#applyConfig

        did - DeviceId
    • 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
      • ports

        public String ports()