Package com.datastax.driver.core
Class Metrics.Errors
- java.lang.Object
-
- com.datastax.driver.core.Metrics.Errors
-
-
Constructor Summary
Constructors Constructor Description Errors()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.codahale.metrics.CountergetAuthenticationErrors()Returns the number of authentication errors while connecting to Cassandra nodes.com.codahale.metrics.CountergetClientTimeouts()Returns the number of requests that timed out before the driver received a response.com.codahale.metrics.CountergetConnectionErrors()Returns the number of errors while connecting to Cassandra nodes.com.codahale.metrics.CountergetIgnores()Returns the number of times a request was ignored due to theRetryPolicy, for example due to timeouts or unavailability.com.codahale.metrics.CountergetIgnoresOnClientTimeout()Returns the number of times a request was ignored due to theRetryPolicy, after a client timeout.com.codahale.metrics.CountergetIgnoresOnConnectionError()Returns the number of times a request was ignored due to theRetryPolicy, after a connection error.com.codahale.metrics.CountergetIgnoresOnOtherErrors()Returns the number of times a request was ignored due to theRetryPolicy, after an unexpected error.com.codahale.metrics.CountergetIgnoresOnReadTimeout()Returns the number of times a request was ignored due to theRetryPolicy, after a read timed out.com.codahale.metrics.CountergetIgnoresOnUnavailable()Returns the number of times a request was ignored due to theRetryPolicy, after an unavailable exception.com.codahale.metrics.CountergetIgnoresOnWriteTimeout()Returns the number of times a request was ignored due to theRetryPolicy, after a write timed out.com.codahale.metrics.CountergetOthers()Returns the number of requests that returned errors not accounted for by another metric.com.codahale.metrics.CountergetReadTimeouts()Returns the number of read requests that returned a timeout (independently of the final decision taken by theRetryPolicy).com.codahale.metrics.CountergetRetries()Returns the number of times a request was retried due to theRetryPolicy.com.codahale.metrics.CountergetRetriesOnClientTimeout()Returns the number of times a request was retried due to theRetryPolicy, after a client timeout.com.codahale.metrics.CountergetRetriesOnConnectionError()Returns the number of times a request was retried due to theRetryPolicy, after a connection error.com.codahale.metrics.CountergetRetriesOnOtherErrors()Returns the number of times a request was retried due to theRetryPolicy, after an unexpected error.com.codahale.metrics.CountergetRetriesOnReadTimeout()Returns the number of times a request was retried due to theRetryPolicy, after a read timed out.com.codahale.metrics.CountergetRetriesOnUnavailable()Returns the number of times a request was retried due to theRetryPolicy, after an unavailable exception.com.codahale.metrics.CountergetRetriesOnWriteTimeout()Returns the number of times a request was retried due to theRetryPolicy, after a write timed out.com.codahale.metrics.CountergetSpeculativeExecutions()Returns the number of times a speculative execution was started because a previous execution did not complete within the delay specified bySpeculativeExecutionPolicy.com.codahale.metrics.CountergetUnavailables()Returns the number of requests that returned an unavailable exception (independently of the final decision taken by theRetryPolicy).com.codahale.metrics.CountergetWriteTimeouts()Returns the number of write requests that returned a timeout (independently of the final decision taken by theRetryPolicy).
-
-
-
Method Detail
-
getConnectionErrors
public com.codahale.metrics.Counter getConnectionErrors()
Returns the number of errors while connecting to Cassandra nodes.This represents the number of times that a request to a Cassandra node has failed due to a connection problem. This thus also corresponds to how often the driver had to pick a fallback host for a request.
You can expect a few connection errors when a Cassandra node fails (or is stopped) ,but if that number grows continuously you likely have a problem.
- Returns:
- the number of errors while connecting to Cassandra nodes.
-
getAuthenticationErrors
public com.codahale.metrics.Counter getAuthenticationErrors()
Returns the number of authentication errors while connecting to Cassandra nodes.- Returns:
- the number of errors.
-
getWriteTimeouts
public com.codahale.metrics.Counter getWriteTimeouts()
Returns the number of write requests that returned a timeout (independently of the final decision taken by theRetryPolicy).- Returns:
- the number of write timeout.
-
getReadTimeouts
public com.codahale.metrics.Counter getReadTimeouts()
Returns the number of read requests that returned a timeout (independently of the final decision taken by theRetryPolicy).- Returns:
- the number of read timeout.
-
getUnavailables
public com.codahale.metrics.Counter getUnavailables()
Returns the number of requests that returned an unavailable exception (independently of the final decision taken by theRetryPolicy).- Returns:
- the number of unavailable exceptions.
-
getClientTimeouts
public com.codahale.metrics.Counter getClientTimeouts()
Returns the number of requests that timed out before the driver received a response.- Returns:
- the number of client timeouts.
-
getOthers
public com.codahale.metrics.Counter getOthers()
Returns the number of requests that returned errors not accounted for by another metric. This includes all types of invalid requests.- Returns:
- the number of requests errors not accounted by another metric.
-
getRetries
public com.codahale.metrics.Counter getRetries()
Returns the number of times a request was retried due to theRetryPolicy.- Returns:
- the number of times a request was retried due to the
RetryPolicy.
-
getRetriesOnReadTimeout
public com.codahale.metrics.Counter getRetriesOnReadTimeout()
Returns the number of times a request was retried due to theRetryPolicy, after a read timed out.- Returns:
- the number of times a request was retried due to the
RetryPolicy, after a read timed out.
-
getRetriesOnWriteTimeout
public com.codahale.metrics.Counter getRetriesOnWriteTimeout()
Returns the number of times a request was retried due to theRetryPolicy, after a write timed out.- Returns:
- the number of times a request was retried due to the
RetryPolicy, after a write timed out.
-
getRetriesOnUnavailable
public com.codahale.metrics.Counter getRetriesOnUnavailable()
Returns the number of times a request was retried due to theRetryPolicy, after an unavailable exception.- Returns:
- the number of times a request was retried due to the
RetryPolicy, after an unavailable exception.
-
getRetriesOnClientTimeout
public com.codahale.metrics.Counter getRetriesOnClientTimeout()
Returns the number of times a request was retried due to theRetryPolicy, after a client timeout.- Returns:
- the number of times a request was retried due to the
RetryPolicy, after a client timeout.
-
getRetriesOnConnectionError
public com.codahale.metrics.Counter getRetriesOnConnectionError()
Returns the number of times a request was retried due to theRetryPolicy, after a connection error.- Returns:
- the number of times a request was retried due to the
RetryPolicy, after a connection error.
-
getRetriesOnOtherErrors
public com.codahale.metrics.Counter getRetriesOnOtherErrors()
Returns the number of times a request was retried due to theRetryPolicy, after an unexpected error.- Returns:
- the number of times a request was retried due to the
RetryPolicy, after an unexpected error.
-
getIgnores
public com.codahale.metrics.Counter getIgnores()
Returns the number of times a request was ignored due to theRetryPolicy, for example due to timeouts or unavailability.- Returns:
- the number of times a request was ignored due to the
RetryPolicy.
-
getIgnoresOnReadTimeout
public com.codahale.metrics.Counter getIgnoresOnReadTimeout()
Returns the number of times a request was ignored due to theRetryPolicy, after a read timed out.- Returns:
- the number of times a request was ignored due to the
RetryPolicy, after a read timed out.
-
getIgnoresOnWriteTimeout
public com.codahale.metrics.Counter getIgnoresOnWriteTimeout()
Returns the number of times a request was ignored due to theRetryPolicy, after a write timed out.- Returns:
- the number of times a request was ignored due to the
RetryPolicy, after a write timed out.
-
getIgnoresOnUnavailable
public com.codahale.metrics.Counter getIgnoresOnUnavailable()
Returns the number of times a request was ignored due to theRetryPolicy, after an unavailable exception.- Returns:
- the number of times a request was ignored due to the
RetryPolicy, after an unavailable exception.
-
getIgnoresOnClientTimeout
public com.codahale.metrics.Counter getIgnoresOnClientTimeout()
Returns the number of times a request was ignored due to theRetryPolicy, after a client timeout.- Returns:
- the number of times a request was ignored due to the
RetryPolicy, after a client timeout.
-
getIgnoresOnConnectionError
public com.codahale.metrics.Counter getIgnoresOnConnectionError()
Returns the number of times a request was ignored due to theRetryPolicy, after a connection error.- Returns:
- the number of times a request was ignored due to the
RetryPolicy, after a connection error.
-
getIgnoresOnOtherErrors
public com.codahale.metrics.Counter getIgnoresOnOtherErrors()
Returns the number of times a request was ignored due to theRetryPolicy, after an unexpected error.- Returns:
- the number of times a request was ignored due to the
RetryPolicy, after an unexpected error.
-
getSpeculativeExecutions
public com.codahale.metrics.Counter getSpeculativeExecutions()
Returns the number of times a speculative execution was started because a previous execution did not complete within the delay specified bySpeculativeExecutionPolicy.- Returns:
- the number of speculative executions.
-
-