From 16335dc1ccf450cee94299cf2b8af8ab451fb59d Mon Sep 17 00:00:00 2001 From: crusader Date: Tue, 24 Apr 2018 22:19:01 +0900 Subject: [PATCH] ing --- .../service/container/CrawlerService.java | 16 ++++++++++++++ .../service/container/ProbeService.java | 7 +++++++ .../container/SensorConfigService.java | 21 +++++++++++++++++++ 3 files changed, 44 insertions(+) create mode 100644 src/main/java/com/loafle/overflow/service/container/CrawlerService.java create mode 100644 src/main/java/com/loafle/overflow/service/container/ProbeService.java create mode 100644 src/main/java/com/loafle/overflow/service/container/SensorConfigService.java diff --git a/src/main/java/com/loafle/overflow/service/container/CrawlerService.java b/src/main/java/com/loafle/overflow/service/container/CrawlerService.java new file mode 100644 index 0000000..6873c44 --- /dev/null +++ b/src/main/java/com/loafle/overflow/service/container/CrawlerService.java @@ -0,0 +1,16 @@ +package com.loafle.overflow.service.container; + +import java.util.Map; + +import com.loafle.overflow.core.annotation.ProbeAPI; +import com.loafle.overflow.core.exception.OverflowException; + +/** + * CrawlerService + */ +public interface CrawlerService { + @ProbeAPI + void Auth(String crawlerName, Map authInfoMap) throws OverflowException; + @ProbeAPI + Map Get(String sensorConfigID) throws OverflowException; +} \ No newline at end of file diff --git a/src/main/java/com/loafle/overflow/service/container/ProbeService.java b/src/main/java/com/loafle/overflow/service/container/ProbeService.java new file mode 100644 index 0000000..1b6eb78 --- /dev/null +++ b/src/main/java/com/loafle/overflow/service/container/ProbeService.java @@ -0,0 +1,7 @@ +package com.loafle.overflow.service.container; + +/** + * ProbeService + */ +public interface ProbeService { +} \ No newline at end of file diff --git a/src/main/java/com/loafle/overflow/service/container/SensorConfigService.java b/src/main/java/com/loafle/overflow/service/container/SensorConfigService.java new file mode 100644 index 0000000..1a904cc --- /dev/null +++ b/src/main/java/com/loafle/overflow/service/container/SensorConfigService.java @@ -0,0 +1,21 @@ +package com.loafle.overflow.service.container; + +import java.util.List; + +import com.loafle.overflow.core.annotation.ProbeAPI; +import com.loafle.overflow.core.exception.OverflowException; +import com.loafle.overflow.model.sensorconfig.SensorConfig; + +/** + * SensorConfigService + */ +public interface SensorConfigService { + @ProbeAPI + void InitConfig(List sensorConfigs) throws OverflowException; + @ProbeAPI + void AddConfig(SensorConfig sensorConfig) throws OverflowException; + @ProbeAPI + void UpdateConfig(SensorConfig sensorConfig) throws OverflowException; + @ProbeAPI + void RemoveConfig(String configID) throws OverflowException; +} \ No newline at end of file