| | |
| | | import org.opends.server.api.DirectoryThread; |
| | | import org.opends.server.backends.task.Task; |
| | | import org.opends.server.config.ConfigException; |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.loggers.debug.DebugTracer; |
| | | import org.opends.server.replication.common.AssuredMode; |
| | | import org.opends.server.replication.common.ChangeNumber; |
| | |
| | | private static Map<String, ReplicationDomain> domains = |
| | | new HashMap<String, ReplicationDomain>(); |
| | | |
| | | /** |
| | | * The Monitor in charge of replication monitoring. |
| | | */ |
| | | private ReplicationMonitor monitor; |
| | | |
| | | /* |
| | | * Assured mode properties |
| | | */ |
| | |
| | | } |
| | | |
| | | if (debugEnabled()) |
| | | TRACER.debugInfo( |
| | | "[IE] In " + this.monitor.getMonitorInstanceName() |
| | | + " export ends with " |
| | | + " connected=" + broker.isConnected() |
| | | + " exportRootException=" + exportRootException); |
| | | TRACER.debugInfo("[IE] In " + getReplicationMonitorInstanceName() |
| | | + " export ends with " + " connected=" + broker.isConnected() |
| | | + " exportRootException=" + exportRootException); |
| | | |
| | | if (exportRootException != null) |
| | | { |
| | |
| | | |
| | | } |
| | | |
| | | private String getReplicationMonitorInstanceName() |
| | | { |
| | | return broker.getReplicationMonitor().getMonitorInstanceName(); |
| | | } |
| | | |
| | | /* |
| | | * For all remote servers in tht start list, |
| | | * - wait it has finished the import and present the expected generationID |
| | |
| | | msg = broker.receive(false, false, true); |
| | | |
| | | if (debugEnabled()) |
| | | TRACER.debugInfo( |
| | | "[IE] In " + this.monitor.getMonitorInstanceName() + |
| | | ", receiveEntryBytes " + msg); |
| | | TRACER.debugInfo("[IE] In " + getReplicationMonitorInstanceName() |
| | | + ", receiveEntryBytes " + msg); |
| | | |
| | | if (msg == null) |
| | | { |
| | |
| | | ieContext.msgCnt); |
| | | broker.publish(amsg, false); |
| | | if (debugEnabled()) |
| | | TRACER.debugInfo( |
| | | "[IE] In " + this.monitor.getMonitorInstanceName() + |
| | | ", publish InitializeRcvAckMsg" + amsg); |
| | | TRACER.debugInfo("[IE] In " |
| | | + getReplicationMonitorInstanceName() |
| | | + ", publish InitializeRcvAckMsg" + amsg); |
| | | } |
| | | } |
| | | return entryBytes; |
| | |
| | | changetimeHeartbeatInterval); |
| | | |
| | | broker.start(replicationServers); |
| | | |
| | | /* |
| | | * Create a replication monitor object responsible for publishing |
| | | * monitoring information below cn=monitor. |
| | | */ |
| | | monitor = new ReplicationMonitor(this); |
| | | } |
| | | |
| | | DirectoryServer.registerMonitorProvider(monitor); |
| | | } |
| | | } |
| | | |
| | |
| | | */ |
| | | public void stopDomain() |
| | | { |
| | | DirectoryServer.deregisterMonitorProvider(monitor); |
| | | disableService(); |
| | | domains.remove(serviceID); |
| | | } |