mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
testcase
This commit is contained in:
@@ -1,43 +1,43 @@
|
||||
package com.alibaba.druid.pool.ha;
|
||||
|
||||
public interface HADataSourceMBean extends MultiDataSourceMBean {
|
||||
long getMasterConnectCount();
|
||||
|
||||
long getSlaveConnectCount();
|
||||
|
||||
boolean isMasterEnable();
|
||||
|
||||
void setMasterEnable(boolean value);
|
||||
|
||||
boolean isSlaveEnable();
|
||||
|
||||
void setSlaveEnable(boolean value);
|
||||
|
||||
String getMasterUrl();
|
||||
|
||||
String getSlaveUrl();
|
||||
|
||||
void switchMasterSlave();
|
||||
|
||||
void resetStat();
|
||||
|
||||
void restartMaster();
|
||||
|
||||
void restartSlave();
|
||||
|
||||
boolean isMasterFail();
|
||||
|
||||
boolean isSlaveFail();
|
||||
|
||||
int getMasterWeight();
|
||||
|
||||
int getSlaveWeight();
|
||||
|
||||
int getMasterWeightRegionBegin();
|
||||
|
||||
int getMasterWeightRegionEnd();
|
||||
|
||||
int getSlaveWeightRegionBegin();
|
||||
|
||||
int getSlaveWeightRegionEnd();
|
||||
}
|
||||
package com.alibaba.druid.pool.ha;
|
||||
|
||||
public interface HADataSourceMBean extends MultiDataSourceMBean {
|
||||
long getMasterConnectCount();
|
||||
|
||||
long getSlaveConnectCount();
|
||||
|
||||
boolean isMasterEnable();
|
||||
|
||||
void setMasterEnable(boolean value);
|
||||
|
||||
boolean isSlaveEnable();
|
||||
|
||||
void setSlaveEnable(boolean value);
|
||||
|
||||
String getMasterUrl();
|
||||
|
||||
String getSlaveUrl();
|
||||
|
||||
void switchMasterSlave();
|
||||
|
||||
void resetStat();
|
||||
|
||||
void restartMaster();
|
||||
|
||||
void restartSlave();
|
||||
|
||||
boolean isMasterFail();
|
||||
|
||||
boolean isSlaveFail();
|
||||
|
||||
int getMasterWeight();
|
||||
|
||||
int getSlaveWeight();
|
||||
|
||||
int getMasterWeightRegionBegin();
|
||||
|
||||
int getMasterWeightRegionEnd();
|
||||
|
||||
int getSlaveWeightRegionBegin();
|
||||
|
||||
int getSlaveWeightRegionEnd();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user