diff --git a/src/main/java/com/loafle/overflow/crawler/jmx/JmxCrawler.java b/src/main/java/com/loafle/overflow/crawler/jmx/JmxCrawler.java index 71a7b78..a6aba00 100644 --- a/src/main/java/com/loafle/overflow/crawler/jmx/JmxCrawler.java +++ b/src/main/java/com/loafle/overflow/crawler/jmx/JmxCrawler.java @@ -1,6 +1,7 @@ package com.loafle.overflow.crawler.jmx; import com.loafle.overflow.crawler.Crawler; +import com.loafle.overflow.crawler.config.Config; import javax.management.*; import javax.management.openmbean.CompositeData; @@ -36,7 +37,7 @@ public class JmxCrawler extends Crawler{ private List result = new ArrayList<>(); @Override - public Object getInternal(Map map) throws Exception { + public Object getInternal(Config config) throws Exception { MBeanReceiver m = new MBeanReceiver() { @Override @@ -47,20 +48,20 @@ public class JmxCrawler extends Crawler{ } }; - String jmxUrl = (String) map.get("jmxUrl"); - String username = (String)map.get("username"); - String password = (String)map.get("password"); - Boolean isSSL = (Boolean)map.get("ssl"); - - JmxCrawler jmxCrawler = new JmxCrawler( - jmxUrl, - username, - password, - isSSL, - m - ); - - jmxCrawler.doCrawler(); +// String jmxUrl = (String) map.get("jmxUrl"); +// String username = (String)map.get("username"); +// String password = (String)map.get("password"); +// Boolean isSSL = (Boolean)map.get("ssl"); +// +// JmxCrawler jmxCrawler = new JmxCrawler( +// jmxUrl, +// username, +// password, +// isSSL, +// m +// ); +// +// jmxCrawler.doCrawler(); return result; }