public class RoutersConfig extends Config<ApplicationId>
Modifier and Type | Class and Description |
---|---|
static class |
RoutersConfig.Router
Router configuration.
|
Config.FieldPresence
Constructor and Description |
---|
RoutersConfig() |
Modifier and Type | Method and Description |
---|---|
java.util.Set<RoutersConfig.Router> |
getRouters()
Gets the router configurations.
|
boolean |
isValid()
Indicates whether or not the backing JSON node contains valid data.
|
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, toString
public java.util.Set<RoutersConfig.Router> getRouters()
public 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.
isValid
in class Config<ApplicationId>