private Future<ServerInventory> installServerInventory(final ServiceTarget serviceTarget) { if (hostControllerInfo.getHttpManagementSecureInterface() != null && !hostControllerInfo.getHttpManagementSecureInterface().isEmpty() && hostControllerInfo.getHttpManagementSecurePort() > 0) { return ServerInventoryService.install(serviceTarget, this, runningModeControl, environment, extensionRegistry, hostControllerInfo.getHttpManagementSecureInterface(), hostControllerInfo.getHttpManagementSecurePort(), REMOTE_HTTPS.toString()); } if (hostControllerInfo.getNativeManagementInterface() != null && !hostControllerInfo.getNativeManagementInterface().isEmpty() && hostControllerInfo.getNativeManagementPort() > 0) { return ServerInventoryService.install(serviceTarget, this, runningModeControl, environment, extensionRegistry, hostControllerInfo.getNativeManagementInterface(), hostControllerInfo.getNativeManagementPort(), REMOTE.toString()); } if (processType == ProcessType.EMBEDDED_HOST_CONTROLLER) { return getPlaceHolderInventory(); } return ServerInventoryService.install(serviceTarget, this, runningModeControl, environment, extensionRegistry, hostControllerInfo.getHttpManagementInterface(), hostControllerInfo.getHttpManagementPort(), REMOTE_HTTP.toString()); }
private Future<ServerInventory> installServerInventory(final ServiceTarget serviceTarget) { if (hostControllerInfo.getHttpManagementSecureInterface() != null && !hostControllerInfo.getHttpManagementSecureInterface().isEmpty() && hostControllerInfo.getHttpManagementSecurePort() > 0) { return ServerInventoryService.install(serviceTarget, this, runningModeControl, environment, extensionRegistry, hostControllerInfo.getHttpManagementSecureInterface(), hostControllerInfo.getHttpManagementSecurePort(), REMOTE_HTTPS.toString()); } if (hostControllerInfo.getNativeManagementInterface() != null && !hostControllerInfo.getNativeManagementInterface().isEmpty() && hostControllerInfo.getNativeManagementPort() > 0) { return ServerInventoryService.install(serviceTarget, this, runningModeControl, environment, extensionRegistry, hostControllerInfo.getNativeManagementInterface(), hostControllerInfo.getNativeManagementPort(), REMOTE.toString()); } if (processType == ProcessType.EMBEDDED_HOST_CONTROLLER) { return getPlaceHolderInventory(); } return ServerInventoryService.install(serviceTarget, this, runningModeControl, environment, extensionRegistry, hostControllerInfo.getHttpManagementInterface(), hostControllerInfo.getHttpManagementPort(), REMOTE_HTTP.toString()); }