Class Partition


  • public class Partition
    extends Object
    • Constructor Detail

      • Partition

        public Partition​(short active,
                         short[] replicas)
        Creates a new Partition.
        Parameters:
        active - the array index of the active
        replicas - the array indexes of the replicas.
    • Method Detail

      • active

        public short active()
      • replica

        public short replica​(int num)