diff --git a/pom.xml b/pom.xml
index 9ae4a3a..99628f8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -11,10 +11,8 @@
com.loafle.overflow
- crawler.sql
- jar
+ crawler_sql
1.0.0-SNAPSHOT
- com.loafle.overflow.crawler.sql
diff --git a/src/main/java/com/loafle/overflow/crawler/sql/SQLCrawler.java b/src/main/java/com/loafle/overflow/crawler/sql/SQLCrawler.java
index d1ffb33..422f9ed 100644
--- a/src/main/java/com/loafle/overflow/crawler/sql/SQLCrawler.java
+++ b/src/main/java/com/loafle/overflow/crawler/sql/SQLCrawler.java
@@ -15,55 +15,25 @@ public class SQLCrawler extends Crawler {
public SQLCrawler() {}
-
@Override
- protected Object getInternal(Map config) {
- TargetInfo info = getTargetInfo(config.get("id").toString());
- return getMetrics(info);
+ public Object getInternal(Map config) {
+ return getMetrics(config);
}
- private TargetInfo getTargetInfo(String id) {
- TargetInfo info = new TargetInfo();
-// //MySQL
-// info.setUrl("jdbc:mysql://192.168.1.215:3306"); // ?useSSL=true&verifyServerCertificate=false
-// info.setId("root");
-// info.setPw("qwe123");
-// info.setSSL(false);
-// info.setQuery("show session status");
-// //MSSQL
- info.setUrl("jdbc:sqlserver://192.168.1.103:1433;integratedSecurity=SSPI;encrypt=false;trustServerCertificate=true");
- info.setId("sa");
- info.setPw("qwer5795");
- info.setSSL(true);
- info.setQuery("select * from master.dbo.sysprocesses");
-// //PGSQL
-// info.setUrl("jdbc:postgresql://192.168.1.107:5432/postgres");
-// info.setId("postgres");
-// info.setPw("!@#$qwer1234");
-// info.setSSL(false);
-// info.setQuery("select * from pg_stat_activity");
-// //Oracle
-// info.setUrl("jdbc:oracle:thin:@192.168.1.30:1521/oracle.loafle.com");
-// info.setId("sys as sysdba");
-// info.setPw("qwer5795QWER");
-// info.setSSL(false);
-// info.setQuery("select * from v$sysstat");
-
- return info;
- }
-
- private List