| | |
| | | */ |
| | | private void waitForRemoteStartOfInit() |
| | | { |
| | | int waitResultAttempt = 0; |
| | | Set<Integer> replicasWeAreWaitingFor = new HashSet<Integer>(0); |
| | | |
| | | replicasWeAreWaitingFor.addAll(ieContext.startList); |
| | | final Set<Integer> replicasWeAreWaitingFor = |
| | | new HashSet<Integer>(ieContext.startList); |
| | | |
| | | if (debugEnabled()) |
| | | TRACER.debugInfo( |
| | | "[IE] wait for start replicasWeAreWaitingFor=" + replicasWeAreWaitingFor); |
| | | |
| | | int waitResultAttempt = 0; |
| | | boolean done; |
| | | do |
| | | { |
| | |
| | | { |
| | | if (debugEnabled()) |
| | | TRACER.debugInfo( |
| | | "[IE] wait for start dsid " + dsi.getDsId() |
| | | "[IE] wait for start dsId " + dsi.getDsId() |
| | | + " " + dsi.getStatus() |
| | | + " " + dsi.getGenerationId() |
| | | + " " + getGenerationID()); |
| | |
| | | */ |
| | | private void waitForRemoteEndOfInit() |
| | | { |
| | | Set<Integer> replicasWeAreWaitingFor = new HashSet<Integer>( |
| | | ieContext.startList); |
| | | final Set<Integer> replicasWeAreWaitingFor = |
| | | new HashSet<Integer>(ieContext.startList); |
| | | |
| | | if (debugEnabled()) |
| | | TRACER.debugInfo( |
| | |
| | | do |
| | | { |
| | | done = true; |
| | | short reconnectMaxDelayInSec = 10; |
| | | short reconnectWait = 0; |
| | | int reconnectMaxDelayInSec = 10; |
| | | int reconnectWait = 0; |
| | | Iterator<Integer> it = replicasWeAreWaitingFor.iterator(); |
| | | while (it.hasNext()) |
| | | { |
| | |
| | | if (debugEnabled()) |
| | | TRACER.debugInfo( |
| | | "[IE] wait for end ends with " + ieContext.failureList); |
| | | |
| | | |
| | | } |
| | | |
| | | /** |