use of com.pamirs.pradar.event.PradarSwitchEvent in project LinkAgent by shulieTech.
the class PradarSwitcher method clusterTestReady.
/**
* 设置压测环境已经准备完成
*/
public static void clusterTestReady() {
boolean before = isClusterTestEnabled();
isClusterTestReady = true;
configSwitchers.clear();
boolean after = isClusterTestEnabled();
if (before != after) {
for (PradarSwitcherListener listener : listeners) {
listener.onListen(new PradarSwitchEvent(after, getClusterTestUnableReason()));
}
}
}
Aggregations