diff --git a/src/main/java/com/loafle/overflow/module/target/service/TargetDiscoveryService.java b/src/main/java/com/loafle/overflow/module/target/service/TargetDiscoveryService.java index 5b9b66c..12f3b8b 100644 --- a/src/main/java/com/loafle/overflow/module/target/service/TargetDiscoveryService.java +++ b/src/main/java/com/loafle/overflow/module/target/service/TargetDiscoveryService.java @@ -95,16 +95,6 @@ public class TargetDiscoveryService { this.infraHostService.regist(infraHost); -// Infra infraByHost = Infra.CreateInfraByType(infraHost.getId(), InfraHost.class); -// this.infraDAO.save(infraByHost); - -// if(host.isTarget()) { -// Target targetHost = new Target(); -//// targetHost.setInfra(infraByHost); -//// targetHost.setProbe(probe); -// this.targetDAO.save(targetHost); -// } - if(host.getPorts() == null) { continue; } @@ -126,9 +116,6 @@ public class TargetDiscoveryService { infraOSPort.setVendor(MetaInfraVendor.CreateInfraVendorByPort(port.getPortNumber())); this.infraOSPortService.regist(infraOSPort); -// Infra infraByPort = Infra.CreateInfraByType(infraOSPort.getId(), InfraOSPort.class); -// this.infraDAO.save(infraByPort); - if(port.getServices() == null) { continue; } @@ -158,11 +145,6 @@ public class TargetDiscoveryService { this.infraServiceService.regist(infraService); -// Infra infraByService = Infra.CreateInfraByType(infraService.getId(), InfraService.class); -// this.infraDAO.save(infraByService); - - - } } @@ -171,4 +153,14 @@ public class TargetDiscoveryService { } } + + private InfraHost createAndReadHost(Host host, Probe probe) { + + + return null; + } + + + + }