Class Replica


  • public class Replica
    extends java.lang.Object
    Replica is the basic unit to distribute data, replica is belong to a partition and running in a instance.
    • Constructor Detail

      • Replica

        public Replica​(Instance instance,
                       int partitionId,
                       java.lang.String resource)
    • Method Detail

      • getInstance

        public Instance getInstance()
      • getPartitionId

        public int getPartitionId()
      • getResource

        public java.lang.String getResource()
      • setStatus

        public void setStatus​(java.lang.String status)
        Used by the JSON deserializer
      • setStatus

        public void setStatus​(HelixState status)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object