|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CassandraClientMonitorMBean
Defines the various JMX methods the CassandraClientMonitor exposes.
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 |
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 |
suspendCassandraHost(String hostStr)
|
boolean |
unsuspendCassandraHost(String hostStr)
|
void |
updateKnownHosts()
Tells all pulls to update their list of known hosts. |
Method Detail |
---|
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()
Set<String> getExhaustedPoolNames()
int getNumBlockedThreads()
ExhaustedPolicy
is
ExhaustedPolicy.WHEN_EXHAUSTED_BLOCK
long getNumConnectionErrors()
List<String> getKnownHosts()
void updateKnownHosts() throws HectorTransportException
HectorTransportException
List<String> getStatisticsPerPool()
boolean addCassandraHost(String hostStr)
hostStr
-
boolean removeCassandraHost(String hostStr)
hostStr
-
CassandraHost#equals(Object)} for how hosts are compared
boolean 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.
Set<String> getSuspendedCassandraHosts()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |