Package com.github.ambry.cloud
Class LeaderStandbyHelixVcrStateModelFactory
- java.lang.Object
-
- org.apache.helix.participant.statemachine.StateModelFactory<org.apache.helix.participant.statemachine.StateModel>
-
- com.github.ambry.cloud.VcrStateModelFactory
-
- com.github.ambry.cloud.LeaderStandbyHelixVcrStateModelFactory
-
public class LeaderStandbyHelixVcrStateModelFactory extends VcrStateModelFactory
A factory for creatingLeaderStandbyHelixVcrStateModel
-
-
Field Summary
-
Fields inherited from class com.github.ambry.cloud.VcrStateModelFactory
helixVcrCluster
-
-
Constructor Summary
Constructors Constructor Description LeaderStandbyHelixVcrStateModelFactory(HelixVcrCluster helixVcrCluster)
Constructor forLeaderStandbyHelixVcrStateModelFactory
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.helix.participant.statemachine.StateModel
createNewStateModel(java.lang.String resourceName, java.lang.String partitionName)
Create and return an instance ofLeaderStandbyHelixVcrStateModel
-
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
-
LeaderStandbyHelixVcrStateModelFactory
public LeaderStandbyHelixVcrStateModelFactory(HelixVcrCluster helixVcrCluster)
Constructor forLeaderStandbyHelixVcrStateModelFactory
.- Parameters:
helixVcrCluster
- the helix vcr cluster.
-
-
Method Detail
-
createNewStateModel
public org.apache.helix.participant.statemachine.StateModel createNewStateModel(java.lang.String resourceName, java.lang.String partitionName)
Create and return an instance ofLeaderStandbyHelixVcrStateModel
- Overrides:
createNewStateModel
in classorg.apache.helix.participant.statemachine.StateModelFactory<org.apache.helix.participant.statemachine.StateModel>
- Parameters:
resourceName
- the resource name for which this state model is being created.partitionName
- the partition name for which this state model is being created.- Returns:
- an instance of
LeaderStandbyHelixVcrStateModel
.
-
-