fixed
Crawler
This commit is contained in:
parent
c5f431116c
commit
cd1eaa16f8
12
pom.xml
12
pom.xml
|
@ -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>
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user