Package com.linkedin.venice.datarecovery
Class DataRecoveryClient
java.lang.Object
com.linkedin.venice.datarecovery.DataRecoveryClient
DataRecoveryClient is the central class to manage data recovery feature.
It contains three main modules: a data recovery planner, a data recovery executor, and a data recovery monitor.
Depending on the different use cases, it delegates the tasks to a specific module.
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionDataRecoveryClient
(DataRecoveryExecutor executor, DataRecoveryMonitor monitor, DataRecoveryEstimator estimator) -
Method Summary
Modifier and TypeMethodDescriptionboolean
confirmStores
(Set<String> storeNames) estimateRecoveryTime
(DataRecoveryClient.DataRecoveryParams drParams, EstimateDataRecoveryTimeCommand.Params cmdParams) void
execute
(DataRecoveryClient.DataRecoveryParams drParams, StoreRepushCommand.Params cmdParams) void
monitor
(DataRecoveryClient.DataRecoveryParams drParams, MonitorCommand.Params monitorParams)
-
Constructor Details
-
DataRecoveryClient
public DataRecoveryClient() -
DataRecoveryClient
public DataRecoveryClient(DataRecoveryExecutor executor, DataRecoveryMonitor monitor, DataRecoveryEstimator estimator)
-
-
Method Details
-
getExecutor
-
getEstimator
-
getMonitor
-
execute
public void execute(DataRecoveryClient.DataRecoveryParams drParams, StoreRepushCommand.Params cmdParams) -
estimateRecoveryTime
public Long estimateRecoveryTime(DataRecoveryClient.DataRecoveryParams drParams, EstimateDataRecoveryTimeCommand.Params cmdParams) -
monitor
public void monitor(DataRecoveryClient.DataRecoveryParams drParams, MonitorCommand.Params monitorParams) -
confirmStores
-