From 400eaf8457899d50eed8719886788a822f192764 Mon Sep 17 00:00:00 2001 From: "jackdaw@loafle.com" Date: Thu, 13 Apr 2017 17:02:59 +0900 Subject: [PATCH 1/2] . --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index a348c43..a8f3e29 100644 --- a/pom.xml +++ b/pom.xml @@ -20,7 +20,7 @@ com.loafle.overflow - crawler_java + crawler 1.0.0-SNAPSHOT From ec0e8d4419eae1051846be38673814302aefcb7c Mon Sep 17 00:00:00 2001 From: "jackdaw@loafle.com" Date: Fri, 14 Apr 2017 10:49:23 +0900 Subject: [PATCH 2/2] . --- .../loafle/overflow/crawler/wmi/WMICrawler.java | 6 ++++-- .../overflow/crawler/wmi/WMICrawlerTest.java | 16 ++++++++-------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/main/java/com/loafle/overflow/crawler/wmi/WMICrawler.java b/src/main/java/com/loafle/overflow/crawler/wmi/WMICrawler.java index 84bb232..9ede7a4 100644 --- a/src/main/java/com/loafle/overflow/crawler/wmi/WMICrawler.java +++ b/src/main/java/com/loafle/overflow/crawler/wmi/WMICrawler.java @@ -1,6 +1,7 @@ package com.loafle.overflow.crawler.wmi; import com.loafle.overflow.crawler.Crawler; +import com.loafle.overflow.crawler.config.Config; import java.util.Map; @@ -10,8 +11,9 @@ import java.util.Map; */ public class WMICrawler extends Crawler { - public Object getInternal(Map map) throws Exception { - return WMICrawlerOS.getInstance().processWMI(map); + public Object getInternal(Config config) throws Exception { + //return WMICrawlerOS.getInstance().processWMI(map); + return null; } diff --git a/src/test/java/com/loafle/overflow/crawler/wmi/WMICrawlerTest.java b/src/test/java/com/loafle/overflow/crawler/wmi/WMICrawlerTest.java index b094f74..14c7ea7 100644 --- a/src/test/java/com/loafle/overflow/crawler/wmi/WMICrawlerTest.java +++ b/src/test/java/com/loafle/overflow/crawler/wmi/WMICrawlerTest.java @@ -65,14 +65,14 @@ public class WMICrawlerTest { map.put("ip", "192.168.1.1"); - List> resultList = (List>)wmiCrawler.getInternal(map); - - - for( Map rMap : resultList) { - for( String key : rMap.keySet() ){ - System.out.println( String.format("key : %s ||| value : %s", key, rMap.get(key)) ); - } - } +// List> resultList = (List>)wmiCrawler.getInternal(map); +// +// +// for( Map rMap : resultList) { +// for( String key : rMap.keySet() ){ +// System.out.println( String.format("key : %s ||| value : %s", key, rMap.get(key)) ); +// } +// } }