(1)导入验证修正bug,多线程引入service调用时发生异常,将service调用dns响应策略,dns组改为从缓存中获取

(2)DNS IP导入改为批量导入
This commit is contained in:
wangxin
2018-11-16 17:06:36 +08:00
parent 19be05a25d
commit 0ece4f5729
8 changed files with 98 additions and 58 deletions

View File

@@ -869,7 +869,6 @@ public class BaseController {
List<Future<String>> futures=new ArrayList<>();
for(int i=0;i<Constants.MULITY_THREAD_SIZE;i++) {
CheckIpFormatThread t=new CheckIpFormatThread(serviceDict,regionDict, this.getMsgProp(), list, queue);
t.setDnsResStrategyService(dnsResStrategyService);
t.setAsnNoMaps(asnNos);
futures.add(service.submit(t));
}
@@ -910,7 +909,6 @@ public class BaseController {
List<Future<String>> futures=new ArrayList<>();
for(int i=0;i<Constants.MULITY_THREAD_SIZE;i++) {
CheckStringFormatThread t=new CheckStringFormatThread(serviceDict,regionDict, this.getMsgProp(), list, queue);
t.setDnsResStrategyService(dnsResStrategyService);
futures.add(service.submit(t));
}
service.shutdown();
@@ -950,7 +948,6 @@ public class BaseController {
List<Future<String>> futures=new ArrayList<>();
for(int i=0;i<Constants.MULITY_THREAD_SIZE;i++) {
CheckComplexStringFormatThread t=new CheckComplexStringFormatThread(serviceDict,regionDict, this.getMsgProp(), list, queue);
t.setDnsResStrategyService(dnsResStrategyService);
futures.add(service.submit(t));
}
service.shutdown();
@@ -990,8 +987,6 @@ public class BaseController {
List<Future<String>> futures=new ArrayList<>();
for(int i=0;i<Constants.MULITY_THREAD_SIZE;i++) {
CheckDnsResStrategyFormatThread t=new CheckDnsResStrategyFormatThread(serviceDict,regionDict, this.getMsgProp(), list, queue);
t.setDnsResStrategyService(dnsResStrategyService);
t.setPolicyGroupInfoService(policyGroupInfoService);
futures.add(service.submit(t));
}
service.shutdown();