public final class BasicHostConfig extends BasicElementConfig<HostId>
Config.FieldPresenceLATITUDE, LONGITUDE, NAME, OWNER, RACK_ADDRESS, ZERO_THRESHOLDALLOWED| Constructor and Description |
|---|
BasicHostConfig() |
| Modifier and Type | Method and Description |
|---|---|
Set<org.onlab.packet.IpAddress> |
ipAddresses()
Returns IP addresses of the host.
|
boolean |
isValid()
Indicates whether or not the backing JSON node contains valid data.
|
ConnectPoint |
location()
Returns location of the host.
|
BasicHostConfig |
setIps(Set<org.onlab.packet.IpAddress> ipAddresses)
Sets the IP addresses of the host.
|
BasicHostConfig |
setLocation(String location)
Sets the location of the host.
|
geoCoordsSet, latitude, latitude, longitude, longitude, name, name, owner, owner, rackAddress, rackAddressisAllowed, isAllowedapply, clear, get, get, get, get, get, get, getList, getList, 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, key, node, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, subjectpublic boolean isValid()
ConfigDefault 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 ConnectPoint location()
IllegalArgumentException - if not specified with correct formatpublic BasicHostConfig setLocation(String location)
location - location of the host or null to unsetpublic Set<org.onlab.packet.IpAddress> ipAddresses()
IllegalArgumentException - if not specified with correct formatpublic BasicHostConfig setIps(Set<org.onlab.packet.IpAddress> ipAddresses)
ipAddresses - IP addresses of the host or null to unset