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
public class HelixCustomizedViewOfflinePushRepository extends HelixBaseRoutingRepository
ExtendHelixBaseRoutingRepository
to leverage customized view data for offline push.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
HelixCustomizedViewOfflinePushRepository.StoreChangeListener
-
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
Constructors Constructor Description HelixCustomizedViewOfflinePushRepository(SafeHelixManager manager, ReadOnlyStoreRepository storeRepository, boolean enableReplicaStatusHistory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
java.util.Map<java.lang.Integer,java.lang.Integer>
getCompletedStatusReplicas(java.lang.String kafkaTopic, int numberOfPartitions)
java.util.List<ReplicaState>
getReplicaStates(java.lang.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 Detail
-
HelixCustomizedViewOfflinePushRepository
public HelixCustomizedViewOfflinePushRepository(SafeHelixManager manager, ReadOnlyStoreRepository storeRepository, boolean enableReplicaStatusHistory)
-
-
Method Detail
-
getReplicaStates
public java.util.List<ReplicaState> getReplicaStates(java.lang.String kafkaTopic, int partitionId)
-
getCompletedStatusReplicas
public java.util.Map<java.lang.Integer,java.lang.Integer> getCompletedStatusReplicas(java.lang.String kafkaTopic, int numberOfPartitions)
-
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
-
-