ColumnFamilyMetrics: Use schedule for the column family timer

The logic of that timer, should be that after some defined time from the
previous request a new one will be sent, the actuall rate is
meaningless and only cause delyed request to be sent in a higher
frequency after the delayed reponse was returned.

Signed-off-by: Amnon Heiman <amnon@cloudius-systems.com>
This commit is contained in:
Amnon Heiman 2015-10-04 12:49:51 +03:00
parent f16c49a860
commit 54fe3d7ccf

View File

@ -60,7 +60,7 @@ public class ColumnFamilyStore implements ColumnFamilyStoreMBean {
public static void register_mbeans() { public static void register_mbeans() {
TimerTask taskToExecute = new CheckRegistration(); TimerTask taskToExecute = new CheckRegistration();
timer.scheduleAtFixedRate(taskToExecute, 100, INTERVAL); timer.schedule(taskToExecute, 100, INTERVAL);
} }
public ColumnFamilyStore(String type, String keyspace, String name) { public ColumnFamilyStore(String type, String keyspace, String name) {