public static ServiceController<?> addService(ServiceTarget serviceTarget, HostPathManagerService service, HostControllerEnvironment hostEnvironment) { ServiceBuilder<?> serviceBuilder = serviceTarget.addService(SERVICE_NAME, service); service.addHardcodedAbsolutePath(serviceTarget, HostControllerEnvironment.HOME_DIR, hostEnvironment.getHomeDir().getAbsolutePath()); service.addHardcodedAbsolutePath(serviceTarget, HostControllerEnvironment.DOMAIN_CONFIG_DIR, hostEnvironment.getDomainConfigurationDir().getAbsolutePath()); service.addHardcodedAbsolutePath(serviceTarget, HostControllerEnvironment.DOMAIN_DATA_DIR, hostEnvironment.getDomainDataDir().getAbsolutePath()); service.addHardcodedAbsolutePath(serviceTarget, HostControllerEnvironment.DOMAIN_LOG_DIR, hostEnvironment.getDomainLogDir().getAbsolutePath()); service.addHardcodedAbsolutePath(serviceTarget, HostControllerEnvironment.DOMAIN_TEMP_DIR, hostEnvironment.getDomainTempDir().getAbsolutePath()); service.addHardcodedAbsolutePath(serviceTarget, HostControllerEnvironment.CONTROLLER_TEMP_DIR, hostEnvironment.getDomainTempDir().getAbsolutePath()); return serviceBuilder.install(); } }
directoryGrouping, environment.getDomainTempDir(), serverDir); addPathProperty(command, "data", ServerEnvironment.SERVER_DATA_DIR, bootTimeProperties, directoryGrouping, environment.getDomainDataDir(), serverDir);
directoryGrouping, environment.getDomainTempDir(), serverDir); final String dataDir = addPathProperty(command, "data", ServerEnvironment.SERVER_DATA_DIR, bootTimeProperties, directoryGrouping, environment.getDomainDataDir(), serverDir);
directoryGrouping, environment.getDomainTempDir(), serverDir); final String dataDir = addPathProperty(command, "data", ServerEnvironment.SERVER_DATA_DIR, bootTimeProperties, directoryGrouping, environment.getDomainDataDir(), serverDir);
public static ServiceController<?> addService(ServiceTarget serviceTarget, HostPathManagerService service, HostControllerEnvironment hostEnvironment) { ServiceBuilder<?> serviceBuilder = serviceTarget.addService(AbstractControllerService.PATH_MANAGER_CAPABILITY.getCapabilityServiceName(), service).addAliases(SERVICE_NAME); // Add resources and capabilities for the always-present paths service.addHardcodedAbsolutePath(serviceTarget, HostControllerEnvironment.HOME_DIR, hostEnvironment.getHomeDir().getAbsolutePath()); service.addHardcodedAbsolutePath(serviceTarget, HostControllerEnvironment.DOMAIN_BASE_DIR, hostEnvironment.getDomainConfigurationDir().getAbsolutePath()); service.addHardcodedAbsolutePath(serviceTarget, HostControllerEnvironment.DOMAIN_CONFIG_DIR, hostEnvironment.getDomainConfigurationDir().getAbsolutePath()); service.addHardcodedAbsolutePath(serviceTarget, HostControllerEnvironment.DOMAIN_DATA_DIR, hostEnvironment.getDomainDataDir().getAbsolutePath()); service.addHardcodedAbsolutePath(serviceTarget, HostControllerEnvironment.DOMAIN_LOG_DIR, hostEnvironment.getDomainLogDir().getAbsolutePath()); service.addHardcodedAbsolutePath(serviceTarget, HostControllerEnvironment.DOMAIN_TEMP_DIR, hostEnvironment.getDomainTempDir().getAbsolutePath()); service.addHardcodedAbsolutePath(serviceTarget, HostControllerEnvironment.CONTROLLER_TEMP_DIR, hostEnvironment.getDomainTempDir().getAbsolutePath()); // Registering the actual standard server path capabilities so server config resources can reference them //TODO look if those registrations could be moved to ServerService/DomainModelControllerService.initModel registerServerPathCapability(service.localCapRegRef, ServerEnvironment.SERVER_BASE_DIR); registerServerPathCapability(service.localCapRegRef, ServerEnvironment.SERVER_CONFIG_DIR); registerServerPathCapability(service.localCapRegRef, ServerEnvironment.SERVER_DATA_DIR); registerServerPathCapability(service.localCapRegRef, ServerEnvironment.SERVER_LOG_DIR); registerServerPathCapability(service.localCapRegRef, ServerEnvironment.SERVER_TEMP_DIR); return serviceBuilder.install(); }
public static ServiceController<?> addService(ServiceTarget serviceTarget, HostPathManagerService service, HostControllerEnvironment hostEnvironment) { ServiceBuilder<?> serviceBuilder = serviceTarget.addService(AbstractControllerService.PATH_MANAGER_CAPABILITY.getCapabilityServiceName(), service).addAliases(SERVICE_NAME); // Add resources and capabilities for the always-present paths service.addHardcodedAbsolutePath(serviceTarget, HostControllerEnvironment.HOME_DIR, hostEnvironment.getHomeDir().getAbsolutePath()); service.addHardcodedAbsolutePath(serviceTarget, HostControllerEnvironment.DOMAIN_BASE_DIR, hostEnvironment.getDomainConfigurationDir().getAbsolutePath()); service.addHardcodedAbsolutePath(serviceTarget, HostControllerEnvironment.DOMAIN_CONFIG_DIR, hostEnvironment.getDomainConfigurationDir().getAbsolutePath()); service.addHardcodedAbsolutePath(serviceTarget, HostControllerEnvironment.DOMAIN_DATA_DIR, hostEnvironment.getDomainDataDir().getAbsolutePath()); service.addHardcodedAbsolutePath(serviceTarget, HostControllerEnvironment.DOMAIN_LOG_DIR, hostEnvironment.getDomainLogDir().getAbsolutePath()); service.addHardcodedAbsolutePath(serviceTarget, HostControllerEnvironment.DOMAIN_TEMP_DIR, hostEnvironment.getDomainTempDir().getAbsolutePath()); service.addHardcodedAbsolutePath(serviceTarget, HostControllerEnvironment.CONTROLLER_TEMP_DIR, hostEnvironment.getDomainTempDir().getAbsolutePath()); // Registering the actual standard server path capabilities so server config resources can reference them //TODO look if those registrations could be moved to ServerService/DomainModelControllerService.initModel registerServerPathCapability(service.localCapRegRef, ServerEnvironment.SERVER_BASE_DIR); registerServerPathCapability(service.localCapRegRef, ServerEnvironment.SERVER_CONFIG_DIR); registerServerPathCapability(service.localCapRegRef, ServerEnvironment.SERVER_DATA_DIR); registerServerPathCapability(service.localCapRegRef, ServerEnvironment.SERVER_LOG_DIR); registerServerPathCapability(service.localCapRegRef, ServerEnvironment.SERVER_TEMP_DIR); return serviceBuilder.install(); }
set(result, environment.getDomainContentDir()); } else if (equals(name, DOMAIN_DATA_DIR)) { set(result, environment.getDomainDataDir()); } else if (equals(name, DOMAIN_LOG_DIR)) { set(result, environment.getDomainLogDir());
hostRegistration.registerSubModel(new ServerConfigResourceDefinition(hostControllerInfo, serverInventory, pathManager, processState, environment.getDomainDataDir())); hostRegistration.registerSubModel(new StoppedServerResource(serverInventory));
set(result, environment.getDomainContentDir()); } else if (equals(name, DOMAIN_DATA_DIR)) { set(result, environment.getDomainDataDir()); } else if (equals(name, DOMAIN_LOG_DIR)) { set(result, environment.getDomainLogDir());
hostRegistration.registerSubModel(new ServerConfigResourceDefinition(hostControllerInfo, serverInventory, pathManager, processState, environment.getDomainDataDir())); hostRegistration.registerSubModel(new StoppedServerResource(serverInventory));
set(result, environment.getDomainContentDir()); } else if (equals(name, DOMAIN_DATA_DIR)) { set(result, environment.getDomainDataDir()); } else if (equals(name, DOMAIN_LOG_DIR)) { set(result, environment.getDomainLogDir());