public interface RegionAdminService extends RegionService
| Modifier and Type | Method and Description | 
|---|---|
void | 
addDevices(RegionId regionId,
          Collection<DeviceId> deviceIds)
Adds the specified collection of devices to the region. 
 | 
Region | 
createRegion(RegionId regionId,
            String name,
            Region.Type type,
            List<Set<NodeId>> masterNodeIds)
Creates a new region using the supplied data. 
 | 
void | 
removeDevices(RegionId regionId,
             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,
            String name,
            Region.Type type,
            List<Set<NodeId>> masterNodeIds)
Update the specified region using the new set of data. 
 | 
getRegion, getRegionDevices, getRegionForDevice, getRegionHosts, getRegionsaddListener, removeListenerRegion createRegion(RegionId regionId, String name, Region.Type type, List<Set<NodeId>> masterNodeIds)
regionId - region identifiername - friendly nametype - region typemasterNodeIds - list of sets of master nodes; null implies empty listIllegalArgumentException - if region already existsRegion updateRegion(RegionId regionId, String name, Region.Type type, List<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, Collection<DeviceId> deviceIds)
regionId - region identifierdeviceIds - list of device identifiersvoid removeDevices(RegionId regionId, Collection<DeviceId> deviceIds)
regionId - region identifierdeviceIds - list of device identifiers