private boolean bootEmptyConfig(final BootContext context) throws OperationFailedException, ConfigurationPersistenceException { HostControllerLogger.ROOT_LOGGER.debug("Invoking initial empty config host controller boot"); boolean ok = boot(Collections.singletonList(registerModelControllerServiceInitializationBootStep(context)), true, true); // until a host is added with the host add op, there is no root description provider delegate. We just install a non-resolving one for now, so the // CLI doesn't get a lot of NPEs from :read-resource-description etc. SimpleResourceDefinition def = new SimpleResourceDefinition(new SimpleResourceDefinition.Parameters(null, new NonResolvingResourceDescriptionResolver())); rootResourceDefinition.setFakeDelegate(def); // just initialize the persister and return, we have to wait for /host=foo:add() hostControllerConfigurationPersister.initializeDomainConfigurationPersister(false); return ok; }
HostControllerLogger.ROOT_LOGGER.debug("Invoking the initial host=foo:add() op"); ok = boot(Collections.singletonList(addHostOp), true, true); ok = boot(hostBootOps, true, true, new MutableRootResourceRegistrationProvider() { public ManagementResourceRegistration getRootResourceRegistrationForUpdate(OperationContext context) { return hostModelRegistration; ok = boot(domainBootOps, false); domainConfigAvailable.set(ok);
HostControllerLogger.ROOT_LOGGER.debug("Invoking the initial host=foo:add() op"); ok = boot(Collections.singletonList(addHostOp), true, true); ok = boot(hostBootOps, true, true, new MutableRootResourceRegistrationProvider() { public ManagementResourceRegistration getRootResourceRegistrationForUpdate(OperationContext context) { return hostModelRegistration; ok = boot(domainBootOps, false); domainConfigAvailable.set(ok);
private boolean bootEmptyConfig(final BootContext context) throws OperationFailedException, ConfigurationPersistenceException { HostControllerLogger.ROOT_LOGGER.debug("Invoking initial empty config host controller boot"); boolean ok = boot(Collections.singletonList(registerModelControllerServiceInitializationBootStep(context)), true, true); // until a host is added with the host add op, there is no root description provider delegate. We just install a non-resolving one for now, so the // CLI doesn't get a lot of NPEs from :read-resource-description etc. SimpleResourceDefinition def = new SimpleResourceDefinition(new SimpleResourceDefinition.Parameters(null, new NonResolvingResourceDescriptionResolver())); rootResourceDefinition.setFakeDelegate(def); // just initialize the persister and return, we have to wait for /host=foo:add() hostControllerConfigurationPersister.initializeDomainConfigurationPersister(false); return ok; }