Package com.linkedin.davinci.helix
Class LeaderFollowerPartitionStateModelDualPoolFactory
- java.lang.Object
-
- org.apache.helix.participant.statemachine.StateModelFactory<org.apache.helix.participant.statemachine.StateModel>
-
- com.linkedin.davinci.helix.AbstractStateModelFactory
-
- com.linkedin.davinci.helix.LeaderFollowerPartitionStateModelFactory
-
- com.linkedin.davinci.helix.LeaderFollowerPartitionStateModelDualPoolFactory
-
public class LeaderFollowerPartitionStateModelDualPoolFactory extends LeaderFollowerPartitionStateModelFactory
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.linkedin.davinci.helix.LeaderFollowerPartitionStateModelFactory
LeaderFollowerPartitionStateModelFactory.LeaderFollowerThreadPoolStrategy
-
-
Field Summary
-
Fields inherited from class com.linkedin.davinci.helix.AbstractStateModelFactory
executorService, instanceName, logger, partitionPushStatusAccessorFuture, stateTransitionStats, storeMetadataRepo
-
-
Constructor Summary
Constructors Constructor Description LeaderFollowerPartitionStateModelDualPoolFactory(IngestionBackend ingestionBackend, VeniceConfigLoader configService, java.util.concurrent.ExecutorService executorService, ParticipantStateTransitionStats stateTransitionStats, java.util.concurrent.ExecutorService futureVersionExecutorService, ParticipantStateTransitionStats futureVersionStateTransitionStats, ReadOnlyStoreRepository metadataRepo, java.util.concurrent.CompletableFuture<HelixPartitionStatusAccessor> partitionPushStatusAccessorFuture, java.lang.String instanceName, HeartbeatMonitoringService heartbeatMonitoringService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.ExecutorService
getExecutorService(java.lang.String resourceName)
ParticipantStateTransitionStats
getStateTransitionStats(java.lang.String resourceName)
Use the right state transition stats for the resource.void
shutDownExecutor()
void
waitExecutorTermination(long timeout, java.util.concurrent.TimeUnit unit)
-
Methods inherited from class com.linkedin.davinci.helix.LeaderFollowerPartitionStateModelFactory
createNewStateModel
-
Methods inherited from class com.linkedin.davinci.helix.AbstractStateModelFactory
getConfigService, getIngestionBackend, getStateModelID, getStoreMetadataRepo
-
Methods inherited from class org.apache.helix.participant.statemachine.StateModelFactory
createAndAddBatchMessageWrapper, createAndAddStateModel, createAndAddStateModel, createBatchMessageWrapper, createNewStateModel, getBatchMessageWrapper, getExecutorService, getExecutorService, getPartitionSet, getPartitionSet, getResourceSet, getStateModel, getStateModel, removeStateModel, removeStateModel
-
-
-
-
Constructor Detail
-
LeaderFollowerPartitionStateModelDualPoolFactory
public LeaderFollowerPartitionStateModelDualPoolFactory(IngestionBackend ingestionBackend, VeniceConfigLoader configService, java.util.concurrent.ExecutorService executorService, ParticipantStateTransitionStats stateTransitionStats, java.util.concurrent.ExecutorService futureVersionExecutorService, ParticipantStateTransitionStats futureVersionStateTransitionStats, ReadOnlyStoreRepository metadataRepo, java.util.concurrent.CompletableFuture<HelixPartitionStatusAccessor> partitionPushStatusAccessorFuture, java.lang.String instanceName, HeartbeatMonitoringService heartbeatMonitoringService)
-
-
Method Detail
-
getExecutorService
public java.util.concurrent.ExecutorService getExecutorService(java.lang.String resourceName)
- Overrides:
getExecutorService
in classAbstractStateModelFactory
-
getStateTransitionStats
public ParticipantStateTransitionStats getStateTransitionStats(java.lang.String resourceName)
Description copied from class:AbstractStateModelFactory
Use the right state transition stats for the resource. By default, use the regular one; when dual state transition thread pool is enabled, use the future version stats for future version resource.- Overrides:
getStateTransitionStats
in classAbstractStateModelFactory
-
shutDownExecutor
public void shutDownExecutor()
- Overrides:
shutDownExecutor
in classAbstractStateModelFactory
-
waitExecutorTermination
public void waitExecutorTermination(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
- Overrides:
waitExecutorTermination
in classAbstractStateModelFactory
- Throws:
java.lang.InterruptedException
-
-