APIMBeanServer: Support both Table and Tables as metric name

Fixes #71

Signed-off-by: Amnon Heiman <amnon@scylladb.com>
(cherry picked from commit c7bce65919)
This commit is contained in:
Amnon Heiman 2019-07-11 14:50:54 +03:00 committed by Pekka Enberg
parent 095cbd02e5
commit ae74b2e865

View File

@ -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)) {