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:
parent
c08442b158
commit
b61a5b8439
@ -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("");
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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("");
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user