* during message creation.
*/
public MonitorMsg createGlobalTopologyMonitorMsg(
int sender, int destination, boolean updateMonitorData)
{
MonitorMsg returnMsg =
new MonitorMsg(sender, destination);
try
{
returnMsg.setReplServerDbState(getDbServerState());
// Update the information we have about all servers
// in the topology.
MonitorData md = computeMonitorData(updateMonitorData);
// Add the informations about the Replicas currently in
// the topology.
Iterator<Integer> it = md.ldapIterator();
while (it.hasNext())
{
int replicaId = it.next();
returnMsg.setServerState(
replicaId, md.getLDAPServerState(replicaId),
md.getApproxFirstMissingDate(replicaId), true);
}
// Add the informations about the Replication Servers
// currently in the topology.
it = md.rsIterator();
while (it.hasNext())
{
int replicaId = it.next();
returnMsg.setServerState(
replicaId, md.getRSStates(replicaId),
md.getRSApproxFirstMissingDate(replicaId), false);
}
}
catch (DirectoryException e)