Package com.linkedin.venice.helix
Class HelixCustomizedViewOfflinePushRepository
java.lang.Object
com.linkedin.venice.helix.HelixBaseRoutingRepository
com.linkedin.venice.helix.HelixCustomizedViewOfflinePushRepository
- All Implemented Interfaces:
OnlineInstanceFinder
,RoutingDataRepository
,VeniceResource
,org.apache.helix.api.listeners.ControllerChangeListener
,org.apache.helix.api.listeners.RoutingTableChangeListener
Extend
HelixBaseRoutingRepository
to leverage customized view data for offline push.-
Nested Class Summary
Modifier and TypeClassDescriptionclass
Nested classes/interfaces inherited from interface com.linkedin.venice.meta.RoutingDataRepository
RoutingDataRepository.RoutingDataChangedListener
-
Field Summary
Fields inherited from class com.linkedin.venice.helix.HelixBaseRoutingRepository
dataSource, keyBuilder, listenerManager, liveInstancesMap, liveInstancesMapLock, manager, resourceAssignment
-
Constructor Summary
ConstructorDescriptionHelixCustomizedViewOfflinePushRepository
(SafeHelixManager manager, ReadOnlyStoreRepository storeRepository, boolean enableReplicaStatusHistory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
getCompletedStatusReplicas
(String kafkaTopic, int numberOfPartitions) getReplicaStates
(String kafkaTopic, int partitionId) protected void
onCustomizedViewDataChange
(org.apache.helix.spectator.RoutingTableSnapshot routingTableSnapshot) protected void
onExternalViewDataChange
(org.apache.helix.spectator.RoutingTableSnapshot routingTableSnapshot) Methods inherited from class com.linkedin.venice.helix.HelixBaseRoutingRepository
containsKafkaTopic, convertLiveInstances, doesResourcesExistInIdealState, getAllInstances, getLeaderController, getLeaderControllerChangeTimeMs, getLeaderInstance, getNumberOfPartitions, getPartitionAssignments, getReadyToServeInstances, getReadyToServeInstances, getResourceAssignment, getWorkingInstances, isLiveInstance, onControllerChange, onRoutingTableChange, refresh, subscribeRoutingDataChange, unSubscribeRoutingDataChange
-
Constructor Details
-
HelixCustomizedViewOfflinePushRepository
public HelixCustomizedViewOfflinePushRepository(SafeHelixManager manager, ReadOnlyStoreRepository storeRepository, boolean enableReplicaStatusHistory)
-
-
Method Details
-
getReplicaStates
-
getCompletedStatusReplicas
-
onExternalViewDataChange
protected void onExternalViewDataChange(org.apache.helix.spectator.RoutingTableSnapshot routingTableSnapshot) - Specified by:
onExternalViewDataChange
in classHelixBaseRoutingRepository
-
clear
public void clear()- Specified by:
clear
in interfaceVeniceResource
- Overrides:
clear
in classHelixBaseRoutingRepository
-
onCustomizedViewDataChange
protected void onCustomizedViewDataChange(org.apache.helix.spectator.RoutingTableSnapshot routingTableSnapshot) - Specified by:
onCustomizedViewDataChange
in classHelixBaseRoutingRepository
-