com.hazelcast.client.spi.impl
Class AwsAddressTranslator

java.lang.Object
  extended by com.hazelcast.client.spi.impl.AwsAddressTranslator
All Implemented Interfaces:
AddressTranslator

public class AwsAddressTranslator
extends Object
implements AddressTranslator

AwsLookupTable loads ec2 ip addresses with given aws credentials. Keeps a lookup table of private to public ip addresses.


Constructor Summary
AwsAddressTranslator(ClientAwsConfig awsConfig)
           
 
Method Summary
 void refresh()
          Refreshes the internal lookup table if necessary.
 Address translate(Address address)
          Translates the given address to another address specific to network or service
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AwsAddressTranslator

public AwsAddressTranslator(ClientAwsConfig awsConfig)
Method Detail

translate

public Address translate(Address address)
Description copied from interface: AddressTranslator
Translates the given address to another address specific to network or service

Specified by:
translate in interface AddressTranslator
Parameters:
address -
Returns:
public address of network whose private address is given, if address not founds returns null.

refresh

public void refresh()
Description copied from interface: AddressTranslator
Refreshes the internal lookup table if necessary.

Specified by:
refresh in interface AddressTranslator


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.