Package com.linkedin.venice.pushmonitor
Class PartitionStatus
java.lang.Object
com.linkedin.venice.pushmonitor.PartitionStatus
- All Implemented Interfaces:
Comparable<PartitionStatus>
- Direct Known Subclasses:
ReadOnlyPartitionStatus
Class stores the status of one partition including all the replicas statuses in this partition.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
batchUpdateReplicaIncPushStatus
(String instanceId, List<String> incPushVersionList, long progress) int
boolean
int
getReplicaHistoricStatusList
(String instanceId) getReplicaStatus
(String instanceId) boolean
int
hashCode()
void
setReplicaStatuses
(Collection<ReplicaStatus> replicaStatuses) toString()
void
updateReplicaStatus
(String instanceId, ExecutionStatus newStatus) void
updateReplicaStatus
(String instanceId, ExecutionStatus newStatus, boolean enableStatusHistory) void
updateReplicaStatus
(String instanceId, ExecutionStatus newStatus, String incrementalPushVersion, long progress)
-
Constructor Details
-
PartitionStatus
public PartitionStatus(int partitionId)
-
-
Method Details
-
getPartitionId
public int getPartitionId() -
updateReplicaStatus
-
updateReplicaStatus
public void updateReplicaStatus(String instanceId, ExecutionStatus newStatus, boolean enableStatusHistory) -
updateReplicaStatus
public void updateReplicaStatus(String instanceId, ExecutionStatus newStatus, String incrementalPushVersion, long progress) -
batchUpdateReplicaIncPushStatus
-
getReplicaStatuses
-
setReplicaStatuses
-
getReplicaStatus
-
getReplicaHistoricStatusList
-
hasFatalDataValidationError
public boolean hasFatalDataValidationError() -
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareTo
in interfaceComparable<PartitionStatus>
-
toString
-