Class Partition


  • public class Partition
    extends Object
    • Constructor Detail

      • Partition

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

      • master

        public short master()
      • replica

        public short replica​(int num)