Class AmazonInfo
java.lang.Object
io.micronaut.discovery.eureka.client.v2.AmazonInfo
- All Implemented Interfaces:
DataCenterInfo
An AWS specific
DataCenterInfo
implementation.
Gets AWS specific information for registration with eureka by making a HTTP call to an AWS service as recommended by AWS.
- Author:
- Karthik Ranganathan, Greg Kim
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builder class.static enum
MetaData key.Nested classes/interfaces inherited from interface io.micronaut.discovery.eureka.client.v2.DataCenterInfo
DataCenterInfo.Name
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the AWS metadata specified inAmazonInfo.MetaDataKey
.getId()
Get the metadata information specific to AWS.getName()
int
hashCode()
void
setMetadata
(Map<String, String> metadataMap) Set AWS metadata.toString()
-
Constructor Details
-
AmazonInfo
public AmazonInfo()Default constructor.
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceDataCenterInfo
- Returns:
- The name. It always returns "Amazon"
-
getMetadata
Get the metadata information specific to AWS.- Returns:
- the map of AWS metadata as specified by
AmazonInfo.MetaDataKey
.
-
setMetadata
Set AWS metadata.- Parameters:
metadataMap
- the map containing AWS metadata.
-
get
Gets the AWS metadata specified inAmazonInfo.MetaDataKey
.- Parameters:
key
- the metadata key.- Returns:
- String returning the value.
-
getId
- Returns:
- The instance id
-
equals
-
hashCode
public int hashCode() -
toString
-