From 9f3cefd7aa91128eddf807e2d4d2a5226252f238 Mon Sep 17 00:00:00 2001 From: snoop Date: Fri, 24 Nov 2017 16:01:56 +0900 Subject: [PATCH] added meta crawler --- .../java/com/loafle/overflow/crawler/wmi/WMICrawler.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 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 8bbbe52..93dd2df 100644 --- a/src/main/java/com/loafle/overflow/crawler/wmi/WMICrawler.java +++ b/src/main/java/com/loafle/overflow/crawler/wmi/WMICrawler.java @@ -24,7 +24,8 @@ public class WMICrawler extends Crawler { return WMICrawlerOS.getInstance().process(config); } - public Object getInternalMeta(Config config) throws Exception { + @Override + public Object getInternalMeta(Config c) throws Exception { List metaConfigList = loadMetaConfig(); @@ -35,7 +36,7 @@ public class WMICrawler extends Crawler { for(Config metaConfig : metaConfigList) { for(int indexI = 0; indexI < metaConfig.getItems().size(); ++indexI) { - ofResultSet = os.processWMI(config, metaConfig.getItems().get(indexI)); + ofResultSet = os.processWMI(c, metaConfig.getItems().get(indexI)); if(ofResultSet != null) { retlist.add(ofResultSet); } @@ -45,6 +46,7 @@ public class WMICrawler extends Crawler { return null; } + private List loadMetaConfig() throws IOException { ClassLoader classLoader = getClass().getClassLoader(); ObjectMapper mapper = new ObjectMapper();