com.netflix.appinfo
Class AmazonInfo

java.lang.Object
  extended by 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.


Nested Class Summary
static class AmazonInfo.Builder
           
static class AmazonInfo.MetaDataKey
           
 
Nested classes/interfaces inherited from interface com.netflix.appinfo.DataCenterInfo
DataCenterInfo.Name
 
Constructor Summary
AmazonInfo()
           
 
Method Summary
 java.lang.String get(AmazonInfo.MetaDataKey key)
          Gets the AWS metadata specified in AmazonInfo.MetaDataKey.
 java.util.Map<java.lang.String,java.lang.String> getMetadata()
          Get the metadata information specific to AWS.
 DataCenterInfo.Name getName()
           
 void setMetadata(java.util.Map<java.lang.String,java.lang.String> metadataMap)
          Set AWS metadata.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AmazonInfo

public AmazonInfo()
Method Detail

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.