.
This commit is contained in:
parent
400eaf8457
commit
ec0e8d4419
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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)) );
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user