Uses of Class
com.datastax.driver.core.Host
-
Packages that use Host Package Description com.datastax.driver.core The main package for the Java Driver for Cassandra.com.datastax.driver.core.policies Policies that allow to control some of the behavior of the ScyllaDB Java driver. -
-
Uses of Host in com.datastax.driver.core
Methods in com.datastax.driver.core that return Host Modifier and Type Method Description protected HostPerHostPercentileTracker. computeKey(Host host, Statement statement, Exception exception)HostStatement. getHost()HostStatementWrapper. getHost()HostStatement. getLastHost()HostExecutionInfo. getQueriedHost()Return the Cassandra host that coordinated this query.Methods in com.datastax.driver.core that return types with arguments of type Host Modifier and Type Method Description Set<Host>Metadata. getAllHosts()Returns the known hosts of this cluster.Collection<Host>Session.State. getConnectedHosts()The hosts to which the session is currently connected (more precisely, at the time this State has been grabbed).Set<Host>Metadata. getReplicas(String keyspace, com.datastax.driver.core.Token.Factory partitioner, ByteBuffer partitionKey)Deprecated.Set<Host>Metadata. getReplicas(String keyspace, TokenRange range)Deprecated.Set<Host>Metadata. getReplicas(String keyspace, String table, com.datastax.driver.core.Token.Factory partitioner, ByteBuffer partitionKey)List<Host>TabletMap. getReplicas(String keyspace, String table, long token)Finds hosts that have replicas for a given table and token combination.List<Host>Metadata. getReplicasList(String keyspace, com.datastax.driver.core.Token.Factory partitioner, ByteBuffer partitionKey)Returns the immutable list of hosts that are replica for a given partition key.List<Host>Metadata. getReplicasList(String keyspace, TokenRange range)Returns the list of hosts that are replica for a given token range.List<Host>Metadata. getReplicasList(String keyspace, String table, com.datastax.driver.core.Token.Factory partitioner, ByteBuffer partitionKey)Extension of legacy methodMetadata.getReplicas(String, Token.Factory, ByteBuffer).com.codahale.metrics.Gauge<Map<Host,Integer>>Metrics. getShardAwarenessInfo()List<Host>ExecutionInfo. getTriedHosts()The list of tried hosts for this query.Methods in com.datastax.driver.core with parameters of type Host Modifier and Type Method Description protected ClusterClusterWidePercentileTracker. computeKey(Host host, Statement statement, Exception exception)protected abstract ObjectPercentileTracker. computeKey(Host host, Statement statement, Exception exception)Computes a key used to categorize measurements.protected HostPerHostPercentileTracker. computeKey(Host host, Statement statement, Exception exception)intSession.State. getInFlightQueries(Host host)The number of queries that are currently being executed through a given host.longPercentileTracker. getLatencyAtPercentile(Host host, Statement statement, Exception exception, double percentile)Returns the request latency at a given percentile.intSession.State. getOpenConnections(Host host)The number of open connections to a given host.intMetadata. getShardForTabletToken(String keyspace, String table, com.datastax.driver.core.Token.TokenLong64 token, Host host)Set<TokenRange>Metadata. getTokenRanges(String keyspace, Host host)Returns the token ranges that are replicated on the given host, for the given keyspace.intSession.State. getTrashedConnections(Host host)The number of "trashed" connections to a given host.static StringMetricsUtil. hostMetricName(String prefix, Host host)protected booleanPercentileTracker. include(Host host, Statement statement, Exception exception)Determines whether a particular measurement should be included.protected voidQueryLogger. maybeLogErrorQuery(Host host, Statement statement, Exception exception, long latencyMs)protected voidQueryLogger.ConstantThresholdQueryLogger. maybeLogNormalOrSlowQuery(Host host, Statement statement, long latencyMs)protected voidQueryLogger.DynamicThresholdQueryLogger. maybeLogNormalOrSlowQuery(Host host, Statement statement, long latencyMs)protected abstract voidQueryLogger. maybeLogNormalOrSlowQuery(Host host, Statement statement, long latencyMs)protected voidQueryLogger. maybeLogNormalQuery(Host host, Statement statement, long latencyMs)protected voidQueryLogger.ConstantThresholdQueryLogger. maybeLogSlowQuery(Host host, Statement statement, long latencyMs)protected voidQueryLogger.DynamicThresholdQueryLogger. maybeLogSlowQuery(Host host, Statement statement, long latencyMs, long threshold)voidHost.StateListener. onAdd(Host host)Called when a new node is added to the cluster.voidHost.StateListener. onDown(Host host)Called when a node is determined to be down.voidHost.StateListener. onRemove(Host host)Called when a node is removed from the cluster.voidHost.StateListener. onUp(Host host)Called when a node is determined to be up.voidPoolingOptions. refreshConnectedHost(Host host)Requests the driver to re-evaluate theHostDistancefor a given node.StatementStatement. setHost(Host host)Sets theHostthat should handle this query.StatementStatementWrapper. setHost(Host host)voidStatement. setLastHost(Host host)voidLatencyTracker. update(Host host, Statement statement, Exception exception, long newLatencyNanos)A method that is called after each request to a Cassandra node with the duration of that operation.voidPercentileTracker. update(Host host, Statement statement, Exception exception, long newLatencyNanos)voidQueryLogger. update(Host host, Statement statement, Exception exception, long newLatencyNanos)A method that is called after each request to a Cassandra node with the duration of that operation.Constructor parameters in com.datastax.driver.core with type arguments of type Host Constructor Description ExecutionInfo(int speculativeExecutions, int successfulExecutionIndex, List<Host> triedHosts, ConsistencyLevel achievedConsistency, Map<String,ByteBuffer> customPayload) -
Uses of Host in com.datastax.driver.core.policies
Methods in com.datastax.driver.core.policies that return types with arguments of type Host Modifier and Type Method Description Map<Host,LatencyAwarePolicy.Snapshot.Stats>LatencyAwarePolicy.Snapshot. getAllStats()A map with the stats for all hosts tracked by theLatencyAwarePolicyat the time of the snapshot.Iterator<Host>DCAwareRoundRobinPolicy. newQueryPlan(String loggedKeyspace, Statement statement)Returns the hosts to use for a new query.Iterator<Host>ErrorAwarePolicy. newQueryPlan(String loggedKeyspace, Statement statement)Iterator<Host>HostFilterPolicy. newQueryPlan(String loggedKeyspace, Statement statement)Returns the hosts to use for a new query.Iterator<Host>LatencyAwarePolicy. newQueryPlan(String loggedKeyspace, Statement statement)Returns the hosts to use for a new query.Iterator<Host>LoadBalancingPolicy. newQueryPlan(String loggedKeyspace, Statement statement)Returns the hosts to use for a new query.Iterator<Host>PagingOptimizingLoadBalancingPolicy. newQueryPlan(String loggedKeyspace, Statement statement)Iterator<Host>RackAwareRoundRobinPolicy. newQueryPlan(String loggedKeyspace, Statement statement)Returns the hosts to use for a new query.Iterator<Host>RoundRobinPolicy. newQueryPlan(String loggedKeyspace, Statement statement)Returns the hosts to use for a new query.Iterator<Host>TokenAwarePolicy. newQueryPlan(String loggedKeyspace, Statement statement)Returns the hosts to use for a new query.Methods in com.datastax.driver.core.policies with parameters of type Host Modifier and Type Method Description HostDistanceDCAwareRoundRobinPolicy. distance(Host host)Return the HostDistance for the provided host.HostDistanceErrorAwarePolicy. distance(Host host)HostDistanceHostFilterPolicy. distance(Host host)Returns the distance assigned by this policy to the provided host.HostDistanceLatencyAwarePolicy. distance(Host host)Returns the HostDistance for the provided host.HostDistanceLoadBalancingPolicy. distance(Host host)Returns the distance assigned by this policy to the provided host.HostDistancePagingOptimizingLoadBalancingPolicy. distance(Host host)HostDistanceRackAwareRoundRobinPolicy. distance(Host host)Return the HostDistance for the provided host.HostDistanceRoundRobinPolicy. distance(Host host)Return the HostDistance for the provided host.HostDistanceTokenAwarePolicy. distance(Host host)Returns the distance assigned by this policy to the provided host.LatencyAwarePolicy.Snapshot.StatsLatencyAwarePolicy.Snapshot. getStats(Host host)TheStatsobject for a given host.longSpeculativeExecutionPolicy.SpeculativeExecutionPlan. nextExecution(Host lastQueried)Returns the time before the next speculative query.voidDCAwareRoundRobinPolicy. onAdd(Host host)voidErrorAwarePolicy. onAdd(Host host)voidHostFilterPolicy. onAdd(Host host)voidLatencyAwarePolicy. onAdd(Host host)voidLoadBalancingPolicy. onAdd(Host host)Called when a new node is added to the cluster.voidPagingOptimizingLoadBalancingPolicy. onAdd(Host host)voidRackAwareRoundRobinPolicy. onAdd(Host host)voidRoundRobinPolicy. onAdd(Host host)voidTokenAwarePolicy. onAdd(Host host)voidDCAwareRoundRobinPolicy. onDown(Host host)voidErrorAwarePolicy. onDown(Host host)voidHostFilterPolicy. onDown(Host host)voidLatencyAwarePolicy. onDown(Host host)voidLoadBalancingPolicy. onDown(Host host)Called when a node is determined to be down.voidPagingOptimizingLoadBalancingPolicy. onDown(Host host)voidRackAwareRoundRobinPolicy. onDown(Host host)voidRoundRobinPolicy. onDown(Host host)voidTokenAwarePolicy. onDown(Host host)voidDCAwareRoundRobinPolicy. onRemove(Host host)voidErrorAwarePolicy. onRemove(Host host)voidHostFilterPolicy. onRemove(Host host)voidLatencyAwarePolicy. onRemove(Host host)voidLoadBalancingPolicy. onRemove(Host host)Called when a node is removed from the cluster.voidPagingOptimizingLoadBalancingPolicy. onRemove(Host host)voidRackAwareRoundRobinPolicy. onRemove(Host host)voidRoundRobinPolicy. onRemove(Host host)voidTokenAwarePolicy. onRemove(Host host)voidDCAwareRoundRobinPolicy. onUp(Host host)voidErrorAwarePolicy. onUp(Host host)voidHostFilterPolicy. onUp(Host host)voidLatencyAwarePolicy. onUp(Host host)voidLoadBalancingPolicy. onUp(Host host)Called when a node is determined to be up.voidPagingOptimizingLoadBalancingPolicy. onUp(Host host)voidRackAwareRoundRobinPolicy. onUp(Host host)voidRoundRobinPolicy. onUp(Host host)voidTokenAwarePolicy. onUp(Host host)booleanErrorAwarePolicy.ErrorFilter. shouldConsiderError(Exception e, Host host, Statement statement)Whether an error should be counted in the host's error rate.Method parameters in com.datastax.driver.core.policies with type arguments of type Host Modifier and Type Method Description voidDCAwareRoundRobinPolicy. init(Cluster cluster, Collection<Host> hosts)voidErrorAwarePolicy. init(Cluster cluster, Collection<Host> hosts)voidHostFilterPolicy. init(Cluster cluster, Collection<Host> hosts)Initialize this load balancing policy.voidLatencyAwarePolicy. init(Cluster cluster, Collection<Host> hosts)voidLoadBalancingPolicy. init(Cluster cluster, Collection<Host> hosts)Initialize this load balancing policy.voidPagingOptimizingLoadBalancingPolicy. init(Cluster cluster, Collection<Host> hosts)voidRackAwareRoundRobinPolicy. init(Cluster cluster, Collection<Host> hosts)voidRoundRobinPolicy. init(Cluster cluster, Collection<Host> hosts)voidTokenAwarePolicy. init(Cluster cluster, Collection<Host> hosts)Constructor parameters in com.datastax.driver.core.policies with type arguments of type Host Constructor Description HostFilterPolicy(LoadBalancingPolicy childPolicy, Predicate<Host> predicate)Create a new policy that wraps the provided child policy but only "allows" hosts matching the predicate.
-