Package com.linkedin.venice.utils
Class MockTestStateModelFactory
java.lang.Object
org.apache.helix.participant.statemachine.StateModelFactory<org.apache.helix.participant.statemachine.StateModel>
com.linkedin.venice.utils.MockTestStateModelFactory
public class MockTestStateModelFactory
extends org.apache.helix.participant.statemachine.StateModelFactory<org.apache.helix.participant.statemachine.StateModel>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.helix.participant.statemachine.StateModelFactory
org.apache.helix.participant.statemachine.StateModelFactory.CustomizedExecutorService
-
Constructor Summary
ConstructorDescriptionMockTestStateModelFactory
(VeniceOfflinePushMonitorAccessor offlinePushStatusAccessor) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.helix.participant.statemachine.StateModel
createNewStateModel
(String resourceName, String partitionName) getModelList
(String resourceName, int partitionId) void
makeTransitionCompleted
(String resourceName, int partitionId) void
makeTransitionError
(String resourceName, int partitionId) void
setBlockTransition
(boolean isDelay) void
Methods inherited from class org.apache.helix.participant.statemachine.StateModelFactory
createAndAddBatchMessageWrapper, createAndAddStateModel, createAndAddStateModel, createBatchMessageWrapper, createNewStateModel, getBatchMessageWrapper, getExecutorService, getExecutorService, getExecutorService, getPartitionSet, getPartitionSet, getResourceSet, getStateModel, getStateModel, removeStateModel, removeStateModel
-
Constructor Details
-
MockTestStateModelFactory
-
-
Method Details
-
stopAllStateModelThreads
public void stopAllStateModelThreads() -
createNewStateModel
public org.apache.helix.participant.statemachine.StateModel createNewStateModel(String resourceName, String partitionName) - Overrides:
createNewStateModel
in classorg.apache.helix.participant.statemachine.StateModelFactory<org.apache.helix.participant.statemachine.StateModel>
-
setBlockTransition
public void setBlockTransition(boolean isDelay) -
makeTransitionCompleted
-
getModelList
public List<MockTestStateModelFactory.OnlineOfflineStateModel> getModelList(String resourceName, int partitionId) -
makeTransitionError
-