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 TypeMethodDescriptionvoidcleanupMigrationRecord(String storeName) protected ScheduledExecutorServicecreateExecutorService(int threadPoolSize) static StoreMigrationManagercreateStoreMigrationManager(int threadPoolSize, int maxRetryAttempts) protected org.apache.logging.log4j.LoggerintgetMigrationRecord(String storeName) scheduleMigration(String storeName, String sourceCluster, String destinationCluster, int currentStep) scheduleMigration(String storeName, String sourceCluster, String destinationCluster, int currentStep, int delayInSeconds, boolean abortOnFailure) 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:
createExecutorServicein classScheduledTaskManager
-
getLogger
protected org.apache.logging.log4j.Logger getLogger()- Specified by:
getLoggerin 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, boolean abortOnFailure) -
scheduleNextStep
-
cleanupMigrationRecord
-
getMaxRetryAttempts
public int getMaxRetryAttempts()
-