This commit is contained in:
insanity 2018-04-27 16:38:24 +09:00
parent 8799462ec2
commit dea99696c4

View File

@ -87,7 +87,7 @@ public class CentralTargetDiscoveryService implements TargetDiscoveryService{
if(service.isTarget() && dbInfraService.getTarget() == null) {
Target targetService = new Target();
targetService.setDisplayName(service.getServiceName());
this.targetService.regist(targetService);
this.targetService.regist(targetService, probe);
dbInfraService.setTarget(targetService);
this.infraServiceService.regist(dbInfraService);
}
@ -109,7 +109,7 @@ public class CentralTargetDiscoveryService implements TargetDiscoveryService{
if(service.isTarget()) {
Target targetService = new Target();
targetService.setDisplayName(service.getServiceName());
this.targetService.regist(targetService);
this.targetService.regist(targetService, probe);
infraService.setTarget(targetService);
}
@ -175,7 +175,7 @@ public class CentralTargetDiscoveryService implements TargetDiscoveryService{
Target target = new Target();
target.setDisplayName(host.getIpv4() + "-Host");
this.targetService.regist(target);
this.targetService.regist(target, probe);
infraHost.setTarget(target);
this.infraHostService.regist(infraHost);
}
@ -217,7 +217,7 @@ public class CentralTargetDiscoveryService implements TargetDiscoveryService{
Target target = new Target();
target.setDisplayName(host.getIpv4() + "-Host");
this.targetService.regist(target);
this.targetService.regist(target, probe);
newInfraHost.setTarget(target);
}