Class AbstractInventoryDumper
java.lang.Object
org.apache.shardingsphere.data.pipeline.api.executor.AbstractLifecycleExecutor
org.apache.shardingsphere.data.pipeline.core.ingest.dumper.AbstractInventoryDumper
- All Implemented Interfaces:
Runnable,LifecycleExecutor,Dumper,InventoryDumper
public abstract class AbstractInventoryDumper
extends AbstractLifecycleExecutor
implements InventoryDumper
Abstract JDBC dumper implement.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractInventoryDumper(InventoryDumperConfiguration inventoryDumperConfig, PipelineChannel channel, DataSource dataSource, PipelineTableMetaDataLoader metaDataLoader) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract PreparedStatementcreatePreparedStatement(Connection connection, String sql) protected voiddoStart()protected voiddoStop()protected ObjectMethods 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, stop
-
Constructor Details
-
AbstractInventoryDumper
protected AbstractInventoryDumper(InventoryDumperConfiguration inventoryDumperConfig, PipelineChannel channel, DataSource dataSource, PipelineTableMetaDataLoader metaDataLoader)
-
-
Method Details
-
doStart
protected void doStart()- Specified by:
doStartin classAbstractLifecycleExecutor
-
createPreparedStatement
protected abstract PreparedStatement createPreparedStatement(Connection connection, String sql) throws SQLException - Throws:
SQLException
-
readValue
- Throws:
SQLException
-
doStop
protected void doStop()- Specified by:
doStopin classAbstractLifecycleExecutor
-