From 6045f9c3f49eb8a7ac4c9aef4eb60499312aa4a0 Mon Sep 17 00:00:00 2001 From: snoop Date: Wed, 23 Aug 2017 14:10:57 +0900 Subject: [PATCH] fix ing infra create --- .../service/TargetDiscoveryService.java | 28 +++++++------------ 1 file changed, 10 insertions(+), 18 deletions(-) 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; + } + + + + }