| | |
| | | if (handler == null) |
| | | return 0; |
| | | |
| | | return handler.getCount(from, to); |
| | | int count = handler.getCount(from, to); |
| | | return count; |
| | | } |
| | | |
| | | /** |
| | |
| | | for (ServerHandler rs : replicationServers.values()) |
| | | { |
| | | int serverId = rs.getServerId(); |
| | | // Store the fact that we expect a MonitoringMsg back from this server |
| | | expectedMonitoringMsg.add(new GlobalServerId(baseDn, serverId)); |
| | | MonitorRequestMsg msg = |
| | | new MonitorRequestMsg(this.replicationServer.getServerId(), |
| | | serverId); |
| | | rs.send(msg); |
| | | // Store the fact that we expect a MonitoringMsg back from this server |
| | | expectedMonitoringMsg.add(new GlobalServerId(baseDn, serverId)); |
| | | } |
| | | } catch (Exception e) |
| | | { |
| | |
| | | */ |
| | | public long getEligibleCount(ServerState startState, ChangeNumber endCN) |
| | | { |
| | | long sidRes = 0; |
| | | long res = 0; |
| | | |
| | | // Parses the dbState of the domain , server by server |
| | |
| | | ChangeNumber startCN = null; |
| | | if (startState.getMaxChangeNumber(sid) != null) |
| | | startCN = startState.getMaxChangeNumber(sid); |
| | | res += getCount(sid, startCN, endCN); |
| | | sidRes += getCount(sid, startCN, endCN); |
| | | |
| | | // The startPoint is excluded when counting the ECL eligible changes |
| | | if ((startCN!=null)&&(sidRes>0)) |
| | | sidRes--; |
| | | |
| | | res+=sidRes; |
| | | } |
| | | return res; |
| | | } |