Search in sources :

Example 1 with SingleTableDumpTask

use of com.qlangtech.tis.order.dump.task.SingleTableDumpTask in project plugins by qlangtech.

the class LocalTableDumpFactory method createSingleTableDumpJob.

@Override
public IRemoteJobTrigger createSingleTableDumpJob(final IDumpTable table, TaskContext context) {
    return triggerTask(context, (rpc) -> {
        SingleTableDumpTask tableDumpTask = new SingleTableDumpTask((EntityName) table, LocalTableDumpFactory.this, getDataSourceFactory(table), context.getCoordinator().unwrap(), rpc) {

            protected void registerZKDumpNodeIn(TaskContext context) {
            }
        };
        // 开始执行数据dump
        tableDumpTask.map(context);
    });
}
Also used : TaskContext(com.qlangtech.tis.fullbuild.indexbuild.TaskContext) ITaskContext(com.qlangtech.tis.fs.ITaskContext) SingleTableDumpTask(com.qlangtech.tis.order.dump.task.SingleTableDumpTask)

Aggregations

ITaskContext (com.qlangtech.tis.fs.ITaskContext)1 TaskContext (com.qlangtech.tis.fullbuild.indexbuild.TaskContext)1 SingleTableDumpTask (com.qlangtech.tis.order.dump.task.SingleTableDumpTask)1