This commit is contained in:
crusader 2018-06-10 20:34:41 +09:00
parent e451a5027e
commit 289f5aea8f
4 changed files with 22 additions and 3 deletions

View File

@ -13,7 +13,7 @@
<groupId>com.loafle.overflow</groupId>
<artifactId>commons-java</artifactId>
<packaging>jar</packaging>
<version>1.0.18-SNAPSHOT</version>
<version>1.0.19-SNAPSHOT</version>
<name>com.loafle.overflow.commons-java</name>
<properties>

View File

@ -1,5 +1,7 @@
package com.loafle.overflow.service.central.infra;
import java.util.List;
import com.loafle.overflow.core.exception.OverflowException;
import com.loafle.overflow.model.infra.InfraHostIP;
@ -9,6 +11,13 @@ import com.loafle.overflow.model.infra.InfraHostIP;
public interface InfraHostIPService {
InfraHostIP regist(InfraHostIP infraHostIP) throws OverflowException;
InfraHostIP read(Long id) throws OverflowException;
InfraHostIP readByAddressAndMetaIPTypeKey(String address, String ipTypeKey) throws OverflowException;
List<InfraHostIP> readByInfraHostID(Long infraHostID) throws OverflowException;
List<InfraHostIP> readByInfraHostIDAndMetaIPTypeKey(Long infraHostID, String metaIPTypeKey) throws OverflowException;
InfraHostIP readByInfraHostIDAndMetaIPTypeKeyAndAddress(Long infraHostID, String metaIPTypeKey, String address)
throws OverflowException;
}

View File

@ -1,9 +1,14 @@
package com.loafle.overflow.service.central.infra;
import java.util.List;
import com.loafle.overflow.core.annotation.WebappAPI;
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.infra.Infra;
import com.loafle.overflow.model.infra.InfraZone;
import org.springframework.data.domain.Page;
@ -24,4 +29,6 @@ public interface InfraService {
@WebappAPI
Page<Infra> readAllByDomainID(Long domainID, PageParams pageParams) throws OverflowException;
@WebappAPI
InfraZone regist(Long probeID, List<Host> hosts, List<Service> services) throws OverflowException;
}

View File

@ -1,5 +1,7 @@
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;
@ -10,5 +12,6 @@ import com.loafle.overflow.model.infra.InfraZone;
public interface InfraZoneService {
InfraZone regist(InfraZone infraZone) throws OverflowException;
InfraZone read(Long id) throws OverflowException;
InfraZone readAllByDomainID(Long domainID) throws OverflowException;
List<InfraZone> readAllByProbeID(Long probeID) throws OverflowException;
List<InfraZone> readAllByDomainID(Long domainID) throws OverflowException;
}