public interface RegionAdminService extends RegionService
Modifier and Type | Method and Description |
---|---|
void |
addDevices(RegionId regionId,
java.util.Collection<DeviceId> deviceIds)
Adds the specified collection of devices to the region.
|
Region |
createRegion(RegionId regionId,
java.lang.String name,
Region.Type type,
java.util.List<java.util.Set<NodeId>> masterNodeIds)
Creates a new region using the supplied data.
|
void |
removeDevices(RegionId regionId,
java.util.Collection<DeviceId> deviceIds)
Removes the specified collection of devices from the region.
|
void |
removeRegion(RegionId regionId)
Removes the specified region using the new set of data.
|
Region |
updateRegion(RegionId regionId,
java.lang.String name,
Region.Type type,
java.util.List<java.util.Set<NodeId>> masterNodeIds)
Update the specified region using the new set of data.
|
getRegion, getRegionDevices, getRegionForDevice, getRegionHosts, getRegions
addListener, removeListener
Region createRegion(RegionId regionId, java.lang.String name, Region.Type type, java.util.List<java.util.Set<NodeId>> masterNodeIds)
regionId
- region identifiername
- friendly nametype
- region typemasterNodeIds
- list of sets of master nodes; null implies empty listjava.lang.IllegalArgumentException
- if region already existsRegion updateRegion(RegionId regionId, java.lang.String name, Region.Type type, java.util.List<java.util.Set<NodeId>> masterNodeIds)
regionId
- region identifiername
- friendly nametype
- region typemasterNodeIds
- list of sets of master nodes; null implies empty listvoid removeRegion(RegionId regionId)
regionId
- region identifiervoid addDevices(RegionId regionId, java.util.Collection<DeviceId> deviceIds)
regionId
- region identifierdeviceIds
- list of device identifiers