This commit is contained in:
insanity 2017-04-13 12:35:37 +09:00
parent 4d60bc3efb
commit 1d2e5d6488
3 changed files with 10 additions and 8 deletions

View File

@ -40,11 +40,12 @@
<orderEntry type="library" scope="TEST" name="Maven: org.mockito:mockito-core:1.9.5" level="project" /> <orderEntry type="library" scope="TEST" name="Maven: org.mockito:mockito-core:1.9.5" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-core:1.1" level="project" /> <orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-core:1.1" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: org.objenesis:objenesis:1.0" level="project" /> <orderEntry type="library" scope="TEST" name="Maven: org.objenesis:objenesis:1.0" level="project" />
<orderEntry type="library" name="Maven: com.loafle.overflow:crawler_jmx:1.0.0-SNAPSHOT" level="project" />
<orderEntry type="library" name="Maven: com.loafle.overflow:crawler:1.0.0-SNAPSHOT" level="project" />
<orderEntry type="library" name="Maven: com.loafle.overflow:crawler_sql:1.0.0-SNAPSHOT" level="project" /> <orderEntry type="library" name="Maven: com.loafle.overflow:crawler_sql:1.0.0-SNAPSHOT" level="project" />
<orderEntry type="library" name="Maven: com.loafle.overflow:crawler_snmp:1.0.0-SNAPSHOT" level="project" /> <orderEntry type="library" name="Maven: com.loafle.overflow:crawler_snmp:1.0.0-SNAPSHOT" level="project" />
<orderEntry type="library" name="Maven: org.snmp4j:snmp4j:2.5.0" level="project" /> <orderEntry type="library" name="Maven: org.snmp4j:snmp4j:2.5.0" level="project" />
<orderEntry type="library" name="Maven: log4j:log4j:1.2.14" level="project" /> <orderEntry type="library" name="Maven: log4j:log4j:1.2.14" level="project" />
<orderEntry type="library" name="Maven: com.loafle.overflow:crawler:1.0.0-SNAPSHOT" level="project" />
<orderEntry type="library" name="Maven: com.loafle.overflow:crawler_redis:1.0.0-SNAPSHOT" level="project" /> <orderEntry type="library" name="Maven: com.loafle.overflow:crawler_redis:1.0.0-SNAPSHOT" level="project" />
<orderEntry type="library" name="Maven: redis.clients:jedis:2.9.0" level="project" /> <orderEntry type="library" name="Maven: redis.clients:jedis:2.9.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-pool2:2.4.2" level="project" /> <orderEntry type="library" name="Maven: org.apache.commons:commons-pool2:2.4.2" level="project" />

11
pom.xml
View File

@ -43,12 +43,11 @@
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<!--crawlers--> <dependency>
<!--<dependency>--> <groupId>com.loafle.overflow</groupId>
<!--<groupId>com.loafle.overflow</groupId>--> <artifactId>crawler_jmx</artifactId>
<!--<artifactId>crawler_jmx</artifactId>--> <version>1.0.0-SNAPSHOT</version>
<!--<version>1.0.0-SNAPSHOT</version>--> </dependency>
<!--</dependency>-->
<dependency> <dependency>
<groupId>com.loafle.overflow</groupId> <groupId>com.loafle.overflow</groupId>

View File

@ -1,6 +1,7 @@
package com.loafle.overflow; package com.loafle.overflow;
import com.google.protobuf.ByteString; import com.google.protobuf.ByteString;
import com.loafle.overflow.crawler.jmx.JmxCrawler;
import com.loafle.overflow.crawler.mongo.MongoCrawler; import com.loafle.overflow.crawler.mongo.MongoCrawler;
import com.loafle.overflow.crawler.redis.RedisCralwer; import com.loafle.overflow.crawler.redis.RedisCralwer;
import com.loafle.overflow.crawler.snmp.SNMPCrawler; import com.loafle.overflow.crawler.snmp.SNMPCrawler;
@ -36,8 +37,9 @@ public class Server {
addDelegate(Crawlers.SQL.name(), new SQLCrawler()); addDelegate(Crawlers.SQL.name(), new SQLCrawler());
addDelegate(Crawlers.SNMP.name(), new SNMPCrawler()); addDelegate(Crawlers.SNMP.name(), new SNMPCrawler());
addDelegate(Crawlers.REDIS.name(), new RedisCralwer()); addDelegate(Crawlers.REDIS.name(), new RedisCralwer());
addDelegate(Crawlers.MONGO.name(), new MongoCrawler()); addDelegate(Crawlers.MONGODB.name(), new MongoCrawler());
addDelegate(Crawlers.WMI.name(), new WMICrawler()); addDelegate(Crawlers.WMI.name(), new WMICrawler());
addDelegate(Crawlers.JMX.name(), new JmxCrawler());
} }
private int addDelegate(String name, Crawler crawler) { private int addDelegate(String name, Crawler crawler) {