Package org.apache.bookkeeper.client
Class TopologyAwareEnsemblePlacementPolicy.RRTopologyAwareCoverageEnsemble.RackOrRegionDurabilityCoverageSet
- java.lang.Object
-
- org.apache.bookkeeper.client.TopologyAwareEnsemblePlacementPolicy.RRTopologyAwareCoverageEnsemble.RackOrRegionDurabilityCoverageSet
-
- All Implemented Interfaces:
TopologyAwareEnsemblePlacementPolicy.RRTopologyAwareCoverageEnsemble.CoverageSet
- Enclosing class:
- TopologyAwareEnsemblePlacementPolicy.RRTopologyAwareCoverageEnsemble
protected class TopologyAwareEnsemblePlacementPolicy.RRTopologyAwareCoverageEnsemble.RackOrRegionDurabilityCoverageSet extends java.lang.Object implements TopologyAwareEnsemblePlacementPolicy.RRTopologyAwareCoverageEnsemble.CoverageSet
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.HashMap<java.lang.String,java.lang.Integer>
allocationToRacksOrRegions
-
Constructor Summary
Constructors Constructor Description RackOrRegionDurabilityCoverageSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBookie(BookieNode candidate)
boolean
apply(BookieNode candidate)
TopologyAwareEnsemblePlacementPolicy.RRTopologyAwareCoverageEnsemble.RackOrRegionDurabilityCoverageSet
duplicate()
-
-
-
Method Detail
-
duplicate
public TopologyAwareEnsemblePlacementPolicy.RRTopologyAwareCoverageEnsemble.RackOrRegionDurabilityCoverageSet duplicate()
- Specified by:
duplicate
in interfaceTopologyAwareEnsemblePlacementPolicy.RRTopologyAwareCoverageEnsemble.CoverageSet
-
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
-
-