mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
jmx enhance
This commit is contained in:
@@ -955,6 +955,22 @@ public abstract class DruidAbstractDataSource extends WrapperAdapter implements
|
||||
public void setDriver(Driver driver) {
|
||||
this.driver = driver;
|
||||
}
|
||||
|
||||
public int getDriverMajorVersion() {
|
||||
if (this.driver == null) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
return this.driver.getMajorVersion();
|
||||
}
|
||||
|
||||
public int getDriverMinorVersion() {
|
||||
if (this.driver == null) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
return this.driver.getMinorVersion();
|
||||
}
|
||||
|
||||
public ExceptionSorter getExceptionSorter() {
|
||||
return exceptionSorter;
|
||||
|
||||
@@ -150,4 +150,8 @@ public interface DruidAbstractDataSourceMBean {
|
||||
boolean isUseOracleImplicitCache();
|
||||
|
||||
void setUseOracleImplicitCache(boolean useOracleImplicitCache);
|
||||
|
||||
int getDriverMajorVersion();
|
||||
|
||||
int getDriverMinorVersion();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user