From 6a123abcce5dde318c4700a47e10293ae4d6da0c Mon Sep 17 00:00:00 2001 From: snoop Date: Mon, 23 Apr 2018 19:59:39 +0900 Subject: [PATCH] added probe but ... fixme --- .../probe/service/ProbeHostService.java | 8 +++++++ .../module/probe/service/ProbeService.java | 22 +++++++++++++++++++ .../probe/service/ProbeTaskService.java | 11 ++++++++++ 3 files changed, 41 insertions(+) diff --git a/src/main/java/com/loafle/overflow/module/probe/service/ProbeHostService.java b/src/main/java/com/loafle/overflow/module/probe/service/ProbeHostService.java index cdf1065..4e985d5 100644 --- a/src/main/java/com/loafle/overflow/module/probe/service/ProbeHostService.java +++ b/src/main/java/com/loafle/overflow/module/probe/service/ProbeHostService.java @@ -1,7 +1,15 @@ package com.loafle.overflow.module.probe.service; +import com.loafle.overflow.module.core.exception.OverflowException; +import com.loafle.overflow.module.probe.model.Probe; +import com.loafle.overflow.module.probe.model.ProbeHost; + /** * Created by snoop on 17. 8. 21. */ public interface ProbeHostService { + //???? + ProbeHost readByProbe(Probe probe) throws OverflowException; + ProbeHost regist(ProbeHost probeHost) throws OverflowException; + } diff --git a/src/main/java/com/loafle/overflow/module/probe/service/ProbeService.java b/src/main/java/com/loafle/overflow/module/probe/service/ProbeService.java index 6f4a7f4..64574f3 100644 --- a/src/main/java/com/loafle/overflow/module/probe/service/ProbeService.java +++ b/src/main/java/com/loafle/overflow/module/probe/service/ProbeService.java @@ -1,7 +1,29 @@ package com.loafle.overflow.module.probe.service; +import com.loafle.overflow.module.core.annotation.ProbeAPI; +import com.loafle.overflow.module.core.annotation.WebappAPI; +import com.loafle.overflow.module.core.exception.OverflowException; +import com.loafle.overflow.module.domain.model.Domain; +import com.loafle.overflow.module.probe.model.Probe; + +import java.util.List; + /** * Created by snoop on 17. 6. 28. */ public interface ProbeService { + // NoauthProbe.acceptNoAuthProbe + Probe regist(Probe probe) throws OverflowException; + // NoauthProbe.acceptNoAuthProbe + List regist(List probes) throws OverflowException; + + @WebappAPI + List readAllByDomain(Domain domain) throws OverflowException; + @WebappAPI + Probe read(long id) throws OverflowException; + + @ProbeAPI //? + Probe readByProbeKey(String probeKey) throws OverflowException; + @ProbeAPI //? + Probe modify(Probe probe) throws OverflowException; } diff --git a/src/main/java/com/loafle/overflow/module/probe/service/ProbeTaskService.java b/src/main/java/com/loafle/overflow/module/probe/service/ProbeTaskService.java index 56184d0..4ae4487 100644 --- a/src/main/java/com/loafle/overflow/module/probe/service/ProbeTaskService.java +++ b/src/main/java/com/loafle/overflow/module/probe/service/ProbeTaskService.java @@ -1,7 +1,18 @@ package com.loafle.overflow.module.probe.service; +import com.loafle.overflow.module.core.annotation.ProbeAPI; +import com.loafle.overflow.module.core.exception.OverflowException; +import com.loafle.overflow.module.probe.model.Probe; +import com.loafle.overflow.module.probe.model.ProbeTask; + +import java.util.List; + /** * Created by snoop on 17. 6. 28. */ public interface ProbeTaskService { + @ProbeAPI + ProbeTask regist(ProbeTask probeTask) throws OverflowException; + @ProbeAPI + List readAllByProbe(Probe probe) throws OverflowException; }