Package org.apache.bookkeeper.client
Interface ITopologyAwareEnsemblePlacementPolicy.Ensemble<T extends Node>
- 
- All Known Implementing Classes:
- TopologyAwareEnsemblePlacementPolicy.EnsembleForReplacementWithNoConstraints,- TopologyAwareEnsemblePlacementPolicy.RRTopologyAwareCoverageEnsemble
 - Enclosing interface:
- ITopologyAwareEnsemblePlacementPolicy<T extends Node>
 
 public static interface ITopologyAwareEnsemblePlacementPolicy.Ensemble<T extends Node>Ensemble used to hold the result of an ensemble selected for placement.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaddNode(T node)Append the new bookie node to the ensemble only if the ensemble doesnt already contain the same bookie.java.util.List<BookieId>toList()booleanvalidate()Validates if an ensemble is valid.
 
- 
- 
- 
Method Detail- 
addNodeboolean addNode(T node) Append the new bookie node to the ensemble only if the ensemble doesnt already contain the same bookie.- Parameters:
- node- new candidate bookie node.
- Returns:
- true if the node was added
 
 - 
toListjava.util.List<BookieId> toList() - Returns:
- list of addresses representing the ensemble
 
 - 
validateboolean validate() Validates if an ensemble is valid.- Returns:
- true if the ensemble is valid; false otherwise
 
 
- 
 
-