Package org.apache.bookkeeper.client
Class TopologyAwareEnsemblePlacementPolicy.RRTopologyAwareCoverageEnsemble.RackQuorumCoverageSet
- java.lang.Object
-
- org.apache.bookkeeper.client.TopologyAwareEnsemblePlacementPolicy.RRTopologyAwareCoverageEnsemble.RackQuorumCoverageSet
-
- All Implemented Interfaces:
TopologyAwareEnsemblePlacementPolicy.RRTopologyAwareCoverageEnsemble.CoverageSet
- Enclosing class:
- TopologyAwareEnsemblePlacementPolicy.RRTopologyAwareCoverageEnsemble
protected class TopologyAwareEnsemblePlacementPolicy.RRTopologyAwareCoverageEnsemble.RackQuorumCoverageSet extends java.lang.Object implements TopologyAwareEnsemblePlacementPolicy.RRTopologyAwareCoverageEnsemble.CoverageSet
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.HashSet<java.lang.String>
racksOrRegionsInQuorum
(package private) int
seenBookies
-
Constructor Summary
Constructors Modifier Constructor Description protected
RackQuorumCoverageSet(int minNumRacksPerWriteQuorum)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBookie(BookieNode candidate)
boolean
apply(BookieNode candidate)
TopologyAwareEnsemblePlacementPolicy.RRTopologyAwareCoverageEnsemble.RackQuorumCoverageSet
duplicate()
-
-
-
Method Detail
-
apply
public boolean apply(BookieNode candidate)
- Specified by:
apply
in interfaceTopologyAwareEnsemblePlacementPolicy.RRTopologyAwareCoverageEnsemble.CoverageSet
-
addBookie
public void addBookie(BookieNode candidate)
- Specified by:
addBookie
in interfaceTopologyAwareEnsemblePlacementPolicy.RRTopologyAwareCoverageEnsemble.CoverageSet
-
duplicate
public TopologyAwareEnsemblePlacementPolicy.RRTopologyAwareCoverageEnsemble.RackQuorumCoverageSet duplicate()
- Specified by:
duplicate
in interfaceTopologyAwareEnsemblePlacementPolicy.RRTopologyAwareCoverageEnsemble.CoverageSet
-
-