线程类增加异常捕获,日志记录
This commit is contained in:
@@ -7,6 +7,7 @@ import com.nis.domain.configuration.IpPortCfg;
|
|||||||
import com.nis.domain.maat.MaatCfg;
|
import com.nis.domain.maat.MaatCfg;
|
||||||
import com.nis.util.ConfigConvertUtil;
|
import com.nis.util.ConfigConvertUtil;
|
||||||
import org.apache.commons.collections.CollectionUtils;
|
import org.apache.commons.collections.CollectionUtils;
|
||||||
|
import org.apache.log4j.Logger;
|
||||||
import org.springframework.beans.BeanUtils;
|
import org.springframework.beans.BeanUtils;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
@@ -15,6 +16,7 @@ import java.util.Map;
|
|||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
public class ObjGroupCfgConvert implements Runnable{
|
public class ObjGroupCfgConvert implements Runnable{
|
||||||
|
private static final Logger logger= Logger.getLogger(ObjGroupCfgConvert.class);
|
||||||
private CfgIndexInfo cfgIndexInfo;
|
private CfgIndexInfo cfgIndexInfo;
|
||||||
private Integer isAudit;
|
private Integer isAudit;
|
||||||
private Map<Integer, FunctionServiceDict> serviceDictMap;
|
private Map<Integer, FunctionServiceDict> serviceDictMap;
|
||||||
@@ -37,6 +39,7 @@ public class ObjGroupCfgConvert implements Runnable{
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
try{
|
||||||
//IP公共分组
|
//IP公共分组
|
||||||
if("ipGroup".equalsIgnoreCase(groupName)&& CollectionUtils.isNotEmpty(cfgIndexInfo.getIpCommGroupCfgList())){
|
if("ipGroup".equalsIgnoreCase(groupName)&& CollectionUtils.isNotEmpty(cfgIndexInfo.getIpCommGroupCfgList())){
|
||||||
IpPortCfg cfg = new IpPortCfg();
|
IpPortCfg cfg = new IpPortCfg();
|
||||||
@@ -107,6 +110,9 @@ public class ObjGroupCfgConvert implements Runnable{
|
|||||||
strRegionList=map.get("dstList");
|
strRegionList=map.get("dstList");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}catch (Throwable e){
|
||||||
|
logger.error("ObjGroupCfgConvert failed",e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<MaatCfg.GroupCfg> getGroupRelationList() {
|
public List<MaatCfg.GroupCfg> getGroupRelationList() {
|
||||||
|
|||||||
Reference in New Issue
Block a user