/** {@inheritDoc} */ @Override public synchronized void start(StartContext context) throws StartException { ROOT_LOGGER.debug("Starting Host Controller Server Inventory"); try { final ProcessControllerConnectionService processControllerConnectionService = client.getValue(); URI managementURI = new URI(protocol, null, NetworkUtils.formatAddress(getNonWildCardManagementAddress()), port, null, null, null); serverInventory = new ServerInventoryImpl(domainController, environment, managementURI, processControllerConnectionService.getClient(), extensionRegistry); processControllerConnectionService.setServerInventory(serverInventory); serverCallback.getValue().setCallbackHandler(serverInventory.getServerCallbackHandler()); if (domainServerCallback != null && domainServerCallback.getValue() != null) { domainServerCallback.getValue().getServerCallbackHandlerInjector().inject(serverInventory.getServerCallbackHandler()); } futureInventory.setInventory(serverInventory); } catch (Exception e) { futureInventory.setFailure(e); throw new StartException(e); } }
/** {@inheritDoc} */ @Override public synchronized void start(StartContext context) throws StartException { ROOT_LOGGER.debug("Starting Host Controller Server Inventory"); try { final ProcessControllerConnectionService processControllerConnectionService = client.getValue(); URI managementURI = new URI(protocol, null, NetworkUtils.formatAddress(getNonWildCardManagementAddress()), port, null, null, null); serverInventory = new ServerInventoryImpl(domainController, environment, managementURI, processControllerConnectionService.getClient(), extensionRegistry); processControllerConnectionService.setServerInventory(serverInventory); serverCallback.getValue().setCallbackHandler(serverInventory.getServerCallbackHandler()); if (domainServerCallback != null && domainServerCallback.getValue() != null) { domainServerCallback.getValue().getServerCallbackHandlerInjector().inject(serverInventory.getServerCallbackHandler()); } futureInventory.setInventory(serverInventory); } catch (Exception e) { futureInventory.setFailure(e); throw new StartException(e); } }