|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Host | |
---|---|
com.datastax.driver.core | The main package for the DataStax Java driver for Cassandra. |
com.datastax.driver.core.policies | Policies that allow to control some of the behavior of the DataStax Java driver for Cassandra. |
Uses of Host in com.datastax.driver.core |
---|
Methods in com.datastax.driver.core that return Host | |
---|---|
Host |
ExecutionInfo.getQueriedHost()
Return the Cassandra host that coordinated this query. |
Methods in com.datastax.driver.core that return types with arguments of type Host | |
---|---|
Set<Host> |
Metadata.getAllHosts()
Returns the known hosts of this cluster. |
Set<Host> |
Metadata.getReplicas(ByteBuffer partitionKey)
Returns the set of hosts that are replica for a given partition key. |
List<Host> |
ExecutionInfo.getTriedHosts()
The list of tried hosts for this query. |
Methods in com.datastax.driver.core with parameters of type Host | |
---|---|
void |
Host.StateListener.onAdd(Host host)
Called when a new node is added to the cluster. |
void |
Host.StateListener.onDown(Host host)
Called when a node is determined to be down. |
void |
Host.StateListener.onRemove(Host host)
Called when a node is removed from the cluster. |
void |
Host.StateListener.onUp(Host host)
Called when a node is determined to be up. |
void |
LatencyTracker.update(Host host,
long newLatencyNanos)
A method that is called after each request to a Cassandra node with the duration of that operation. |
Uses of Host in com.datastax.driver.core.policies |
---|
Methods in com.datastax.driver.core.policies that return types with arguments of type Host | |
---|---|
Iterator<Host> |
TokenAwarePolicy.newQueryPlan(Query query)
Returns the hosts to use for a new query. |
Iterator<Host> |
RoundRobinPolicy.newQueryPlan(Query query)
Returns the hosts to use for a new query. |
Iterator<Host> |
LoadBalancingPolicy.newQueryPlan(Query query)
Returns the hosts to use for a new query. |
Iterator<Host> |
LatencyAwarePolicy.newQueryPlan(Query query)
Returns the hosts to use for a new query. |
Iterator<Host> |
DCAwareRoundRobinPolicy.newQueryPlan(Query query)
Returns the hosts to use for a new query. |
Methods in com.datastax.driver.core.policies with parameters of type Host | |
---|---|
HostDistance |
TokenAwarePolicy.distance(Host host)
Return the HostDistance for the provided host. |
HostDistance |
RoundRobinPolicy.distance(Host host)
Return the HostDistance for the provided host. |
HostDistance |
LoadBalancingPolicy.distance(Host host)
Returns the distance assigned by this policy to the provided host. |
HostDistance |
LatencyAwarePolicy.distance(Host host)
Return the HostDistance for the provided host. |
HostDistance |
DCAwareRoundRobinPolicy.distance(Host host)
Return the HostDistance for the provided host. |
void |
TokenAwarePolicy.onAdd(Host host)
|
void |
RoundRobinPolicy.onAdd(Host host)
|
void |
LatencyAwarePolicy.onAdd(Host host)
|
void |
DCAwareRoundRobinPolicy.onAdd(Host host)
|
void |
TokenAwarePolicy.onDown(Host host)
|
void |
RoundRobinPolicy.onDown(Host host)
|
void |
LatencyAwarePolicy.onDown(Host host)
|
void |
DCAwareRoundRobinPolicy.onDown(Host host)
|
void |
TokenAwarePolicy.onRemove(Host host)
|
void |
RoundRobinPolicy.onRemove(Host host)
|
void |
LatencyAwarePolicy.onRemove(Host host)
|
void |
DCAwareRoundRobinPolicy.onRemove(Host host)
|
void |
TokenAwarePolicy.onUp(Host host)
|
void |
RoundRobinPolicy.onUp(Host host)
|
void |
LatencyAwarePolicy.onUp(Host host)
|
void |
DCAwareRoundRobinPolicy.onUp(Host host)
|
Method parameters in com.datastax.driver.core.policies with type arguments of type Host | |
---|---|
void |
TokenAwarePolicy.init(Cluster cluster,
Collection<Host> hosts)
|
void |
RoundRobinPolicy.init(Cluster cluster,
Collection<Host> hosts)
|
void |
LoadBalancingPolicy.init(Cluster cluster,
Collection<Host> hosts)
Initialize this load balancing policy. |
void |
LatencyAwarePolicy.init(Cluster cluster,
Collection<Host> hosts)
|
void |
DCAwareRoundRobinPolicy.init(Cluster cluster,
Collection<Host> hosts)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |