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
|
@Deprecated
|
||||||
public long getCompletedTasks() {
|
public long getCompletedTasks() {
|
||||||
log(" getCompletedTasks()");
|
log(" getCompletedTasks()");
|
||||||
return metrics.completedTasks.value();
|
return c.getLongValue("");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -84,7 +84,7 @@ public class CommitLog implements CommitLogMBean {
|
|||||||
@Deprecated
|
@Deprecated
|
||||||
public long getPendingTasks() {
|
public long getPendingTasks() {
|
||||||
log(" getPendingTasks()");
|
log(" getPendingTasks()");
|
||||||
return metrics.pendingTasks.value();
|
return c.getLongValue("");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -95,7 +95,7 @@ public class CommitLog implements CommitLogMBean {
|
|||||||
@Deprecated
|
@Deprecated
|
||||||
public long getTotalCommitlogSize() {
|
public long getTotalCommitlogSize() {
|
||||||
log(" getTotalCommitlogSize()");
|
log(" getTotalCommitlogSize()");
|
||||||
return metrics.totalCommitLogSize.value();
|
return c.getLongValue("");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -117,7 +117,7 @@ public class CompactionManager implements CompactionManagerMBean {
|
|||||||
@Deprecated
|
@Deprecated
|
||||||
public int getPendingTasks() {
|
public int getPendingTasks() {
|
||||||
log(" getPendingTasks()");
|
log(" getPendingTasks()");
|
||||||
return metrics.pendingTasks.value();
|
return c.getIntValue("");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -127,7 +127,7 @@ public class CompactionManager implements CompactionManagerMBean {
|
|||||||
@Deprecated
|
@Deprecated
|
||||||
public long getCompletedTasks() {
|
public long getCompletedTasks() {
|
||||||
log(" getCompletedTasks()");
|
log(" getCompletedTasks()");
|
||||||
return metrics.completedTasks.value();
|
return c.getLongValue("");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -147,7 +147,7 @@ public class CompactionManager implements CompactionManagerMBean {
|
|||||||
@Deprecated
|
@Deprecated
|
||||||
public long getTotalCompactionsCompleted() {
|
public long getTotalCompactionsCompleted() {
|
||||||
log(" getTotalCompactionsCompleted()");
|
log(" getTotalCompactionsCompleted()");
|
||||||
return metrics.totalCompactionsCompleted.count();
|
return c.getLongValue("");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user