package com.walker.store.task;
import com.walker.connector.Address;
import com.walker.store.support.DummyStore;
import java.util.List;
/**
* 自定义采集任务定义,不适用Store
对象。
* @author 时克英
* @date 2022-09-26
*/
public abstract class GenericGatherTask extends DatabaseGatherTask{
public GenericGatherTask(String name, Address address){
super(new DummyStore(), name, address);
}
@Override
public Object run(String srcName, String createTableSQL, Object parameter
, Object[] params) throws Exception{
if(connector == null){
connector = getConnector();
}
if(connector == null){
throw new IllegalArgumentException("GatherTask参数错误:connector必须存在!");
}
List