Class Ec2HostLocationSupplier
- java.lang.Object
-
- com.palantir.atlasdb.keyvalue.cassandra.pool.Ec2HostLocationSupplier
-
- All Implemented Interfaces:
Supplier<HostLocation>
public final class Ec2HostLocationSupplier extends Object implements Supplier<HostLocation>
Returns the client's datacenter and rack derived from Cassandra's Ec2Snitch.AWS has an endpoint that returns the datacenter and rack (in Cassandra terms) - this request will fail if not on AWS. The reply comes in the form "datacenter"+"rack", e.g. "us-east-1a", where datacenter is "us-east-1" and rack is "a".
-
-
Constructor Summary
Constructors Constructor Description Ec2HostLocationSupplier()
-
-
-
Method Detail
-
get
public HostLocation get()
- Specified by:
get
in interfaceSupplier<HostLocation>
-
-