public interface RegionService extends ListenerService<RegionEvent,RegionListener>
Modifier and Type | Method and Description |
---|---|
Region |
getRegion(RegionId regionId)
Returns the region with the specified identifier.
|
Set<DeviceId> |
getRegionDevices(RegionId regionId)
Returns the set of devices that belong to the specified region.
|
Region |
getRegionForDevice(DeviceId deviceId)
Returns the region to which the specified device belongs.
|
Set<HostId> |
getRegionHosts(RegionId regionId)
Returns the set of hosts that belong to the specified region.
|
Set<Region> |
getRegions()
Returns set of all regions.
|
addListener, removeListener
Region getRegion(RegionId regionId)
regionId
- region identifierItemNotFoundException
- if region with given
id does not existRegion getRegionForDevice(DeviceId deviceId)
deviceId
- device identifierSet<DeviceId> getRegionDevices(RegionId regionId)
regionId
- region identifier