com.netflix.appinfo
Class AmazonInfo
java.lang.Object
com.netflix.appinfo.AmazonInfo
- All Implemented Interfaces:
- DataCenterInfo
public class AmazonInfo
- extends java.lang.Object
- implements 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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AmazonInfo
public AmazonInfo()
getName
public DataCenterInfo.Name getName()
- Specified by:
getName in interface DataCenterInfo
getMetadata
public java.util.Map<java.lang.String,java.lang.String> getMetadata()
- Get the metadata information specific to AWS.
- Returns:
- the map of AWS metadata as specified by
AmazonInfo.MetaDataKey.
setMetadata
public void setMetadata(java.util.Map<java.lang.String,java.lang.String> metadataMap)
- Set AWS metadata.
- Parameters:
metadataMap - the map containing AWS metadata.
get
public java.lang.String get(AmazonInfo.MetaDataKey key)
- Gets the AWS metadata specified in
AmazonInfo.MetaDataKey.
- Parameters:
key - the metadata key.
- Returns:
- String returning the value.