From cd1eaa16f8c9b7995bddb6ef138b0fe983fc2773 Mon Sep 17 00:00:00 2001 From: snoop Date: Wed, 12 Apr 2017 11:35:29 +0900 Subject: [PATCH] fixed Crawler --- pom.xml | 12 +++++++ .../com/loafle/overflow/rpc/api/Remote.java | 4 +-- .../loafle/overflow/rpc/api/RemoteImpl.java | 4 --- .../loafle/overflow/rpc/crawler/Crawler.java | 32 ------------------- 4 files changed, 13 insertions(+), 39 deletions(-) delete mode 100644 src/main/java/com/loafle/overflow/rpc/crawler/Crawler.java diff --git a/pom.xml b/pom.xml index 09f2c3b..179fefa 100644 --- a/pom.xml +++ b/pom.xml @@ -20,6 +20,11 @@ + + org.snmp4j + snmp4j + 2.5.0 + org.springframework.boot spring-boot-starter-web @@ -39,6 +44,13 @@ org.springframework.boot spring-boot-starter-jetty + + + com.loafle.overflow + crawler_java + 1.0.0-SNAPSHOT + + \ No newline at end of file diff --git a/src/main/java/com/loafle/overflow/rpc/api/Remote.java b/src/main/java/com/loafle/overflow/rpc/api/Remote.java index ebc349d..31e1fc7 100644 --- a/src/main/java/com/loafle/overflow/rpc/api/Remote.java +++ b/src/main/java/com/loafle/overflow/rpc/api/Remote.java @@ -1,11 +1,9 @@ package com.loafle.overflow.rpc.api; -import com.fasterxml.jackson.core.JsonProcessingException; - import com.googlecode.jsonrpc4j.JsonRpcMethod; import com.googlecode.jsonrpc4j.JsonRpcService; -import com.loafle.overflow.rpc.crawler.Crawler; +import com.loafle.overflow.crawler.Crawler; import com.loafle.overflow.rpc.model.Input; import com.loafle.overflow.rpc.model.Output; diff --git a/src/main/java/com/loafle/overflow/rpc/api/RemoteImpl.java b/src/main/java/com/loafle/overflow/rpc/api/RemoteImpl.java index f1920de..2135edc 100644 --- a/src/main/java/com/loafle/overflow/rpc/api/RemoteImpl.java +++ b/src/main/java/com/loafle/overflow/rpc/api/RemoteImpl.java @@ -1,11 +1,7 @@ package com.loafle.overflow.rpc.api; -import com.fasterxml.jackson.core.JsonEncoding; -import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; -import com.fasterxml.jackson.databind.util.JSONPObject; import com.googlecode.jsonrpc4j.spring.AutoJsonRpcServiceImpl; -import com.loafle.overflow.rpc.crawler.Crawler; import com.loafle.overflow.rpc.model.Input; import com.loafle.overflow.rpc.model.Output; import org.springframework.stereotype.Service; diff --git a/src/main/java/com/loafle/overflow/rpc/crawler/Crawler.java b/src/main/java/com/loafle/overflow/rpc/crawler/Crawler.java deleted file mode 100644 index 20c4a7c..0000000 --- a/src/main/java/com/loafle/overflow/rpc/crawler/Crawler.java +++ /dev/null @@ -1,32 +0,0 @@ -package com.loafle.overflow.rpc.crawler; - - - -/** - * Created by root on 17. 4. 10. - */ -public abstract class Crawler { - - public Object add(String id) throws Exception { - - return null; - } - - public abstract Object get(String id) throws Exception ; - - public Object getConfig(String id) throws Exception { - - return null; - } - - public Object init(String config) throws Exception { - - return null; - } - - public Object remove(String id) throws Exception { - - return null; - } - -}