mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
44 lines
735 B
Java
44 lines
735 B
Java
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();
|
|
}
|