Class StoreMigrationManager
java.lang.Object
com.linkedin.venice.controller.multitaskscheduler.ScheduledTaskManager
com.linkedin.venice.controller.multitaskscheduler.StoreMigrationManager
-
Field Summary
Fields inherited from class com.linkedin.venice.controller.multitaskscheduler.ScheduledTaskManager
executorService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanupMigrationRecord
(String storeName) protected ScheduledExecutorService
createExecutorService
(int threadPoolSize) static StoreMigrationManager
createStoreMigrationManager
(int threadPoolSize, int maxRetryAttempts) protected org.apache.logging.log4j.Logger
int
getMigrationRecord
(String storeName) scheduleMigration
(String storeName, String sourceCluster, String destinationCluster, int currentStep) scheduleMigration
(String storeName, String sourceCluster, String destinationCluster, int currentStep, int delayInSeconds) scheduleNextStep
(MigrationRecord record, int delayInSeconds) Methods inherited from class com.linkedin.venice.controller.multitaskscheduler.ScheduledTaskManager
scheduleNextStep, shutdown
-
Constructor Details
-
StoreMigrationManager
Deprecated.Constructor to initialize the StoreMigrationManager with the specified thread pool size and max retry attempts. Only used for testing purpose, please use createStoreMigrationManager instead.- Parameters:
threadPoolSize
-maxRetryAttempts
-
-
-
Method Details
-
getMigrationRecord
-
createExecutorService
- Specified by:
createExecutorService
in classScheduledTaskManager
-
getLogger
protected org.apache.logging.log4j.Logger getLogger()- Specified by:
getLogger
in classScheduledTaskManager
-
createStoreMigrationManager
public static StoreMigrationManager createStoreMigrationManager(int threadPoolSize, int maxRetryAttempts) -
scheduleMigration
public ScheduledFuture<?> scheduleMigration(String storeName, String sourceCluster, String destinationCluster, int currentStep) -
scheduleMigration
public ScheduledFuture<?> scheduleMigration(String storeName, String sourceCluster, String destinationCluster, int currentStep, int delayInSeconds) -
scheduleNextStep
-
cleanupMigrationRecord
-
getMaxRetryAttempts
public int getMaxRetryAttempts()
-