Class PartitionStatus

  • All Implemented Interfaces:
    java.lang.Comparable<PartitionStatus>
    Direct Known Subclasses:
    ReadOnlyPartitionStatus

    public class PartitionStatus
    extends java.lang.Object
    implements java.lang.Comparable<PartitionStatus>
    Class stores the status of one partition including all the replicas statuses in this partition.
    • Constructor Detail

      • PartitionStatus

        public PartitionStatus​(int partitionId)
    • Method Detail

      • getPartitionId

        public int getPartitionId()
      • updateReplicaStatus

        public void updateReplicaStatus​(java.lang.String instanceId,
                                        ExecutionStatus newStatus)
      • updateReplicaStatus

        public void updateReplicaStatus​(java.lang.String instanceId,
                                        ExecutionStatus newStatus,
                                        boolean enableStatusHistory)
      • updateReplicaStatus

        public void updateReplicaStatus​(java.lang.String instanceId,
                                        ExecutionStatus newStatus,
                                        java.lang.String incrementalPushVersion,
                                        long progress)
      • batchUpdateReplicaIncPushStatus

        public void batchUpdateReplicaIncPushStatus​(java.lang.String instanceId,
                                                    java.util.List<java.lang.String> incPushVersionList,
                                                    long progress)
      • getReplicaStatuses

        public java.util.Collection<ReplicaStatus> getReplicaStatuses()
      • setReplicaStatuses

        public void setReplicaStatuses​(java.util.Collection<ReplicaStatus> replicaStatuses)
      • getReplicaStatus

        public ExecutionStatus getReplicaStatus​(java.lang.String instanceId)
      • getReplicaHistoricStatusList

        public java.util.List<StatusSnapshot> getReplicaHistoricStatusList​(java.lang.String instanceId)
      • hasFatalDataValidationError

        public boolean hasFatalDataValidationError()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

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