Class ReplicaStatus

java.lang.Object
com.linkedin.venice.pushmonitor.ReplicaStatus

public class ReplicaStatus extends Object
Class stores replica status and history.
  • Field Details

  • Constructor Details

    • ReplicaStatus

      public ReplicaStatus(String instanceId)
    • ReplicaStatus

      public ReplicaStatus(String instanceId, boolean enableStatusHistory)
  • Method Details

    • updateStatus

      public void updateStatus(ExecutionStatus newStatus, String incrementalPushVersion)
    • getInstanceId

      public String getInstanceId()
    • getCurrentStatus

      public ExecutionStatus getCurrentStatus()
    • setCurrentStatus

      public void setCurrentStatus(ExecutionStatus currentStatus)
    • getCurrentProgress

      public long getCurrentProgress()
    • setCurrentProgress

      public void setCurrentProgress(long currentProgress)
    • getIncrementalPushVersion

      public String getIncrementalPushVersion()
    • setIncrementalPushVersion

      public void setIncrementalPushVersion(String incrementalPushVersion)
    • getStatusHistory

      public List<StatusSnapshot> getStatusHistory()
    • setStatusHistory

      public void setStatusHistory(List<StatusSnapshot> statusHistory)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getReplicaId

      public static String getReplicaId(String kafkaTopic, int partition, String instanceId)
    • getInstanceIdFromReplicaId

      public static String getInstanceIdFromReplicaId(String replicaId)
    • findStartedAndCompletedStatus

      public Pair<StatusSnapshot,StatusSnapshot> findStartedAndCompletedStatus()
      Returns:
      the started and completed status snapshot from the status history.