MessagingService: Add tasks statistics
This patch adds the implementation of: getResponsePendingTasks() getResponseCompletedTasks() getDroppedMessages() The implementation is based on the messaging_service API that defined in messaging_service.json. Signed-off-by: Amnon Heiman <amnon@scylladb.com>
This commit is contained in:
parent
20778b2df6
commit
3cb168bed3
@ -94,7 +94,7 @@ public final class MessagingService implements MessagingServiceMBean {
|
||||
*/
|
||||
public Map<String, Integer> getResponsePendingTasks() {
|
||||
log(" getResponsePendingTasks()");
|
||||
return c.getMapStringIntegerValue("");
|
||||
return c.getMapStringIntegerValue("/messaging_service/messages/respond_pending");
|
||||
}
|
||||
|
||||
/**
|
||||
@ -102,7 +102,7 @@ public final class MessagingService implements MessagingServiceMBean {
|
||||
*/
|
||||
public Map<String, Long> getResponseCompletedTasks() {
|
||||
log(" getResponseCompletedTasks()");
|
||||
return c.getMapStringLongValue("");
|
||||
return c.getMapStringLongValue("/messaging_service/messages/respond_completed");
|
||||
}
|
||||
|
||||
/**
|
||||
@ -110,7 +110,7 @@ public final class MessagingService implements MessagingServiceMBean {
|
||||
*/
|
||||
public Map<String, Integer> getDroppedMessages() {
|
||||
log(" getDroppedMessages()");
|
||||
return c.getMapStringIntegerValue("");
|
||||
return c.getMapStringIntegerValue("/messaging_service/messages/dropped");
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user