| | |
| | | public ReplicationServerDomain( |
| | | String baseDn, ReplicationServer replicationServer) |
| | | { |
| | | super("Replication Server " + replicationServer.getReplicationPort() + " " |
| | | + baseDn + " " + replicationServer.getServerId()); |
| | | this.baseDn = baseDn; |
| | | this.replicationServer = replicationServer; |
| | | this.assuredTimeoutTimer = new Timer("Replication Assured Timer for " + |
| | |
| | | if ( (generationId>0) && (generationId != handler.getGenerationId()) ) |
| | | { |
| | | if (debugEnabled()) |
| | | TRACER.debugInfo("In " + this.getName() + |
| | | TRACER.debugInfo("In " + "Replication Server " + |
| | | replicationServer.getReplicationPort() + " " + |
| | | baseDn + " " + replicationServer.getServerId() + |
| | | " for dn " + baseDn + ", update " + |
| | | update.getChangeNumber().toString() + |
| | | " will not be sent to replication server " + |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public long getUpdateInterval() |
| | | { |
| | | /* we don't wont to do polling on this monitor */ |
| | | return 0; |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public void updateMonitorData() |
| | | { |
| | | // As long as getUpdateInterval() returns 0, this will never get called |
| | | |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public ArrayList<Attribute> getMonitorData() |
| | | { |
| | | /* |
| | |
| | | if (!sidConnected) |
| | | { |
| | | if (debugEnabled()) |
| | | TRACER.debugInfo("In " + this.getName() + |
| | | TRACER.debugInfo("In " + "Replication Server " + |
| | | replicationServer.getReplicationPort() + " " + |
| | | baseDn + " " + replicationServer.getServerId() + |
| | | " Server " + sid |
| | | + " is not considered for eligibility ... potentially down"); |
| | | continue; |
| | |
| | | |
| | | if (debugEnabled()) |
| | | TRACER.debugInfo( |
| | | "In " + this.getName() + " getEligibleCN() returns result =" |
| | | + eligibleCN); |
| | | "In " + "Replication Server " + replicationServer.getReplicationPort() + |
| | | " " + baseDn + " " + replicationServer.getServerId() + |
| | | " getEligibleCN() returns result =" + eligibleCN); |
| | | return eligibleCN; |
| | | } |
| | | |
| | |
| | | } catch (IOException e) |
| | | { |
| | | TRACER.debugCaught(DebugLogLevel.ERROR, e); |
| | | logError(ERR_CHANGELOG_ERROR_SENDING_MSG.get(rsHandler.getName())); |
| | | logError(ERR_CHANGELOG_ERROR_SENDING_MSG.get( |
| | | "Replication Server " + replicationServer.getReplicationPort() + |
| | | " " + baseDn + " " + replicationServer.getServerId())); |
| | | stopServer(rsHandler, false); |
| | | } |
| | | } |