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