Implement deprecated metrics in CommitLog and CompactionManager
Implement some deprecated metrics in CommitLog and CompactionManager, that can easily just be a wrapper to the non-deprecated metrics API. Message-Id: <1478591291-30344-1-git-send-email-penberg@scylladb.com>
This commit is contained in:
parent
954f40e550
commit
9b63a35da6
@ -73,7 +73,7 @@ public class CommitLog implements CommitLogMBean {
|
|||||||
@Deprecated
|
@Deprecated
|
||||||
public long getCompletedTasks() {
|
public long getCompletedTasks() {
|
||||||
log(" getCompletedTasks()");
|
log(" getCompletedTasks()");
|
||||||
return c.getLongValue("");
|
return metrics.completedTasks.value();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -84,7 +84,7 @@ public class CommitLog implements CommitLogMBean {
|
|||||||
@Deprecated
|
@Deprecated
|
||||||
public long getPendingTasks() {
|
public long getPendingTasks() {
|
||||||
log(" getPendingTasks()");
|
log(" getPendingTasks()");
|
||||||
return c.getLongValue("");
|
return metrics.pendingTasks.value();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -95,7 +95,7 @@ public class CommitLog implements CommitLogMBean {
|
|||||||
@Deprecated
|
@Deprecated
|
||||||
public long getTotalCommitlogSize() {
|
public long getTotalCommitlogSize() {
|
||||||
log(" getTotalCommitlogSize()");
|
log(" getTotalCommitlogSize()");
|
||||||
return c.getLongValue("");
|
return metrics.totalCommitLogSize.value();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -117,7 +117,7 @@ public class CompactionManager implements CompactionManagerMBean {
|
|||||||
@Deprecated
|
@Deprecated
|
||||||
public int getPendingTasks() {
|
public int getPendingTasks() {
|
||||||
log(" getPendingTasks()");
|
log(" getPendingTasks()");
|
||||||
return c.getIntValue("");
|
return metrics.pendingTasks.value();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -127,7 +127,7 @@ public class CompactionManager implements CompactionManagerMBean {
|
|||||||
@Deprecated
|
@Deprecated
|
||||||
public long getCompletedTasks() {
|
public long getCompletedTasks() {
|
||||||
log(" getCompletedTasks()");
|
log(" getCompletedTasks()");
|
||||||
return c.getLongValue("");
|
return metrics.completedTasks.value();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -147,7 +147,7 @@ public class CompactionManager implements CompactionManagerMBean {
|
|||||||
@Deprecated
|
@Deprecated
|
||||||
public long getTotalCompactionsCompleted() {
|
public long getTotalCompactionsCompleted() {
|
||||||
log(" getTotalCompactionsCompleted()");
|
log(" getTotalCompactionsCompleted()");
|
||||||
return c.getLongValue("");
|
return metrics.totalCompactionsCompleted.count();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user