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>
  • Constructor Details

  • Method Details

    • stopAllStateModelThreads

      public void stopAllStateModelThreads()
    • createNewStateModel

      public org.apache.helix.participant.statemachine.StateModel createNewStateModel(String resourceName, String partitionName)
      Overrides:
      createNewStateModel in class org.apache.helix.participant.statemachine.StateModelFactory<org.apache.helix.participant.statemachine.StateModel>
    • setBlockTransition

      public void setBlockTransition(boolean isDelay)
    • makeTransitionCompleted

      public void makeTransitionCompleted(String resourceName, int partitionId)
    • getModelList

      public List<MockTestStateModelFactory.OnlineOfflineStateModel> getModelList(String resourceName, int partitionId)
    • makeTransitionError

      public void makeTransitionError(String resourceName, int partitionId)