ing
This commit is contained in:
parent
9929b63f38
commit
4b60b36b61
|
@ -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;
|
||||
}
|
|
@ -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<Infra> registDiscoverd(Long probeID, List<Host> hosts, List<Service> services) throws OverflowException;
|
||||
|
||||
@WebappAPI
|
||||
Infra read(Long id) throws OverflowException;
|
||||
|
||||
|
@ -28,10 +42,4 @@ public interface InfraService {
|
|||
|
||||
@WebappAPI
|
||||
Page<Infra> 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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
|
@ -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<InfraZone> readAllByProbeID(Long probeID) throws OverflowException;
|
||||
List<InfraZone> readAllByDomainID(Long domainID) throws OverflowException;
|
||||
}
|
Loading…
Reference in New Issue
Block a user