Package com.linkedin.venice.controller
Class VeniceDistClusterControllerStateModelFactory
java.lang.Object
org.apache.helix.participant.statemachine.StateModelFactory<VeniceControllerStateModel>
com.linkedin.venice.controller.VeniceDistClusterControllerStateModelFactory
public class VeniceDistClusterControllerStateModelFactory
extends org.apache.helix.participant.statemachine.StateModelFactory<VeniceControllerStateModel>
Factory to create VeniceDistClusterControllerStateModel and provide some utility methods to get state model by given
cluster.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.helix.participant.statemachine.StateModelFactory
org.apache.helix.participant.statemachine.StateModelFactory.CustomizedExecutorService
-
Constructor Summary
ConstructorDescriptionVeniceDistClusterControllerStateModelFactory
(org.apache.helix.zookeeper.impl.client.ZkClient zkClient, HelixAdapterSerializer adapterSerializer, VeniceHelixAdmin admin, VeniceControllerMultiClusterConfig clusterConfigs, io.tehuti.metrics.MetricsRepository metricsRepository, ClusterLeaderInitializationRoutine controllerInitialization, RealTimeTopicSwitcher realTimeTopicSwitcher, Optional<DynamicAccessController> accessController, HelixAdminClient helixAdminClient) -
Method Summary
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
-
VeniceDistClusterControllerStateModelFactory
public VeniceDistClusterControllerStateModelFactory(org.apache.helix.zookeeper.impl.client.ZkClient zkClient, HelixAdapterSerializer adapterSerializer, VeniceHelixAdmin admin, VeniceControllerMultiClusterConfig clusterConfigs, io.tehuti.metrics.MetricsRepository metricsRepository, ClusterLeaderInitializationRoutine controllerInitialization, RealTimeTopicSwitcher realTimeTopicSwitcher, Optional<DynamicAccessController> accessController, HelixAdminClient helixAdminClient)
-
-
Method Details
-
createNewStateModel
- Overrides:
createNewStateModel
in classorg.apache.helix.participant.statemachine.StateModelFactory<VeniceControllerStateModel>
- See Also:
-
createNewStateModel
-
getModel
- Returns:
VeniceControllerStateModel
for the input cluster, ornull
if the input cluster's model is not created by the factory.
-
getAllModels
- Returns:
- all
VeniceControllerStateModel
created by the factory.
-