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 of
RegionMetadataProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRegionByEndpoint
(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
-
Constructor Details
-
AbstractRegionMetadataProvider
public AbstractRegionMetadataProvider()
-
-
Method Details
-
getRegionByEndpoint
Description copied from interface:RegionMetadataProvider
Searches 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:
getRegionByEndpoint
in 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.
-