Class 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".