Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Additional Jmx Getters so that we can better understand stats sample …
…sizes.
  • Loading branch information
jayjwylie committed Oct 9, 2012
1 parent 133b9c7 commit b4c3bff
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/java/voldemort/store/stats/ClientSocketStatsJmx.java
Expand Up @@ -128,11 +128,21 @@ public int getConnAvailable() {
return result;
}

@JmxGetter(name = "monitoringInterval", description = "The number of checkouts over which performance statistics are calculated.")
@JmxGetter(name = "monitoringInterval", description = "The maximum number of checkouts plus resource requests over which performance statistics are calculated.")
public int getMonitoringInterval() {
return stats.getMonitoringInterval();
}

@JmxGetter(name = "monitoringCheckoutSampleSize", description = "The number of checkout samples currently included in (pertinent) aggregate measures.")
public int getMonitoringCheckoutSampleSize() {
return stats.getCheckoutCount();
}

@JmxGetter(name = "monitoringResourceRequestSampleSize", description = "The number of resource request samples currently included in (pertinent) aggregate measures.")
public int getMonitoringResourceRequestSampleSize() {
return stats.resourceRequestCount();
}

@JmxSetter(name = "monitoringInterval", description = "The number of checkouts over which performance statistics are calculated.")
public void setMonitoringInterval(int count) {
if(count <= 0)
Expand Down

0 comments on commit b4c3bff

Please sign in to comment.