public final class BasicHostConfig extends BasicElementConfig<HostId>
Config.FieldPresenceGRID_X, GRID_Y, LATITUDE, LOC_TYPE, LONGITUDE, NAME, OWNER, RACK_ADDRESS, UI_TYPE, ZERO_THRESHOLDALLOWED| Constructor and Description |
|---|
BasicHostConfig() |
| Modifier and Type | Method and Description |
|---|---|
Set<IpAddress> |
ipAddresses()
Returns IP addresses of the host.
|
boolean |
isValid()
Indicates whether or not the backing JSON node contains valid data.
|
ConnectPoint |
location()
Returns the location of the host.
|
BasicHostConfig |
setIps(Set<IpAddress> ipAddresses)
Sets the IP addresses of the host.
|
BasicHostConfig |
setLocation(String location)
Sets the location of the host.
|
geoCoordsSet, gridCoordsSet, gridX, gridX, gridY, gridY, latitude, latitude, locType, locType, longitude, longitude, name, name, owner, owner, rackAddress, rackAddress, uiType, uiTypeisAllowed, isAllowedapply, 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, key, node, setList, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, subject, toStringpublic 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<IpAddress> ipAddresses()
IllegalArgumentException - if not specified with correct formatpublic BasicHostConfig setIps(Set<IpAddress> ipAddresses)
ipAddresses - IP addresses of the host or null to unset