org.codehaus.wadi.replication.strategy
Class RoundRobinBackingStrategy
java.lang.Object
org.codehaus.wadi.replication.strategy.RoundRobinBackingStrategy
- All Implemented Interfaces:
- BackingStrategy
public class RoundRobinBackingStrategy
- extends java.lang.Object
- implements BackingStrategy
- Version:
- $Revision: 2540 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RoundRobinBackingStrategy
public RoundRobinBackingStrategy(ServiceSpace serviceSpace,
int nbReplica)
electSecondaries
public Peer[] electSecondaries(java.lang.Object key)
- Specified by:
electSecondaries
in interface BackingStrategy
reElectSecondaries
public Peer[] reElectSecondaries(java.lang.Object key,
Peer primary,
Peer[] oldSecondaries,
SecondaryFilter secondaryFilter)
- Specified by:
reElectSecondaries
in interface BackingStrategy
reElectSecondariesForSwap
public Peer[] reElectSecondariesForSwap(java.lang.Object key,
Peer newPrimary,
Peer[] currentSecondaries)
- Specified by:
reElectSecondariesForSwap
in interface BackingStrategy
addSecondaries
public void addSecondaries(Peer[] newSecondaries)
- Specified by:
addSecondaries
in interface BackingStrategy
addSecondary
public void addSecondary(Peer secondary)
- Specified by:
addSecondary
in interface BackingStrategy
removeSecondary
public void removeSecondary(Peer secondary)
- Specified by:
removeSecondary
in interface BackingStrategy
reset
public void reset()
- Specified by:
reset
in interface BackingStrategy
electSecondariesWithSecondaries
protected Peer[] electSecondariesWithSecondaries(java.util.List<Peer> secondaries,
SecondaryFilter secondaryFilter)
Copyright © 2011. All Rights Reserved.