@Override protected void initModel(Resource rootResource, ManagementResourceRegistration rootRegistration) { HostModelUtil.createRootRegistry( rootRegistration, environment, ignoredRegistry, this, processType); VersionModelInitializer.registerRootResource( rootResource, environment != null ? environment.getProductConfig() : null); this.modelNodeRegistration = rootRegistration; }
@Override public void initCoreModel( Resource rootResource, ManagementResourceRegistration rootRegistration, Resource modelControllerResource) { HostModelUtil.createRootRegistry( rootRegistration, env, ignoredRegistry, new HostModelRegistrar() { @Override public void registerHostModel( String hostName, ManagementResourceRegistration rootRegistration) {} }, ProcessType.HOST_CONTROLLER, authorizer, modelControllerResource); HostModelUtil.createHostRegistry( hostName, rootRegistration, persister, env, (HostRunningModeControl) runningModeControl, hostFileRepository, info, null /*serverInventory*/, null /*remoteFileRepository*/, injectedContentRepository.getValue(), domainController, extensionRegistry, null /*vaultReader*/, ignoredRegistry, processState, pathManagerService, authorizer, AuditLogger.NO_OP_LOGGER, getBootErrorCollector()); }
public HttpManagementResourceDefinition( final LocalHostControllerInfoImpl hostControllerInfo, final HostControllerEnvironment environment) { super( RESOURCE_PATH, HostModelUtil.getResourceDescriptionResolver("core", "management", "http-interface"), new HttpManagementAddHandler(hostControllerInfo, environment), new HttpManagementRemoveHandler(hostControllerInfo, environment), OperationEntry.Flag.RESTART_NONE, OperationEntry.Flag.RESTART_NONE); this.hostControllerInfo = hostControllerInfo; this.environment = environment; this.accessConstraints = SensitiveTargetAccessConstraintDefinition.MANAGEMENT_INTERFACES.wrapAsList(); }
@Override public void initCoreModel( Resource rootResource, ManagementResourceRegistration rootRegistration, Resource modelControllerResource) { VersionModelInitializer.registerRootResource(rootResource, null); final HostControllerEnvironment env = createHostControllerEnvironment(); final LocalHostControllerInfoImpl info = createLocalHostControllerInfo(env); final IgnoredDomainResourceRegistry ignoredRegistry = new IgnoredDomainResourceRegistry(info); final ExtensibleConfigurationPersister persister = new NullConfigurationPersister(); final HostFileRepository hostFileRepository = createHostFileRepository(); final DomainController domainController = new MockDomainController(); DomainRootDefinition domainDefinition = new DomainRootDefinition( domainController, env, persister, injectedContentRepository.getValue(), hostFileRepository, true, info, extensionRegistry, null, pathManagerService, null, authorizer, null, getMutableRootResourceRegistrationProvider()); domainDefinition.initialize(rootRegistration); rootResourceDefinition.setDelegate(domainDefinition); HostModelUtil.createRootRegistry( rootRegistration, env, ignoredRegistry, new HostModelRegistrar() { @Override public void registerHostModel(String hostName, ManagementResourceRegistration root) {} }, processType, authorizer, modelControllerResource); CoreManagementResourceDefinition.registerDomainResource(rootResource, null); }
@Override protected void initModel(Resource rootResource, ManagementResourceRegistration rootRegistration) { DomainModelUtil.updateCoreModel(rootResource.getModel()); HostModelUtil.createHostRegistry( rootRegistration, hostControllerConfigurationPersister, environment, runningModeControl, localFileRepository, hostControllerInfo, new DelegatingServerInventory(), remoteFileRepository, this, this, vaultReader); this.modelNodeRegistration = rootRegistration; }
@Override public void registerHostModel(String hostName, ManagementResourceRegistration root) { HostModelUtil.createHostRegistry( hostName, root, hostControllerConfigurationPersister, environment, runningModeControl, localFileRepository, hostControllerInfo, new DelegatingServerInventory(), remoteFileRepository, contentRepository, this, extensionRegistry, vaultReader, ignoredRegistry, processState, pathManager); }
public HostResourceDefinition( final String hostName, final HostControllerConfigurationPersister configurationPersister, final HostControllerEnvironment environment, final HostRunningModeControl runningModeControl, final HostFileRepository localFileRepository, final LocalHostControllerInfoImpl hostControllerInfo, final ServerInventory serverInventory, final HostFileRepository remoteFileRepository, final ContentRepository contentRepository, final DomainController domainController, final ExtensionRegistry extensionRegistry, final AbstractVaultReader vaultReader, final IgnoredDomainResourceRegistry ignoredRegistry, final ControlledProcessState processState, final PathManagerService pathManager, final DelegatingConfigurableAuthorizer authorizer, final ManagedAuditLogger auditLogger, final BootErrorCollector bootErrorCollector) { super(PathElement.pathElement(HOST, hostName), HostModelUtil.getResourceDescriptionResolver()); this.configurationPersister = configurationPersister; this.environment = environment; this.runningModeControl = runningModeControl; this.localFileRepository = localFileRepository; this.hostControllerInfo = hostControllerInfo; this.serverInventory = serverInventory; this.remoteFileRepository = remoteFileRepository; this.contentRepository = contentRepository; this.domainController = domainController; this.extensionRegistry = extensionRegistry; this.vaultReader = vaultReader; this.ignoredRegistry = ignoredRegistry; this.processState = processState; this.pathManager = pathManager; this.authorizer = authorizer; this.auditLogger = auditLogger; this.bootErrorCollector = bootErrorCollector; }