APIMBeanServer: Support both Table and Tables as metric name
Fixes #71 Signed-off-by: Amnon Heiman <amnon@scylladb.com> (cherry picked from commit c7bce65919bce196f13d398eec6695b5bb48068b)
This commit is contained in:
parent
095cbd02e5
commit
ae74b2e865
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user