Interface CassandraServer
-
@Immutable(lazyhash=true) public interface CassandraServer
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static com.palantir.atlasdb.keyvalue.cassandra.pool.ImmutableCassandraServer.Builder
builder()
String
cassandraHostName()
default void
check()
static CassandraServer
of(String hostName, InetSocketAddress addr)
static CassandraServer
of(String hostName, Set<InetSocketAddress> reachableProxies)
static CassandraServer
of(InetSocketAddress addr)
default InetSocketAddress
proxy()
The only proxy that will be used to reach the Cassandra host.Set<InetSocketAddress>
reachableProxyIps()
cassandraHostName()
withreachableProxyIps()
form one reachable Cassandra server.
-
-
-
Method Detail
-
cassandraHostName
@Parameter String cassandraHostName()
-
reachableProxyIps
@Parameter Set<InetSocketAddress> reachableProxyIps()
cassandraHostName()
withreachableProxyIps()
form one reachable Cassandra server. We maintain set of all IPs but do not create a client pool for each one of these.
-
proxy
@Lazy @Redacted default InetSocketAddress proxy()
The only proxy that will be used to reach the Cassandra host.
-
check
@Check default void check()
-
of
static CassandraServer of(InetSocketAddress addr)
-
of
static CassandraServer of(String hostName, InetSocketAddress addr)
-
of
static CassandraServer of(String hostName, Set<InetSocketAddress> reachableProxies)
-
builder
static com.palantir.atlasdb.keyvalue.cassandra.pool.ImmutableCassandraServer.Builder builder()
-
-