Package com.linkedin.venice.pushmonitor
Class ReplicaStatus
java.lang.Object
com.linkedin.venice.pushmonitor.ReplicaStatus
Class stores replica status and history.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final long
-
Constructor Summary
ConstructorDescriptionReplicaStatus
(String instanceId) ReplicaStatus
(String instanceId, boolean enableStatusHistory) -
Method Summary
Modifier and TypeMethodDescriptionboolean
long
static String
getInstanceIdFromReplicaId
(String replicaId) static String
getReplicaId
(String kafkaTopic, int partition, String instanceId) int
hashCode()
void
setCurrentProgress
(long currentProgress) void
setCurrentStatus
(ExecutionStatus currentStatus) void
setIncrementalPushVersion
(String incrementalPushVersion) void
setStatusHistory
(List<StatusSnapshot> statusHistory) void
updateStatus
(ExecutionStatus newStatus, String incrementalPushVersion)
-
Field Details
-
MAX_HISTORY_LENGTH
public static final int MAX_HISTORY_LENGTH- See Also:
-
NO_PROGRESS
public static final long NO_PROGRESS- See Also:
-
-
Constructor Details
-
ReplicaStatus
-
ReplicaStatus
-
-
Method Details
-
updateStatus
-
getInstanceId
-
getCurrentStatus
-
setCurrentStatus
-
getCurrentProgress
public long getCurrentProgress() -
setCurrentProgress
public void setCurrentProgress(long currentProgress) -
getIncrementalPushVersion
-
setIncrementalPushVersion
-
getStatusHistory
-
setStatusHistory
-
equals
-
hashCode
public int hashCode() -
getReplicaId
-
getInstanceIdFromReplicaId
-
findStartedAndCompletedStatus
- Returns:
- the started and completed status snapshot from the status history.
-