Package com.linkedin.venice.pushmonitor
Class PartitionStatus
- java.lang.Object
-
- com.linkedin.venice.pushmonitor.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 Summary
Constructors Constructor Description PartitionStatus(int partitionId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
batchUpdateReplicaIncPushStatus(java.lang.String instanceId, java.util.List<java.lang.String> incPushVersionList, long progress)
int
compareTo(PartitionStatus o)
boolean
equals(java.lang.Object o)
int
getPartitionId()
java.util.List<StatusSnapshot>
getReplicaHistoricStatusList(java.lang.String instanceId)
ExecutionStatus
getReplicaStatus(java.lang.String instanceId)
java.util.Collection<ReplicaStatus>
getReplicaStatuses()
boolean
hasFatalDataValidationError()
int
hashCode()
void
setReplicaStatuses(java.util.Collection<ReplicaStatus> replicaStatuses)
java.lang.String
toString()
void
updateReplicaStatus(java.lang.String instanceId, ExecutionStatus newStatus)
void
updateReplicaStatus(java.lang.String instanceId, ExecutionStatus newStatus, boolean enableStatusHistory)
void
updateReplicaStatus(java.lang.String instanceId, ExecutionStatus newStatus, java.lang.String incrementalPushVersion, long progress)
-
-
-
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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
compareTo
public int compareTo(PartitionStatus o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<PartitionStatus>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-