|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectme.prettyprint.cassandra.service.CassandraClientMonitor
public class CassandraClientMonitor
| Nested Class Summary | |
|---|---|
static class |
CassandraClientMonitor.Counter
List of available JMX counts |
| Constructor Summary | |
|---|---|
CassandraClientMonitor(HConnectionManager connectionManager)
|
|
| Method Summary | |
|---|---|
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. |
long |
getReadFail()
|
long |
getReadSuccess()
|
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()
|
long |
getWriteSuccess()
|
void |
incCounter(CassandraClientMonitor.Counter counterType)
|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CassandraClientMonitor(HConnectionManager connectionManager)
| Method Detail |
|---|
public void incCounter(CassandraClientMonitor.Counter counterType)
public long getWriteSuccess()
public long getReadFail()
getReadFail in interface CassandraClientMonitorMBeanpublic long getReadSuccess()
public long getSkipHostSuccess()
getSkipHostSuccess in interface CassandraClientMonitorMBeanpublic long getRecoverableTimedOutCount()
getRecoverableTimedOutCount in interface CassandraClientMonitorMBeanTimedOutException that the client has been able to recover from by
failing over to a different host in the ring.public long getRecoverableUnavailableCount()
getRecoverableUnavailableCount in interface CassandraClientMonitorMBeanUnavailableException that the client has been able to recover from by
failing over to a different host in the ring.public long getWriteFail()
getWriteFail in interface CassandraClientMonitorMBean
public void updateKnownHosts()
throws HectorTransportException
CassandraClientMonitorMBean
updateKnownHosts in interface CassandraClientMonitorMBeanHectorTransportExceptionpublic long getNumPoolExhaustedEventCount()
getNumPoolExhaustedEventCount in interface CassandraClientMonitorMBeanpublic Set<String> getExhaustedPoolNames()
CassandraClientMonitorMBean
getExhaustedPoolNames in interface CassandraClientMonitorMBeanpublic int getNumActive()
CassandraClientMonitorMBean
getNumActive in interface CassandraClientMonitorMBeanpublic int getNumBlockedThreads()
CassandraClientMonitorMBean
getNumBlockedThreads in interface CassandraClientMonitorMBeanpublic int getNumExhaustedPools()
CassandraClientMonitorMBean
getNumExhaustedPools in interface CassandraClientMonitorMBeanpublic int getNumIdleConnections()
CassandraClientMonitorMBean
getNumIdleConnections in interface CassandraClientMonitorMBeanpublic int getNumPools()
CassandraClientMonitorMBean
getNumPools in interface CassandraClientMonitorMBeanpublic List<String> getKnownHosts()
getKnownHosts in interface CassandraClientMonitorMBeanpublic List<String> getStatisticsPerPool()
CassandraClientMonitorMBean
getStatisticsPerPool in interface CassandraClientMonitorMBeanpublic long getRecoverableTransportExceptionCount()
getRecoverableTransportExceptionCount in interface CassandraClientMonitorMBeanTTransportException that the client has been able to recover from by
failing over to a different host in the ring.public long getRecoverableErrorCount()
CassandraClientMonitorMBean
getRecoverableErrorCount in interface CassandraClientMonitorMBeanpublic long getRecoverableLoadBalancedConnectErrors()
getRecoverableLoadBalancedConnectErrors in interface CassandraClientMonitorMBeanpublic long getNumConnectionErrors()
CassandraClientMonitorMBean
getNumConnectionErrors in interface CassandraClientMonitorMBeanpublic boolean addCassandraHost(String hostStr)
CassandraClientMonitorMBean
addCassandraHost in interface CassandraClientMonitorMBeanpublic boolean removeCassandraHost(String hostStr)
CassandraClientMonitorMBean
removeCassandraHost in interface CassandraClientMonitorMBeanCassandraHost#equals(Object)} for how hosts are comparedpublic Set<String> getSuspendedCassandraHosts()
getSuspendedCassandraHosts in interface CassandraClientMonitorMBeanpublic boolean suspendCassandraHost(String hostStr)
suspendCassandraHost in interface CassandraClientMonitorMBean#removeCassandraHost(String)} above for semantics of the host string.,
HConnectionManager#removeCassandraHost(CassandraHost)} for details of this operation.public boolean unsuspendCassandraHost(String hostStr)
unsuspendCassandraHost in interface CassandraClientMonitorMBean#suspendCassandraHost(String)} above. This is the opposite.public boolean setCassandraHostRetryDelay(String retryDelay)
setCassandraHostRetryDelay in interface CassandraClientMonitorMBean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||