public class AmazonInfo extends Object implements DataCenterInfo
DataCenterInfo
implementation.
Gets AWS specific information for registration with eureka by making a HTTP call to an AWS service as recommended by AWS.
Modifier and Type | Class and Description |
---|---|
static class |
AmazonInfo.Builder
Builder class.
|
static class |
AmazonInfo.MetaDataKey
MetaData key.
|
DataCenterInfo.Name
Constructor and Description |
---|
AmazonInfo()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
get(AmazonInfo.MetaDataKey key)
Gets the AWS metadata specified in
AmazonInfo.MetaDataKey . |
String |
getId() |
Map<String,String> |
getMetadata()
Get the metadata information specific to AWS.
|
DataCenterInfo.Name |
getName() |
int |
hashCode() |
void |
setMetadata(Map<String,String> metadataMap)
Set AWS metadata.
|
String |
toString() |
public DataCenterInfo.Name getName()
getName
in interface DataCenterInfo
public Map<String,String> getMetadata()
AmazonInfo.MetaDataKey
.public void setMetadata(Map<String,String> metadataMap)
metadataMap
- the map containing AWS metadata.public String get(AmazonInfo.MetaDataKey key)
AmazonInfo.MetaDataKey
.key
- the metadata key.public String getId()