Class InventoryTask
java.lang.Object
org.apache.shardingsphere.data.pipeline.api.executor.AbstractLifecycleExecutor
org.apache.shardingsphere.data.pipeline.core.task.InventoryTask
- All Implemented Interfaces:
AutoCloseable,Runnable,LifecycleExecutor,PipelineTask
public final class InventoryTask
extends AbstractLifecycleExecutor
implements PipelineTask, AutoCloseable
Inventory task.
-
Constructor Summary
ConstructorsConstructorDescriptionInventoryTask(InventoryDumperConfiguration inventoryDumperConfig, ImporterConfiguration importerConfig, PipelineChannelCreator pipelineChannelCreator, PipelineDataSourceManager dataSourceManager, DataSource sourceDataSource, PipelineTableMetaDataLoader sourceMetaDataLoader, ExecuteEngine importerExecuteEngine) -
Method Summary
Methods inherited from class org.apache.shardingsphere.data.pipeline.api.executor.AbstractLifecycleExecutor
isRunning, run, setRunning, start, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.shardingsphere.data.pipeline.api.executor.LifecycleExecutor
start, stopMethods inherited from interface org.apache.shardingsphere.data.pipeline.core.task.PipelineTask
getTaskId
-
Constructor Details
-
InventoryTask
public InventoryTask(InventoryDumperConfiguration inventoryDumperConfig, ImporterConfiguration importerConfig, PipelineChannelCreator pipelineChannelCreator, PipelineDataSourceManager dataSourceManager, DataSource sourceDataSource, PipelineTableMetaDataLoader sourceMetaDataLoader, ExecuteEngine importerExecuteEngine)
-
-
Method Details
-
doStart
protected void doStart()- Specified by:
doStartin classAbstractLifecycleExecutor
-
doStop
protected void doStop()- Specified by:
doStopin classAbstractLifecycleExecutor
-
getProgress
Description copied from interface:PipelineTaskGet Task progress.- Specified by:
getProgressin interfacePipelineTask- Returns:
- Task progress
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-