mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
05.50.2013 950cfbfa7d895b728f432500027df274d6b1d6c7
refs
author Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Tuesday, March 5, 2013 17:50 +0100
committer Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Tuesday, March 5, 2013 17:50 +0100
commit950cfbfa7d895b728f432500027df274d6b1d6c7
tree 2a4fd2dd46fa1a69fee0b0286866b930ba989295 tree | zip | gz
parent d6264c618deb82efe028ca19a5eba006c1942fa5 view | diff
OPENDJ-66 (CR-1365) DS does not failover between replication servers in different groups when configured explicitly for one of the groups 

Code cleanup.

ReplicationBroker.java
In computeBestReplicationServer(), fixed the screwed up for (ctr) switch (ctr){}; pattern + added keepBest() method.
In computeBestServerForWeight(), used BigDecimal.valueOf() instead of ctor.
In changeConfig(), fixed complicated condition.
Added javadocs, fixed variable naming, used foreach.

StaticUtils.java:
Added toIterable().
2 files modified
373 ■■■■■ changed files
opends/src/server/org/opends/server/replication/service/ReplicationBroker.java 277 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/util/StaticUtils.java 96 ●●●●● diff | view | raw | blame | history