Search in sources :

Example 1 with InvalidRingException

use of com.ms.silverking.cloud.toporing.InvalidRingException in project SilverKing by Morgan-Stanley.

the class ConvergenceControllerBase method getResolvedReplicaMap.

protected ResolvedReplicaMap getResolvedReplicaMap(DHTMetaUpdate metaUpdate, RingConfiguration ringConfig) {
    RingTree ringTreeMinusExclusions;
    ResolvedReplicaMap resolvedReplicaMapMinusExclusions;
    try {
        ringTreeMinusExclusions = RingTreeBuilder.removeExcludedNodes(metaUpdate.getRingTree(), exclusionSet);
    } catch (InvalidRingException ire) {
        throw new RuntimeException("Unexpected InvalidRingException", ire);
    }
    resolvedReplicaMapMinusExclusions = ringTreeMinusExclusions.getResolvedMap(ringConfig.getRingParentName(), null);
    return resolvedReplicaMapMinusExclusions;
}
Also used : InvalidRingException(com.ms.silverking.cloud.toporing.InvalidRingException) RingTree(com.ms.silverking.cloud.toporing.RingTree) ResolvedReplicaMap(com.ms.silverking.cloud.toporing.ResolvedReplicaMap)

Aggregations

InvalidRingException (com.ms.silverking.cloud.toporing.InvalidRingException)1 ResolvedReplicaMap (com.ms.silverking.cloud.toporing.ResolvedReplicaMap)1 RingTree (com.ms.silverking.cloud.toporing.RingTree)1