public interface CassandraClientMonitorMBean
| Modifier and Type | Method and Description |
|---|---|
boolean |
addCassandraHost(String hostStr)
Add a host in the format of "[hostname]:[port]"
|
Set<String> |
getExhaustedPoolNames()
List of exhausted pools.
|
List<String> |
getKnownHosts() |
int |
getNumActive()
Total number of active clients in all client pools
|
int |
getNumBlockedThreads()
Number of threads that are currently blocked, waiting for a free connection.
|
long |
getNumConnectionErrors()
How many times did initial connection failed.
|
int |
getNumExhaustedPools()
Number of exhausted connection pools
|
int |
getNumIdleConnections()
Total number of idle clients in all client pools
|
long |
getNumPoolExhaustedEventCount() |
int |
getNumPools()
Number of existing connection pools.
|
int |
getNumRenewedIdleConnections()
Total number of connections created due to previous idle connections.
|
int |
getNumRenewedTooLongConnections()
Total number of connections created due to previous too long connections.
|
long |
getReadFail() |
long |
getRecoverableErrorCount()
Returns the total number of recoverable errors which is the sum of getRecoverableTimedOutCount,
getRecoverableTimedOutCount and getRecoverableTransportExceptionCount
|
long |
getRecoverableLoadBalancedConnectErrors() |
long |
getRecoverableTimedOutCount() |
long |
getRecoverableTransportExceptionCount() |
long |
getRecoverableUnavailableCount() |
long |
getSkipHostSuccess() |
List<String> |
getStatisticsPerPool()
Retrieves stats per pool.
|
Set<String> |
getSuspendedCassandraHosts() |
long |
getWriteFail() |
boolean |
removeCassandraHost(String hostStr)
Remove a host in the format of "[hostname]:[port]"
|
boolean |
setCassandraHostRetryDelay(String retryDelay) |
boolean |
suspendCassandraHost(String hostStr) |
boolean |
unsuspendCassandraHost(String hostStr) |
void |
updateKnownHosts()
Tells all pulls to update their list of known hosts.
|
long getWriteFail()
long getReadFail()
long getRecoverableTimedOutCount()
TimedOutException that the client has been able to recover from by
failing over to a different host in the ring.long getRecoverableUnavailableCount()
UnavailableException that the client has been able to recover from by
failing over to a different host in the ring.long getRecoverableTransportExceptionCount()
TTransportException that the client has been able to recover from by
failing over to a different host in the ring.long getRecoverableErrorCount()
long getSkipHostSuccess()
long getNumPoolExhaustedEventCount()
int getNumPools()
int getNumIdleConnections()
int getNumActive()
int getNumExhaustedPools()
long getRecoverableLoadBalancedConnectErrors()
int getNumBlockedThreads()
long getNumConnectionErrors()
void updateKnownHosts()
throws HectorTransportException
HectorTransportExceptionboolean addCassandraHost(String hostStr)
hostStr - boolean removeCassandraHost(String hostStr)
hostStr - CassandraHost#equals(Object)} for how hosts are comparedboolean suspendCassandraHost(String hostStr)
hostStr - #removeCassandraHost(String)} above for semantics of the host string.,
HConnectionManager#removeCassandraHost(CassandraHost)} for details of this operation.boolean unsuspendCassandraHost(String hostStr)
hostStr - #suspendCassandraHost(String)} above. This is the opposite.boolean setCassandraHostRetryDelay(String retryDelay)
int getNumRenewedIdleConnections()
int getNumRenewedTooLongConnections()
Copyright © 2014. All Rights Reserved.