arranging
This commit is contained in:
@@ -8,6 +8,7 @@ import com.loafle.overflow.model.infra.InfraHost;
|
||||
*/
|
||||
|
||||
public interface InfraHostService {
|
||||
|
||||
InfraHost regist(InfraHost infraHost) throws OverflowException;
|
||||
|
||||
InfraHost read(Long id) throws OverflowException;
|
||||
|
||||
@@ -1,31 +1,27 @@
|
||||
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.infra.Infra;
|
||||
import com.loafle.overflow.model.probe.Probe;
|
||||
import com.loafle.overflow.model.target.Target;
|
||||
|
||||
import org.springframework.data.domain.Page;
|
||||
|
||||
/**
|
||||
* Created by insanity on 17. 6. 28.
|
||||
*/
|
||||
|
||||
public interface InfraService {
|
||||
|
||||
@WebappAPI
|
||||
Infra regist(Infra infra) throws OverflowException;
|
||||
|
||||
@WebappAPI
|
||||
Infra read(Long id) throws OverflowException;
|
||||
|
||||
@WebappAPI
|
||||
Page<Infra> readAllByProbeID(Long probeID, PageParams pageParams) throws OverflowException;
|
||||
|
||||
@WebappAPI
|
||||
Page<Infra> readAllByDomainID(Long domainID, PageParams pageParams) throws OverflowException;
|
||||
|
||||
List<Target> readAllTargetByDomainID(Long domainID) throws OverflowException;
|
||||
|
||||
List<Target> readAllTargetByProbes(List<Probe> probes) throws OverflowException;
|
||||
|
||||
Infra readByTargetID(Long targetID) throws OverflowException;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,13 @@
|
||||
package com.loafle.overflow.service.central.infra;
|
||||
|
||||
import com.loafle.overflow.core.exception.OverflowException;
|
||||
|
||||
/**
|
||||
* Created by insanity on 17. 6. 28.
|
||||
*/
|
||||
public interface InfraServiceService {
|
||||
|
||||
InfraService regist(InfraService infraService) throws OverflowException;
|
||||
|
||||
InfraService read(Long id) throws OverflowException;
|
||||
}
|
||||
|
||||
@@ -10,12 +10,15 @@ import com.loafle.overflow.model.probe.ProbeHost;
|
||||
* Created by snoop on 17. 8. 21.
|
||||
*/
|
||||
public interface ProbeHostService {
|
||||
ProbeHost read(Long id) throws OverflowException;
|
||||
|
||||
ProbeHost readByProbeID(Long probeID) throws OverflowException;
|
||||
|
||||
ProbeHost regist(ProbeHost probeHost) throws OverflowException;
|
||||
|
||||
@WebappAPI
|
||||
ProbeHost read(Long id) throws OverflowException;
|
||||
|
||||
@WebappAPI
|
||||
ProbeHost readByProbeID(Long probeID) throws OverflowException;
|
||||
|
||||
@WebappAPI
|
||||
List<ProbeHost> readAllByDomainID(Long domainID) throws OverflowException;
|
||||
}
|
||||
|
||||
@@ -11,11 +11,8 @@ 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<Probe> regist(List<Probe> probes) throws OverflowException;
|
||||
Probe regist(Probe probe) throws OverflowException;
|
||||
|
||||
@WebappAPI
|
||||
List<Probe> readAllByDomainID(Long id) throws OverflowException;
|
||||
@@ -23,13 +20,7 @@ public interface ProbeService {
|
||||
@WebappAPI
|
||||
Probe read(Long id) throws OverflowException;
|
||||
|
||||
@WebappAPI
|
||||
Probe modifyDisplayName(Long probeId, String displayName) throws OverflowException;
|
||||
|
||||
@ProbeAPI // ?
|
||||
Probe readByProbeKey(String probeKey) throws OverflowException;
|
||||
|
||||
@ProbeAPI // ?
|
||||
@WebappAPI
|
||||
Probe modify(Probe probe) throws OverflowException;
|
||||
|
||||
@ProbeAPI
|
||||
@@ -38,4 +29,8 @@ public interface ProbeService {
|
||||
@ProbeAPI
|
||||
void onDisconnect(String probeKey) throws OverflowException;
|
||||
|
||||
Probe increaseTargetCount(Long id) throws OverflowException;
|
||||
|
||||
Probe decreaseTargetCount(Long id) throws OverflowException;
|
||||
|
||||
}
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
package com.loafle.overflow.service.central.probe;
|
||||
|
||||
import com.loafle.overflow.core.annotation.ProbeAPI;
|
||||
import com.loafle.overflow.core.exception.OverflowException;
|
||||
import com.loafle.overflow.model.probe.ProbeTask;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by snoop on 17. 6. 28.
|
||||
*/
|
||||
public interface ProbeTaskService {
|
||||
@ProbeAPI
|
||||
ProbeTask regist(ProbeTask probeTask) throws OverflowException;
|
||||
|
||||
@ProbeAPI
|
||||
List<ProbeTask> readAllByProbeID(Long probeID) throws OverflowException;
|
||||
}
|
||||
@@ -14,13 +14,29 @@ import java.util.List;
|
||||
*/
|
||||
public interface SensorService {
|
||||
@WebappAPI
|
||||
Sensor regist(Sensor sensor) throws OverflowException;
|
||||
Sensor regist(Sensor sensor, Long targetID) throws OverflowException;
|
||||
|
||||
@WebappAPI
|
||||
Sensor read(Long id) throws OverflowException;
|
||||
|
||||
@WebappAPI
|
||||
void remove(Long id) throws OverflowException;
|
||||
void remove(Long id, Long targetID) throws OverflowException;
|
||||
|
||||
@WebappAPI
|
||||
Page<Sensor> readAllByProbeID(Long probeID, PageParams pageParams) throws OverflowException;
|
||||
|
||||
@WebappAPI
|
||||
Page<Sensor> readAllByDomainID(Long domainID, PageParams pageParams) throws OverflowException;
|
||||
|
||||
@WebappAPI
|
||||
Page<Sensor> readAllByInfraID(Long infraID, PageParams pageParams) throws OverflowException;
|
||||
|
||||
@WebappAPI
|
||||
Page<Sensor> readAllByTargetID(Long targetID, PageParams pageParams) throws OverflowException;
|
||||
|
||||
Sensor increaseSensorItemCount(Long id) throws OverflowException;
|
||||
|
||||
Sensor decreaseSensorItemCount(Long id) throws OverflowException;
|
||||
|
||||
@WebappAPI
|
||||
Sensor start(Long id) throws OverflowException;
|
||||
@@ -34,12 +50,4 @@ public interface SensorService {
|
||||
@WebappAPI
|
||||
String generateSensorConfig(Sensor sensor) throws OverflowException;
|
||||
|
||||
@WebappAPI
|
||||
Page<Sensor> readAllByDomainID(Long domainID, PageParams pageParams) throws OverflowException;
|
||||
|
||||
@WebappAPI
|
||||
Page<Sensor> readAllByInfraID(Long infraID, PageParams pageParams) throws OverflowException;
|
||||
|
||||
@WebappAPI
|
||||
Page<Sensor> readAllByTargetID(Long targetID, PageParams pageParams) throws OverflowException;
|
||||
}
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
package com.loafle.overflow.service.central.target;
|
||||
|
||||
import com.loafle.overflow.core.annotation.WebappAPI;
|
||||
import com.loafle.overflow.core.exception.OverflowException;
|
||||
import com.loafle.overflow.model.discovery.Host;
|
||||
import com.loafle.overflow.model.probe.Probe;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by snoop on 17. 6. 28.
|
||||
*/
|
||||
public interface TargetDiscoveryService {
|
||||
|
||||
@WebappAPI
|
||||
boolean saveAllTarget(List<Host> hosts, Probe probe) throws OverflowException;
|
||||
}
|
||||
@@ -16,33 +16,32 @@ import org.springframework.data.domain.Page;
|
||||
*/
|
||||
public interface TargetService {
|
||||
|
||||
public Target regist(Target target, Probe probe) throws OverflowException;
|
||||
|
||||
public void remove(Target target, Probe probe) throws OverflowException;
|
||||
|
||||
public Target read(String id) throws OverflowException;
|
||||
|
||||
public Target increaseSensorCount(Target target) throws OverflowException;
|
||||
|
||||
public Target decreaseSensorCount(Target target) throws OverflowException;
|
||||
Target regist(Target target, String probeID) throws OverflowException;
|
||||
|
||||
@WebappAPI
|
||||
public Target modify(Target target) throws OverflowException;
|
||||
void remove(Target target, String probeID) throws OverflowException;
|
||||
|
||||
@WebappAPI
|
||||
void remove(Target target) throws OverflowException;
|
||||
Target read(Long id) throws OverflowException;
|
||||
|
||||
@WebappAPI
|
||||
public List<Target> registDiscoveredTargets(Long probeId, List<Host> hosts, List<Service> services)
|
||||
Target modify(Target target) throws OverflowException;
|
||||
|
||||
@WebappAPI
|
||||
List<Target> registDiscoveredTargets(Long probeId, List<Host> hosts, List<Service> services)
|
||||
throws OverflowException;
|
||||
|
||||
@WebappAPI
|
||||
public Target readExistHostTarget(Long probeId, String ip) throws OverflowException;
|
||||
Target readExistHostTarget(Long probeId, String ip) throws OverflowException;
|
||||
|
||||
@WebappAPI
|
||||
public Target readExistServiceTarget(Long hostId, int portNumber, String portType) throws OverflowException;
|
||||
Target readExistServiceTarget(Long hostId, int portNumber, String portType) throws OverflowException;
|
||||
|
||||
@WebappAPI
|
||||
public Page<Target> readAllByProbeID(Long probeID, PageParams pageParams) throws OverflowException;
|
||||
Page<Target> readAllByProbeID(Long probeID, PageParams pageParams) throws OverflowException;
|
||||
|
||||
Target increaseSensorCount(Long id) throws OverflowException;
|
||||
|
||||
Target decreaseSensorCount(Long id) throws OverflowException;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user