Package com.linkedin.venice.datarecovery
Class DataRecoveryWorker
java.lang.Object
com.linkedin.venice.datarecovery.DataRecoveryWorker
- Direct Known Subclasses:
DataRecoveryEstimator
,DataRecoveryExecutor
,DataRecoveryMonitor
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
static final int
protected final ExecutorService
protected final int
protected List<DataRecoveryTask>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetTasks()
boolean
For some task, it is benefit to wait for the first task to complete before starting to run the remaining ones.void
perform
(Set<String> storeNames, Command.Params params) void
void
-
Field Details
-
INTERVAL_UNSET
public static final int INTERVAL_UNSET- See Also:
-
poolSize
protected final int poolSize -
interval
protected int interval -
pool
-
tasks
-
-
Constructor Details
-
DataRecoveryWorker
public DataRecoveryWorker() -
DataRecoveryWorker
public DataRecoveryWorker(int poolSize)
-
-
Method Details
-
getTasks
-
needWaitForFirstTaskToComplete
For some task, it is benefit to wait for the first task to complete before starting to run the remaining ones. e.g. the first run of task can set up local session files that can be used by follow-up tasks. -
perform
-
processData
public void processData() -
shutdownAndAwaitTermination
public void shutdownAndAwaitTermination()
-