Package com.github.ambry.cloud
Class OnlineOfflineHelixVcrStateModelFactory
- java.lang.Object
-
- org.apache.helix.participant.statemachine.StateModelFactory<org.apache.helix.participant.statemachine.StateModel>
-
- com.github.ambry.cloud.VcrStateModelFactory
-
- com.github.ambry.cloud.OnlineOfflineHelixVcrStateModelFactory
-
public class OnlineOfflineHelixVcrStateModelFactory extends VcrStateModelFactory
A factory for creatingOnlineOfflineHelixVcrStateModel
-
-
Field Summary
-
Fields inherited from class com.github.ambry.cloud.VcrStateModelFactory
helixVcrCluster
-
-
Constructor Summary
Constructors Constructor Description OnlineOfflineHelixVcrStateModelFactory(HelixVcrCluster helixVcrCluster)
-
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 ofOnlineOfflineHelixVcrStateModel
-
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
-
OnlineOfflineHelixVcrStateModelFactory
public OnlineOfflineHelixVcrStateModelFactory(HelixVcrCluster helixVcrCluster)
-
-
Method Detail
-
createNewStateModel
public org.apache.helix.participant.statemachine.StateModel createNewStateModel(java.lang.String resourceName, java.lang.String partitionName)
Create and return an instance ofOnlineOfflineHelixVcrStateModel
- 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
OnlineOfflineHelixVcrStateModel
.
-
-