...
|
...
|
@@ -8,6 +8,7 @@ package com.airport; |
|
|
import com.airport.core.AgentSender;
|
|
|
import com.airport.core.IMFNoDelaySender;
|
|
|
import com.airport.core.IMFReader;
|
|
|
import com.airport.core.ZYFNoDelaySender;
|
|
|
import com.airport.util.ConfigUtils;
|
|
|
import com.airport.util.SystemBean;
|
|
|
import com.caac.imf.api.IMFClient;
|
...
|
...
|
@@ -46,17 +47,17 @@ public class Main { |
|
|
logger.info("start run Timer,client hasocde=" + client.hashCode());
|
|
|
|
|
|
//代理人发送程序
|
|
|
// AgentSender send = new AgentSender(client);
|
|
|
// send.start();
|
|
|
AgentSender send = new AgentSender(client);
|
|
|
send.start();
|
|
|
|
|
|
//数据仓库给九州的发送程序
|
|
|
Timer timer = new Timer();
|
|
|
// Timer timer = new Timer();
|
|
|
|
|
|
//从配置文件读取sql语句,发送货运数据
|
|
|
String sql_select=ConfigUtils.SQl;
|
|
|
String sqlmax = ConfigUtils.SQlMax;
|
|
|
IMFNoDelaySender CangKu2Jiuzhou = new IMFNoDelaySender(client,"data/fid_index.txt",sql_select,sqlmax);
|
|
|
CangKu2Jiuzhou.start();
|
|
|
// //从配置文件读取sql语句,发送货运数据
|
|
|
// String sql_select=ConfigUtils.SQl;
|
|
|
// String sqlmax = ConfigUtils.SQlMax;
|
|
|
// ZYFNoDelaySender CangKu2Jiuzhou = new ZYFNoDelaySender(client,"data/fid_index.txt",sql_select,sqlmax);
|
|
|
// CangKu2Jiuzhou.start();
|
|
|
// timer.schedule(CangKu2Jiuzhou, 10000L, 1200000L);
|
|
|
|
|
|
}
|
...
|
...
|
|