mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
ha jmax
This commit is contained in:
@@ -24,6 +24,11 @@ public class HADataSource extends MultiDataSource implements HADataSourceMBean,
|
||||
public HADataSource(){
|
||||
|
||||
}
|
||||
|
||||
public void resetStat() {
|
||||
masterConnectCount.set(0);
|
||||
slaveConnectCount.set(0);
|
||||
}
|
||||
|
||||
public long getMasterConnectCount() {
|
||||
return masterConnectCount.get();
|
||||
|
||||
@@ -12,4 +12,6 @@ public interface HADataSourceMBean {
|
||||
boolean isSlaveEnable();
|
||||
|
||||
void setSlaveEnable(boolean value);
|
||||
|
||||
void resetStat();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user