Java Code Examples for org.jboss.as.controller.ProcessType#EMBEDDED_SERVER
The following examples show how to use
org.jboss.as.controller.ProcessType#EMBEDDED_SERVER .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: InterfaceManagementUnitTestCase.java From wildfly-core with GNU Lesser General Public License v2.1 | 6 votes |
ModelControllerService(final ControlledProcessState processState, final StringConfigurationPersister persister, final ServerDelegatingResourceDefinition rootResourceDefinition) { super(ProcessType.EMBEDDED_SERVER, new RunningModeControl(RunningMode.ADMIN_ONLY), persister, processState, rootResourceDefinition, null, ExpressionResolver.TEST_RESOLVER, AuditLogger.NO_OP_LOGGER, new DelegatingConfigurableAuthorizer(), new ManagementSecurityIdentitySupplier(), new CapabilityRegistry(true)); this.persister = persister; this.processState = processState; this.rootResourceDefinition = rootResourceDefinition; Properties properties = new Properties(); properties.put("jboss.home.dir", System.getProperty("basedir", ".") + File.separatorChar + "target"); final String hostControllerName = "hostControllerName"; // Host Controller name may not be null when in a managed domain environment = new ServerEnvironment(hostControllerName, properties, new HashMap<String, String>(), null, null, ServerEnvironment.LaunchType.DOMAIN, null, ProductConfig.fromFilesystemSlot(Module.getBootModuleLoader(), ".", properties), false); extensionRegistry = new ExtensionRegistry(ProcessType.STANDALONE_SERVER, new RunningModeControl(RunningMode.NORMAL), null, null, null, RuntimeHostControllerInfoAccessor.SERVER); capabilityRegistry = new CapabilityRegistry(processType.isServer()); }
Example 2
Source File: SecurityRealmAddHandler.java From wildfly-core with GNU Lesser General Public License v2.1 | 5 votes |
@Override protected void performRuntime(OperationContext context, ModelNode operation, Resource resource) throws OperationFailedException { // Install another RUNTIME handler to actually install the services. This will run after the // RUNTIME handler for any child resources. Doing this will ensure that child resource handlers don't // see the installed services and can just ignore doing any RUNTIME stage work if(!context.isBooting() && context.getProcessType() == ProcessType.EMBEDDED_SERVER && context.getRunningMode() == RunningMode.ADMIN_ONLY) { context.reloadRequired(); } else { context.addStep(ServiceInstallStepHandler.INSTANCE, OperationContext.Stage.RUNTIME); } }
Example 3
Source File: ManagementPermissionAuthorizerTestCase.java From wildfly-core with GNU Lesser General Public License v2.1 | 5 votes |
@Before public void setUp() { caller = Caller.createCaller(null); ControlledProcessState processState = new ControlledProcessState(false); processState.setRunning(); environment = new Environment(processState, ProcessType.EMBEDDED_SERVER); TestPermissionFactory testPermissionFactory = new TestPermissionFactory(); authorizer = new ManagementPermissionAuthorizer(testPermissionFactory); }
Example 4
Source File: NativeRemotingManagementRemoveHandler.java From wildfly-core with GNU Lesser General Public License v2.1 | 4 votes |
@Override protected boolean requiresRuntime(OperationContext context) { return context.getProcessType() != ProcessType.EMBEDDED_SERVER || context.getRunningMode() != RunningMode.ADMIN_ONLY; }
Example 5
Source File: ConsoleAvailabilityUnitTestCase.java From wildfly-core with GNU Lesser General Public License v2.1 | 4 votes |
ConsoleAvailabilityControllerTmp(ControlledProcessState controlledProcessState) { super(ProcessType.EMBEDDED_SERVER, new NullConfigurationPersister(), controlledProcessState); }
Example 6
Source File: AbstractProxyControllerTest.java From wildfly-core with GNU Lesser General Public License v2.1 | 4 votes |
ProxyModelControllerService(final ControlledProcessState processState) { super(ProcessType.EMBEDDED_SERVER, new NullConfigurationPersister(), processState, ResourceBuilder.Factory.create(PathElement.pathElement("root"), new NonResolvingResourceDescriptionResolver()).build()); }
Example 7
Source File: AbstractProxyControllerTest.java From wildfly-core with GNU Lesser General Public License v2.1 | 4 votes |
MainModelControllerService(final Supplier<ModelController> proxy, ControlledProcessState processState) { super(ProcessType.EMBEDDED_SERVER, new NullConfigurationPersister(), processState, ResourceBuilder.Factory.create(PathElement.pathElement("root"), new NonResolvingResourceDescriptionResolver()).build()); this.proxy = proxy; }
Example 8
Source File: NativeManagementAddHandler.java From wildfly-core with GNU Lesser General Public License v2.1 | 4 votes |
@Override protected boolean requiresRuntime(OperationContext context) { return super.requiresRuntime(context) && (context.getProcessType() != ProcessType.EMBEDDED_SERVER || context.getRunningMode() != RunningMode.ADMIN_ONLY); }
Example 9
Source File: BootCliHookTestCase.java From wildfly-core with GNU Lesser General Public License v2.1 | 4 votes |
@Test public void testKeepAliveScenarioEmbedded() throws Exception { processType = ProcessType.EMBEDDED_SERVER; testKeepAliveScenario(); }
Example 10
Source File: AbstractControllerTestBase.java From wildfly-core with GNU Lesser General Public License v2.1 | 4 votes |
protected AbstractControllerTestBase() { this(ProcessType.EMBEDDED_SERVER); }
Example 11
Source File: BootCliHookTestCase.java From wildfly-core with GNU Lesser General Public License v2.1 | 4 votes |
@Test public void testReloadEmbedded() throws Exception { processType = ProcessType.EMBEDDED_SERVER; testReloadScenario(); }
Example 12
Source File: PlatformMBeanTestModelControllerService.java From wildfly-core with GNU Lesser General Public License v2.1 | 4 votes |
/** * Construct a new instance. * */ protected PlatformMBeanTestModelControllerService() { super(ProcessType.EMBEDDED_SERVER, new RunningModeControl(RunningMode.NORMAL), new NullConfigurationPersister(), new ControlledProcessState(true), ResourceBuilder.Factory.create(PathElement.pathElement("root"),new NonResolvingResourceDescriptionResolver()).build(), null, ExpressionResolver.TEST_RESOLVER, AuditLogger.NO_OP_LOGGER, new DelegatingConfigurableAuthorizer(), new ManagementSecurityIdentitySupplier(), new CapabilityRegistry(true)); }
Example 13
Source File: SecurityRealmAddHandler.java From wildfly-core with GNU Lesser General Public License v2.1 | 4 votes |
@Override protected void rollbackRuntime(OperationContext context, ModelNode operation, Resource resource) { if (!context.isBooting() && context.getProcessType() == ProcessType.EMBEDDED_SERVER && context.getRunningMode() == RunningMode.ADMIN_ONLY) { context.revertReloadRequired(); } }
Example 14
Source File: AbstractControllerTestBase.java From wildfly-core with GNU Lesser General Public License v2.1 | 4 votes |
protected AbstractControllerTestBase() { this(ProcessType.EMBEDDED_SERVER); }
Example 15
Source File: TestModelControllerService.java From wildfly-core with GNU Lesser General Public License v2.1 | 4 votes |
protected TestModelControllerService(final ConfigurationPersister configurationPersister, final ControlledProcessState processState, ManagedAuditLogger auditLogger) { this(ProcessType.EMBEDDED_SERVER, configurationPersister, processState, ResourceBuilder.Factory.create(PathElement.pathElement("root"), new NonResolvingResourceDescriptionResolver()).build(), auditLogger); }
Example 16
Source File: ServerService.java From wildfly-core with GNU Lesser General Public License v2.1 | 4 votes |
static ProcessType getProcessType(ServerEnvironment serverEnvironment) { return serverEnvironment != null ? serverEnvironment.getLaunchType().getProcessType() : ProcessType.EMBEDDED_SERVER; }
Example 17
Source File: HttpManagementRemoveHandler.java From wildfly-core with GNU Lesser General Public License v2.1 | 4 votes |
@Override protected boolean requiresRuntime(OperationContext context) { return context.getProcessType() != ProcessType.EMBEDDED_SERVER || context.getRunningMode() != RunningMode.ADMIN_ONLY; }
Example 18
Source File: NativeRemotingManagementAddHandler.java From wildfly-core with GNU Lesser General Public License v2.1 | 4 votes |
@Override protected boolean requiresRuntime(OperationContext context) { return context.getProcessType() != ProcessType.EMBEDDED_SERVER || context.getRunningMode() != RunningMode.ADMIN_ONLY; }
Example 19
Source File: LegacyConfigurationChangeResourceDefinition.java From wildfly-core with GNU Lesser General Public License v2.1 | 4 votes |
@Override protected boolean requiresRuntime(OperationContext context) { return context.getProcessType() != ProcessType.EMBEDDED_HOST_CONTROLLER && (context.getProcessType() != ProcessType.EMBEDDED_SERVER && context.getRunningMode() != RunningMode.ADMIN_ONLY); }
Example 20
Source File: AbstractSubsystemTest.java From wildfly-core with GNU Lesser General Public License v2.1 | 2 votes |
/** * Gets the ProcessType to use when initializing the parsers. Defaults to {@link ProcessType#EMBEDDED_SERVER} * To tweak the process type when installing a controller, override {@link AdditionalInitialization} and pass in to * {@link #createKernelServicesBuilder(AdditionalInitialization)} instead. * * @return the process type */ protected final ProcessType getProcessType() { return ProcessType.EMBEDDED_SERVER; }