| | |
| | | private int rcvWindow; |
| | | private int queueSize; |
| | | private String dbDirname = null; |
| | | private long trimAge; // the time (in sec) after which the changes must |
| | | // be deleted from the persistent storage. |
| | | |
| | | // The delay (in sec) after which the changes must |
| | | // be deleted from the persistent storage. |
| | | private long purgeDelay; |
| | | |
| | | private int replicationPort; |
| | | private boolean stopListen = false; |
| | | private ReplSessionSecurity replSessionSecurity; |
| | |
| | | if (replicationServers == null) |
| | | replicationServers = new ArrayList<String>(); |
| | | queueSize = configuration.getQueueSize(); |
| | | trimAge = configuration.getReplicationPurgeDelay(); |
| | | purgeDelay = configuration.getReplicationPurgeDelay(); |
| | | dbDirname = configuration.getReplicationDBDirectory(); |
| | | rcvWindow = configuration.getWindowSize(); |
| | | if (dbDirname == null) |
| | |
| | | */ |
| | | long getTrimage() |
| | | { |
| | | return trimAge * 1000; |
| | | return purgeDelay * 1000; |
| | | } |
| | | |
| | | /** |
| | |
| | | if (replicationServers == null) |
| | | replicationServers = new ArrayList<String>(); |
| | | queueSize = configuration.getQueueSize(); |
| | | trimAge = configuration.getReplicationPurgeDelay(); |
| | | long newPurgeDelay = configuration.getReplicationPurgeDelay(); |
| | | if (newPurgeDelay != purgeDelay) |
| | | { |
| | | purgeDelay = newPurgeDelay; |
| | | // propagate |
| | | for (ReplicationServerDomain domain : baseDNs.values()) |
| | | { |
| | | domain.setPurgeDelay(purgeDelay); |
| | | } |
| | | } |
| | | |
| | | rcvWindow = configuration.getWindowSize(); |
| | | |
| | | // changing the listen port requires to stop the listen thread |