From ae74b2e865128a013103e561dee1eedc70af160b Mon Sep 17 00:00:00 2001 From: Amnon Heiman Date: Thu, 11 Jul 2019 14:50:54 +0300 Subject: [PATCH] APIMBeanServer: Support both Table and Tables as metric name Fixes #71 Signed-off-by: Amnon Heiman (cherry picked from commit c7bce65919bce196f13d398eec6695b5bb48068b) --- src/main/java/com/scylladb/jmx/utils/APIMBeanServer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/scylladb/jmx/utils/APIMBeanServer.java b/src/main/java/com/scylladb/jmx/utils/APIMBeanServer.java index 58d0752..4f7c8c5 100644 --- a/src/main/java/com/scylladb/jmx/utils/APIMBeanServer.java +++ b/src/main/java/com/scylladb/jmx/utils/APIMBeanServer.java @@ -285,7 +285,7 @@ public class APIMBeanServer implements MBeanServer { return server.getClassLoaderRepository(); } - static final Pattern tables = Pattern.compile("^\\*?((Index)?ColumnFamil(ies|y)|(Index)?(Tables)?)$"); + static final Pattern tables = Pattern.compile("^\\*?((Index)?ColumnFamil(ies|y)|(Index)?(Table(s)?)?)$"); private boolean checkRegistrations(ObjectName name) { if (name != null && server.isRegistered(name)) {