public KernelServicesBuilderImpl(TestModelType type) { this.type = type; this.processType = type == TestModelType.HOST || type == TestModelType.DOMAIN ? ProcessType.HOST_CONTROLLER : ProcessType.STANDALONE_SERVER; runningModeControl = type == TestModelType.HOST ? new HostRunningModeControl(RunningMode.ADMIN_ONLY, RestartMode.HC_ONLY) : new RunningModeControl(RunningMode.ADMIN_ONLY); extensionRegistry = new ExtensionRegistry(processType, runningModeControl, null, null, null, RuntimeHostControllerInfoAccessor.SERVER); testParser = TestParser.create(extensionRegistry, xmlMapper, type); }
public KernelServicesBuilderImpl(TestModelType type) { this.type = type; this.processType = type == TestModelType.HOST || type == TestModelType.DOMAIN ? ProcessType.HOST_CONTROLLER : ProcessType.STANDALONE_SERVER; runningModeControl = type == TestModelType.HOST ? new HostRunningModeControl(RunningMode.ADMIN_ONLY, RestartMode.HC_ONLY) : new RunningModeControl(RunningMode.ADMIN_ONLY); extensionRegistry = new ExtensionRegistry(processType, runningModeControl, null, null, null, RuntimeHostControllerInfoAccessor.SERVER); testParser = TestParser.create(extensionRegistry, xmlMapper, type); }
public static KernelServices create(List<ModelNode> bootOperations, ModelTestOperationValidatorFilter validateOpsFilter, ModelVersion legacyModelVersion, List<LegacyModelInitializerEntry> modelInitializerEntries) throws Exception { TestModelType type = TestModelType.DOMAIN; XMLMapper xmlMapper = XMLMapper.Factory.create(); TestParser testParser = TestParser.create(null, xmlMapper, type); ModelInitializer modelInitializer = null; if (modelInitializerEntries != null && modelInitializerEntries.size() > 0) { modelInitializer = new LegacyModelInitializer(modelInitializerEntries); } RunningModeControl runningModeControl = new HostRunningModeControl(RunningMode.ADMIN_ONLY, RestartMode.HC_ONLY); ExtensionRegistry extensionRegistry = new ExtensionRegistry(ProcessType.HOST_CONTROLLER, runningModeControl); return AbstractKernelServicesImpl.create(ProcessType.HOST_CONTROLLER, runningModeControl, validateOpsFilter, bootOperations, testParser, legacyModelVersion, type, modelInitializer, extensionRegistry, null); }
public static KernelServices create(List<ModelNode> bootOperations, ModelTestOperationValidatorFilter validateOpsFilter, ModelVersion legacyModelVersion, List<LegacyModelInitializerEntry> modelInitializerEntries) throws Exception { TestModelType type = TestModelType.DOMAIN; XMLMapper xmlMapper = XMLMapper.Factory.create(); TestParser testParser = TestParser.create(null, xmlMapper, type); ModelInitializer modelInitializer = null; if (modelInitializerEntries != null && modelInitializerEntries.size() > 0) { modelInitializer = new LegacyModelInitializer(modelInitializerEntries); } RunningModeControl runningModeControl = new HostRunningModeControl(RunningMode.ADMIN_ONLY, RestartMode.HC_ONLY); ExtensionRegistry extensionRegistry = new ExtensionRegistry(ProcessType.HOST_CONTROLLER, runningModeControl); return AbstractKernelServicesImpl.create(ProcessType.HOST_CONTROLLER, runningModeControl, validateOpsFilter, bootOperations, testParser, legacyModelVersion, type, modelInitializer, extensionRegistry, null); }
this.modulePath = modulePath; this.initialRunningMode = initialRunningMode; this.runningModeControl = new HostRunningModeControl(initialRunningMode, RestartMode.SERVERS);
this.startTime = startTime; this.initialRunningMode = initialRunningMode; this.runningModeControl = new HostRunningModeControl(initialRunningMode, RestartMode.SERVERS); this.domainConfigInteractionPolicy = domainConfigInteractionPolicy;
this.startTime = startTime; this.initialRunningMode = initialRunningMode; this.runningModeControl = new HostRunningModeControl(initialRunningMode, RestartMode.SERVERS); this.domainConfigInteractionPolicy = domainConfigInteractionPolicy;