Interface ITopologyAwareEnsemblePlacementPolicy.Ensemble<T extends Node>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean addNode​(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()  
      boolean validate()
      Validates if an ensemble is valid.
    • Method Detail

      • addNode

        boolean 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
      • toList

        java.util.List<BookieId> toList()
        Returns:
        list of addresses representing the ensemble
      • validate

        boolean validate()
        Validates if an ensemble is valid.
        Returns:
        true if the ensemble is valid; false otherwise