mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
refactor
This commit is contained in:
@@ -141,6 +141,8 @@ public class DruidDataSourceStatManager implements DruidDataSourceStatManagerMBe
|
||||
} catch (JMException ex) {
|
||||
LOG.error("register mbean error", ex);
|
||||
}
|
||||
|
||||
DruidStatService.registerMBean();
|
||||
}
|
||||
|
||||
ObjectName objectName = null;
|
||||
@@ -201,6 +203,8 @@ public class DruidDataSourceStatManager implements DruidDataSourceStatManagerMBe
|
||||
} catch (JMException ex) {
|
||||
LOG.error("unregister mbean error", ex);
|
||||
}
|
||||
|
||||
DruidStatService.unregisterMBean();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user