From 4b60b36b618c43942fc42c82282fea4a38d4c8f4 Mon Sep 17 00:00:00 2001 From: crusader Date: Mon, 11 Jun 2018 16:26:54 +0900 Subject: [PATCH] ing --- .../central/infra/InfraHostService.java | 17 ---------------- .../service/central/infra/InfraService.java | 20 +++++++++++++------ .../central/infra/InfraServiceService.java | 13 ------------ .../central/infra/InfraZoneService.java | 17 ---------------- 4 files changed, 14 insertions(+), 53 deletions(-) delete mode 100644 src/main/java/com/loafle/overflow/service/central/infra/InfraHostService.java delete mode 100644 src/main/java/com/loafle/overflow/service/central/infra/InfraServiceService.java delete mode 100644 src/main/java/com/loafle/overflow/service/central/infra/InfraZoneService.java diff --git a/src/main/java/com/loafle/overflow/service/central/infra/InfraHostService.java b/src/main/java/com/loafle/overflow/service/central/infra/InfraHostService.java deleted file mode 100644 index 7a5f992..0000000 --- a/src/main/java/com/loafle/overflow/service/central/infra/InfraHostService.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.loafle.overflow.service.central.infra; - -import com.loafle.overflow.core.exception.OverflowException; -import com.loafle.overflow.model.infra.InfraHost; - -/** - * Created by insanity on 17. 6. 28. - */ - -public interface InfraHostService { - InfraHost regist(InfraHost infraHost) throws OverflowException; - InfraHost read(Long id) throws OverflowException; - InfraHost readByProbeIdAndInfraHostIPsAddressAndMetaIPTypeKey( - String probeID, - String address, - String ipTypeKey) throws OverflowException; -} \ No newline at end of file diff --git a/src/main/java/com/loafle/overflow/service/central/infra/InfraService.java b/src/main/java/com/loafle/overflow/service/central/infra/InfraService.java index dcd30fa..d12f243 100644 --- a/src/main/java/com/loafle/overflow/service/central/infra/InfraService.java +++ b/src/main/java/com/loafle/overflow/service/central/infra/InfraService.java @@ -7,8 +7,10 @@ import com.loafle.overflow.core.exception.OverflowException; import com.loafle.overflow.core.model.PageParams; import com.loafle.overflow.model.discovery.Host; import com.loafle.overflow.model.discovery.Service; +import com.loafle.overflow.model.discovery.Zone; import com.loafle.overflow.model.infra.Infra; import com.loafle.overflow.model.infra.InfraHost; +import com.loafle.overflow.model.infra.InfraZone; import org.springframework.data.domain.Page; @@ -20,6 +22,18 @@ public interface InfraService { @WebappAPI Infra regist(Infra infra) throws OverflowException; + @WebappAPI + InfraZone registZone(Long probeID, Zone zone) throws OverflowException; + + @WebappAPI + InfraHost registHost(Long probeID, Host host) throws OverflowException; + + @WebappAPI + InfraService registService(Long probeID, Service service) throws OverflowException; + + @WebappAPI + List registDiscoverd(Long probeID, List hosts, List services) throws OverflowException; + @WebappAPI Infra read(Long id) throws OverflowException; @@ -28,10 +42,4 @@ public interface InfraService { @WebappAPI Page readAllByDomainID(Long domainID, PageParams pageParams) throws OverflowException; - - @WebappAPI - InfraHost regist(Long probeID, Host host) throws OverflowException; - - @WebappAPI - InfraService regist(Long probeID, Service service) throws OverflowException; } diff --git a/src/main/java/com/loafle/overflow/service/central/infra/InfraServiceService.java b/src/main/java/com/loafle/overflow/service/central/infra/InfraServiceService.java deleted file mode 100644 index c62fcf1..0000000 --- a/src/main/java/com/loafle/overflow/service/central/infra/InfraServiceService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.loafle.overflow.service.central.infra; - -import com.loafle.overflow.core.exception.OverflowException; -import com.loafle.overflow.model.infra.InfraService; - -/** - * Created by insanity on 17. 6. 28. - */ -public interface InfraServiceService { - - InfraService regist(InfraService infraService) throws OverflowException; - InfraService read(Long id) throws OverflowException; -} diff --git a/src/main/java/com/loafle/overflow/service/central/infra/InfraZoneService.java b/src/main/java/com/loafle/overflow/service/central/infra/InfraZoneService.java deleted file mode 100644 index 35942ff..0000000 --- a/src/main/java/com/loafle/overflow/service/central/infra/InfraZoneService.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.loafle.overflow.service.central.infra; - -import java.util.List; - -import com.loafle.overflow.core.exception.OverflowException; -import com.loafle.overflow.model.infra.InfraZone; - -/** - * Created by insanity on 17. 6. 28. - */ - -public interface InfraZoneService { - InfraZone regist(InfraZone infraZone) throws OverflowException; - InfraZone read(Long id) throws OverflowException; - List readAllByProbeID(Long probeID) throws OverflowException; - List readAllByDomainID(Long domainID) throws OverflowException; -}