Package com.linkedin.venice.helix
Class HelixPartitionStatusAccessor
java.lang.Object
com.linkedin.venice.helix.HelixPartitionStateAccessor
com.linkedin.venice.helix.HelixPartitionStatusAccessor
A class for accessing partition offline push and hybrid quota status in Helix customized state (per Helix
instance) on Zookeeper
-
Constructor Summary
ConstructorDescriptionHelixPartitionStatusAccessor
(org.apache.helix.HelixManager helixManager, String instanceId, boolean isHelixHybridStoreQuotaEnabled) -
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteReplicaStatus
(String topic, int partitionId) When a replica is gone from an instance due to partition movement or resource drop, we need to call this delete function to explicitly delete the customized state for that replica.getAllReplicaStatus
(String topic) getHybridQuotaReplicaStatus
(String topic, int partitionId) getReplicaStatus
(String topic, int partitionId) void
updateHybridQuotaReplicaStatus
(String topic, int partitionId, HybridStoreQuotaStatus status) void
updateReplicaStatus
(String topic, int partitionId, ExecutionStatus status) Methods inherited from class com.linkedin.venice.helix.HelixPartitionStateAccessor
deleteReplicaStatus, getAllReplicaStatus, getReplicaStatus, setCustomizedStateProvider, updateReplicaStatus
-
Constructor Details
-
HelixPartitionStatusAccessor
public HelixPartitionStatusAccessor(org.apache.helix.HelixManager helixManager, String instanceId, boolean isHelixHybridStoreQuotaEnabled)
-
-
Method Details
-
updateReplicaStatus
-
updateHybridQuotaReplicaStatus
public void updateHybridQuotaReplicaStatus(String topic, int partitionId, HybridStoreQuotaStatus status) -
deleteReplicaStatus
When a replica is gone from an instance due to partition movement or resource drop, we need to call this delete function to explicitly delete the customized state for that replica. Otherwise, customized state will still stay there. Usually this should happen during state transition. If the partition state is the last partition state in the resource znode, the znode will also be deleted. -
getReplicaStatus
-
getHybridQuotaReplicaStatus
-
getAllReplicaStatus
-