ing
This commit is contained in:
parent
e451a5027e
commit
289f5aea8f
2
pom.xml
2
pom.xml
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user