重构代码,按照业务分类

This commit is contained in:
wanglihui
2020-07-07 18:17:14 +08:00
parent 46a21fb308
commit 78664828e1
22 changed files with 805 additions and 490 deletions

View File

@@ -11,21 +11,15 @@ public class IpLearningApplicationTest {
public static void main(String[] args) {
long startA = System.currentTimeMillis();
// BaseArangoData.BaseVFqdnDataMap();
// BaseArangoData.BaseVIpDataMap();
// BaseArangoData.BaseEFqdnAddressIpDataMap();
// BaseArangoData.BaseEIpVisitFqdnDataMap();
BaseArangoData baseArangoData = new BaseArangoData();
baseArangoData.baseDocumentDataMap();
// ExecutorThreadPool.shutdown();
// ExecutorThreadPool.awaitThreadTask();
long lastA = System.currentTimeMillis();
System.out.println("读取ArangoDb时间"+(lastA - startA));
// UpdateGraphsData.updateVFqdn();
// UpdateGraphsData.updateVIp();
// UpdateGraphsData.updateEFqdnAddressIp();
// UpdateGraphsData.updateEIpVisitFqdn();
/*
long startC = System.currentTimeMillis();
CountDownLatch countDownLatch = new CountDownLatch(4);
@@ -68,6 +62,8 @@ public class IpLearningApplicationTest {
long lastC = System.currentTimeMillis();
System.out.println("更新ArangoDb时间"+(lastC - startC));
*/
System.out.println(BaseArangoData.v_Fqdn_Map.size());
System.out.println(BaseArangoData.v_Ip_Map.size());
System.out.println(BaseArangoData.e_Fqdn_Address_Ip_Map.size());