Crawler
This commit is contained in:
snoop 2017-04-12 11:35:29 +09:00
parent c5f431116c
commit cd1eaa16f8
4 changed files with 13 additions and 39 deletions

12
pom.xml
View File

@ -20,6 +20,11 @@
</parent>
<dependencies>
<dependency>
<groupId>org.snmp4j</groupId>
<artifactId>snmp4j</artifactId>
<version>2.5.0</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
@ -39,6 +44,13 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jetty</artifactId>
</dependency>
<dependency>
<groupId>com.loafle.overflow</groupId>
<artifactId>crawler_java</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
</dependencies>
</project>

View File

@ -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;

View File

@ -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;

View File

@ -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;
}
}