From ec0e8d4419eae1051846be38673814302aefcb7c Mon Sep 17 00:00:00 2001 From: "jackdaw@loafle.com" Date: Fri, 14 Apr 2017 10:49:23 +0900 Subject: [PATCH] . --- .../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)) ); +// } +// } }