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

        Parameters:
        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.

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

        public String ports()