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 ClassesNested classes/interfaces inherited from class org.apache.helix.participant.statemachine.StateModelFactory
org.apache.helix.participant.statemachine.StateModelFactory.CustomizedExecutorService -
Constructor Summary
ConstructorsConstructorDescriptionMockTestStateModelFactory(VeniceOfflinePushMonitorAccessor offlinePushStatusAccessor) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.helix.participant.statemachine.StateModelcreateNewStateModel(String resourceName, String partitionName) getModelList(String resourceName, int partitionId) voidmakeTransitionCompleted(String resourceName, int partitionId) voidmakeTransitionError(String resourceName, int partitionId) voidsetBlockTransition(boolean isDelay) voidMethods 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:
createNewStateModelin 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
-