121912201221122212231224122512261227122812291230
// wait until the failure (not the completion of client-side failover) is detected while(true) { FailoverEvent event = listener.getEvent(30000); if (event != null && FailoverEvent.FAILOVER_STARTED == event.getType()) { break; } if (event == null) {
176017611762176317641765176617671768176917701771
// wait for the client-side failover to complete while(true) { FailoverEvent event = failoverListener.getEvent(30000); if (event != null && FailoverEvent.FAILOVER_COMPLETED == event.getType()) { break; } if (event == null) {
185018511852185318541855185618571858185918601861
194519461947194819491950195119521953195419551956
205320542055205620572058205920602061206220632064
213321342135213621372138213921402141214221432144
220122022203220422052206220722082209221022112212
243124322433243424352436243724382439244024412442
// wait for the client-side failover to complete while(true) { FailoverEvent event = failoverListener.getEvent(120000); if (event != null && FailoverEvent.FAILOVER_FAILED == event.getType()) { break; } if (event == null) {
344345346347348349350351352353354355
// wait for the client-side failover to complete while (true) { FailoverEvent event = failoverListener.getEvent(30000); if (event != null && FailoverEvent.FAILOVER_COMPLETED == event.getType()) { break; } if (event == null) {
128129130131132133134135136137138139