@Beta public class DeviceInjectionConfig extends BaseConfig<DeviceId>
Config.FieldPresence
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONFIG_KEY
Configuration key for
DeviceInjectionConfig . |
Constructor and Description |
---|
DeviceInjectionConfig()
Create a
DeviceInjectionConfig . |
DeviceInjectionConfig(DeviceId did)
Create a
DeviceInjectionConfig for specified Device. |
Modifier and Type | Method and Description |
---|---|
boolean |
isValid()
Indicates whether or not the backing JSON node contains valid data.
|
java.lang.String |
ports() |
java.lang.String |
toString() |
codec, decode, getService, mapper
apply, clear, get, get, get, get, get, get, getList, getList, hasField, hasField, hasFields, hasFields, hasOnlyFields, hasOnlyFields, init, isBoolean, isBoolean, isConnectPoint, isConnectPoint, isDecimal, isDecimal, isIntegralNumber, isIntegralNumber, isIpAddress, isIpAddress, isIpPrefix, isIpPrefix, isMacAddress, isMacAddress, isNumber, isNumber, isString, isString, isTpPort, isTpPort, isValidLength, key, node, setList, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, subject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
decode, encode
public static final java.lang.String CONFIG_KEY
DeviceInjectionConfig
.public DeviceInjectionConfig()
DeviceInjectionConfig
.
Note: created instance needs to be initialized by #init(..) before using.
public DeviceInjectionConfig(DeviceId did)
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
- DeviceIdpublic boolean isValid()
Config
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.
public java.lang.String ports()