com.datastax.driver.core
Class Metrics.Errors

java.lang.Object
  extended by com.datastax.driver.core.Metrics.Errors
Enclosing class:
Metrics

public class Metrics.Errors
extends Object

Metrics on errors encountered.


Constructor Summary
Metrics.Errors()
           
 
Method Summary
 com.codahale.metrics.Counter getConnectionErrors()
          Returns the number of connection to Cassandra nodes errors.
 com.codahale.metrics.Counter getIgnores()
          Returns the number of times a request was ignored due to the RetryPolicy, for example due to timeouts or unavailability.
 com.codahale.metrics.Counter getOthers()
          Returns the number of requests that returned errors not accounted for by another metric.
 com.codahale.metrics.Counter getReadTimeouts()
          Returns the number of read requests that returned a timeout (independently of the final decision taken by the RetryPolicy).
 com.codahale.metrics.Counter getRetries()
          Returns the number of times a request was retried due to the RetryPolicy.
 com.codahale.metrics.Counter getUnavailables()
          Returns the number of requests that returned an unavailable exception (independently of the final decision taken by the RetryPolicy).
 com.codahale.metrics.Counter getWriteTimeouts()
          Returns the number of write requests that returned a timeout (independently of the final decision taken by the RetryPolicy).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Metrics.Errors

public Metrics.Errors()
Method Detail

getConnectionErrors

public com.codahale.metrics.Counter getConnectionErrors()
Returns the number of connection to Cassandra nodes errors.

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 connection to Cassandra nodes 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 the RetryPolicy).

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 the RetryPolicy).

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 the RetryPolicy).

Returns:
the number of unavailable exceptions.

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 the RetryPolicy.

Returns:
the number of times a requests was retried due to the RetryPolicy.

getIgnores

public com.codahale.metrics.Counter getIgnores()
Returns the number of times a request was ignored due to the RetryPolicy, for example due to timeouts or unavailability.

Returns:
the number of times a request was ignored due to the RetryPolicy.


Copyright © 2013. All rights reserved.