This commit is contained in:
jackdaw@loafle.com 2017-04-14 10:49:23 +09:00
parent 400eaf8457
commit ec0e8d4419
2 changed files with 12 additions and 10 deletions

View File

@ -1,6 +1,7 @@
package com.loafle.overflow.crawler.wmi; package com.loafle.overflow.crawler.wmi;
import com.loafle.overflow.crawler.Crawler; import com.loafle.overflow.crawler.Crawler;
import com.loafle.overflow.crawler.config.Config;
import java.util.Map; import java.util.Map;
@ -10,8 +11,9 @@ import java.util.Map;
*/ */
public class WMICrawler extends Crawler { public class WMICrawler extends Crawler {
public Object getInternal(Map<String, Object> map) throws Exception { public Object getInternal(Config config) throws Exception {
return WMICrawlerOS.getInstance().processWMI(map); //return WMICrawlerOS.getInstance().processWMI(map);
return null;
} }

View File

@ -65,14 +65,14 @@ public class WMICrawlerTest {
map.put("ip", "192.168.1.1"); map.put("ip", "192.168.1.1");
List<Map<String, String>> resultList = (List<Map<String, String>>)wmiCrawler.getInternal(map); // List<Map<String, String>> resultList = (List<Map<String, String>>)wmiCrawler.getInternal(map);
//
//
for( Map<String,String> rMap : resultList) { // for( Map<String,String> rMap : resultList) {
for( String key : rMap.keySet() ){ // for( String key : rMap.keySet() ){
System.out.println( String.format("key : %s ||| value : %s", key, rMap.get(key)) ); // System.out.println( String.format("key : %s ||| value : %s", key, rMap.get(key)) );
} // }
} // }
} }