Class ClusterLeaderInitializationManager
- java.lang.Object
-
- com.linkedin.venice.controller.init.ClusterLeaderInitializationManager
-
- All Implemented Interfaces:
ClusterLeaderInitializationRoutine
public class ClusterLeaderInitializationManager extends java.lang.Object implements ClusterLeaderInitializationRoutine
Takes care of executing each routine once per cluster. If a routine fails, it will have another chance of executing next time the same controller becomes leader of the cluster for which the routine previously failed.
-
-
Constructor Summary
Constructors Constructor Description ClusterLeaderInitializationManager(java.util.List<ClusterLeaderInitializationRoutine> initRoutines, boolean concurrentInit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(java.lang.String clusterToInit)
-
-
-
Constructor Detail
-
ClusterLeaderInitializationManager
public ClusterLeaderInitializationManager(java.util.List<ClusterLeaderInitializationRoutine> initRoutines, boolean concurrentInit)
-
-
Method Detail
-
execute
public void execute(java.lang.String clusterToInit)
- Specified by:
execute
in interfaceClusterLeaderInitializationRoutine
- See Also:
ClusterLeaderInitializationRoutine.execute(String)
-
-