Revert "Implement deprecated metrics in CommitLog and CompactionManager"

This reverts commit 9b63a35da6 in
preparation for Cassandra 3.x compatibility changes.
This commit is contained in:
Pekka Enberg 2016-11-09 11:03:31 +02:00
parent c08442b158
commit b61a5b8439
2 changed files with 6 additions and 6 deletions

View File

@ -73,7 +73,7 @@ public class CommitLog implements CommitLogMBean {
@Deprecated
public long getCompletedTasks() {
log(" getCompletedTasks()");
return metrics.completedTasks.value();
return c.getLongValue("");
}
/**
@ -84,7 +84,7 @@ public class CommitLog implements CommitLogMBean {
@Deprecated
public long getPendingTasks() {
log(" getPendingTasks()");
return metrics.pendingTasks.value();
return c.getLongValue("");
}
/**
@ -95,7 +95,7 @@ public class CommitLog implements CommitLogMBean {
@Deprecated
public long getTotalCommitlogSize() {
log(" getTotalCommitlogSize()");
return metrics.totalCommitLogSize.value();
return c.getLongValue("");
}
/**

View File

@ -117,7 +117,7 @@ public class CompactionManager implements CompactionManagerMBean {
@Deprecated
public int getPendingTasks() {
log(" getPendingTasks()");
return metrics.pendingTasks.value();
return c.getIntValue("");
}
/**
@ -127,7 +127,7 @@ public class CompactionManager implements CompactionManagerMBean {
@Deprecated
public long getCompletedTasks() {
log(" getCompletedTasks()");
return metrics.completedTasks.value();
return c.getLongValue("");
}
/**
@ -147,7 +147,7 @@ public class CompactionManager implements CompactionManagerMBean {
@Deprecated
public long getTotalCompactionsCompleted() {
log(" getTotalCompactionsCompleted()");
return metrics.totalCompactionsCompleted.count();
return c.getLongValue("");
}
/**