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:
parent
095cbd02e5
commit
ae74b2e865
@ -285,7 +285,7 @@ public class APIMBeanServer implements MBeanServer {
|
|||||||
return server.getClassLoaderRepository();
|
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) {
|
private boolean checkRegistrations(ObjectName name) {
|
||||||
if (name != null && server.isRegistered(name)) {
|
if (name != null && server.isRegistered(name)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user