public interface Region extends Transportable<Region,UUID>
Modifier and Type | Method and Description |
---|---|
boolean |
addDevice(IpAddress toAdd)
Attempts to add a new network element IP address to the existing
Set . |
boolean |
addRange(IpRange toAdd)
Attempts to add a new network element IP address range to the existing
Set . |
List<IpAddress> |
getControllers()
Retrieves the prioritized list of controllers IP addresses for this
region.
|
Set<IpAddress> |
getDevices()
Retrieves the IP addresses of network elements for this region that were
explicitly configured.
|
String |
getName()
Retrieves the name of this region.
|
Set<IpRange> |
getRanges()
Retrieves the IP address ranges of network elements for this region that
were explicitly configured.
|
boolean |
removeDevice(IpAddress toRemove)
Attempts to remove a network element IP address from the existing
Set of explicitly configured addresses. |
boolean |
removeRange(IpRange toRemove)
Attempts to remove a network element IP address range from the existing
Set of explicitly configured ranges. |
getId
boolean addDevice(IpAddress toAdd)
Set
. Addresses that already exist in the Set
cannot be added.toAdd
- IpAddress
to addtrue
if the address was added, false
otherwiseboolean addRange(IpRange toAdd)
Set
. Ranges that already exist as exact matches in the Set
cannot be added.toAdd
- IpRange
to addtrue
if the address was added, false
otherwiseList<IpAddress> getControllers()
List
of controller IP addressesSet<IpAddress> getDevices()
Set
of network element IP addressesString getName()
Set<IpRange> getRanges()
Set
of network element IP address rangesboolean removeDevice(IpAddress toRemove)
Set
of explicitly configured addresses. If a nonexistent address is
specified no Exception
is thrown but a false
value will
be returned to indicate that no change was made.toRemove
- IpAddress
to removetrue
if the address was removed, false
otherwiseboolean removeRange(IpRange toRemove)
Set
of explicitly configured ranges. If a nonexistent range is
specified no Exception
is thrown but a false
value will
be returned to indicate that no change was made.toRemove
- IpRange
to removetrue
if the range was removed, false
otherwiseCopyright © 2015. All Rights Reserved.