Package com.amazonaws.regions
Class AbstractRegionMetadataProvider
- java.lang.Object
-
- com.amazonaws.regions.AbstractRegionMetadataProvider
-
- All Implemented Interfaces:
RegionMetadataProvider
- Direct Known Subclasses:
InMemoryRegionsProvider,PartitionMetadataProvider
public abstract class AbstractRegionMetadataProvider extends Object implements RegionMetadataProvider
An abstract implementation ofRegionMetadataProvider
-
-
Constructor Summary
Constructors Constructor Description AbstractRegionMetadataProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RegiongetRegionByEndpoint(String endpoint)Searches through all known regions to find one with any service at the specified endpoint.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.amazonaws.regions.RegionMetadataProvider
getRegion, getRegions, getRegionsForService
-
-
-
-
Method Detail
-
getRegionByEndpoint
public Region getRegionByEndpoint(String endpoint)
Description copied from interface:RegionMetadataProviderSearches through all known regions to find one with any service at the specified endpoint. If no region is found with a service at that endpoint, an exception is thrown.- Specified by:
getRegionByEndpointin interfaceRegionMetadataProvider- Parameters:
endpoint- The endpoint for any service residing in the desired region.- Returns:
- The region containing any service running at the specified endpoint, otherwise an exception is thrown if no region is found with a service at the specified endpoint.
-
-