作者 朱兆平

生产更新

... ... @@ -2,6 +2,7 @@ package com.sy.IMF;
import com.caac.imf.api.IMFClient;
import com.sy.bwAnalysis.AnalysisRoute;
import com.sy.task.LocalFileTaskHandle;
import com.sy.utils.XMLThreadPoolFactory;
import org.apache.commons.lang.StringUtils;
import org.apache.log4j.Logger;
... ... @@ -28,15 +29,20 @@ public class KAKO_Reader extends Thread{
Thread t =Thread.currentThread();
ThreadPoolExecutor threadPoolEs = XMLThreadPoolFactory.instance("kakou");
AnalysisRoute analysisRoute= null;
LocalFileTaskHandle localFileTaskHandle = null;
while(true) {
if (IMF_Tesk.LOGIN_OK){
String message = this.client.getMSG();
// logger.info(t.toString()+"读取线程已获取到消息");
if (StringUtils.isNotEmpty(message)) {
// logger.info(message);
analysisRoute = new AnalysisRoute();
analysisRoute.setMessage(message);
threadPoolEs.execute(analysisRoute);
// analysisRoute = new AnalysisRoute();
// analysisRoute.setMessage(message);
localFileTaskHandle = new LocalFileTaskHandle();
localFileTaskHandle.setMessage(message);
threadPoolEs.execute(localFileTaskHandle);
logger.info("[THREADPOOL-INFO]-当前运行线程总数量: " + threadPoolEs.getActiveCount());
logger.info("[THREADPOOL-INFO]-当前线程数量: " + threadPoolEs.getTaskCount());
logger.info("[THREADPOOL-INFO]-完成的线程总数量: " + threadPoolEs.getCompletedTaskCount());
... ...
... ... @@ -189,8 +189,10 @@ public class GatherInfoHandle implements GatherInfoService {
if(checkRelease()){ //出区核放
sendBw(info, true,PERMITTHOUGH,landBusinessTypeList,listinfos);
log.info("[SUCCESS]:{}车辆验放成功出区",info.getVename());
releaseFormCheck(); //流转申请单核销
}
}
}else{
log.info("[X21-ERROR]:{}车辆验放失败",info.getVename());
... ...
... ... @@ -82,7 +82,7 @@ public class CommandClient {
try {
//ip+端口
socket = new Socket("10.50.7.10", 9003);
logger.info("socket通讯创建连接成功");
log.info("socket通讯创建连接成功");
op = socket.getOutputStream();
//xml字节流
byte[]xBody =xmlBody.getBytes("GB2312");
... ...