Skip to content

Commit

Permalink
added back some attribs to CassandraClientMonitor
Browse files Browse the repository at this point in the history
  • Loading branch information
zznate committed Nov 15, 2010
1 parent d1a699d commit e8ddfc1
Showing 1 changed file with 5 additions and 20 deletions.
Expand Up @@ -89,12 +89,7 @@ public long getWriteFail() {

public void updateKnownHosts() throws HectorTransportException {
log.info("Updating all known cassandra hosts on all clients");
/*
TODO is this a noop given retry service?
for (ConcurrentHClientPool pool: pools) {
pool.updateKnownHosts();
}
*/

}


Expand All @@ -105,7 +100,7 @@ public long getNumPoolExhaustedEventCount() {

public Set<String> getExhaustedPoolNames() {
Set<String> ret = new HashSet<String>();
// TODO connectionManager...

return ret;
}

Expand Down Expand Up @@ -139,9 +134,7 @@ public int getNumIdleConnections() {


public int getNumPools() {
int ret = 0;
// TODO connectionManager....
return ret;
return connectionManager.getHosts().size();
}


Expand All @@ -153,9 +146,7 @@ public Set<String> getPoolNames() {


public Set<CassandraHost> getKnownHosts() {
Set<CassandraHost> ret = new HashSet<CassandraHost>();
// TODO connectionManager...
return ret;
return connectionManager.getHosts();
}


Expand All @@ -167,13 +158,7 @@ public long getRecoverableTransportExceptionCount() {
public long getRecoverableErrorCount() {
return getRecoverableTimedOutCount() + getRecoverableTransportExceptionCount() +
getRecoverableUnavailableCount() + getRecoverableLoadBalancedConnectErrors();
}

/*
public void addPool(CassandraClientPool pool) {
// TODO no longer germain?
}
*/
}


public long getRecoverableLoadBalancedConnectErrors() {
Expand Down

0 comments on commit e8ddfc1

Please sign in to comment.