public final class ServerService extends AbstractControllerService
ModelController
for an AS server instance.AbstractControllerService.ModelControllerServiceInitializationParams, AbstractControllerService.PartialModelIndicator
Modifier and Type | Field and Description |
---|---|
static org.jboss.msc.service.ServiceName |
JBOSS_SERVER_SCHEDULED_EXECUTOR
Service is not for general use, so the service name is not declared in the more visible
Services |
static String |
SERVER_NAME |
authorizer, BOOT_STACK_SIZE_PROPERTY, DEFAULT_BOOT_STACK_SIZE, processType
Modifier and Type | Method and Description |
---|---|
static void |
addService(org.jboss.msc.service.ServiceTarget serviceTarget,
Bootstrap.Configuration configuration,
ControlledProcessState processState,
BootstrapListener bootstrapListener,
RunningModeControl runningModeControl,
AbstractVaultReader vaultReader,
ManagedAuditLogger auditLogger,
DelegatingConfigurableAuthorizer authorizer)
Add this service to the given service target.
|
protected void |
boot(BootContext context)
Boot the controller.
|
protected boolean |
boot(List<org.jboss.dmr.ModelNode> bootOperations,
boolean rollbackOnRuntimeFailure)
Boot with the given operations, performing full model and capability registry validation.
|
protected AbstractControllerService.ModelControllerServiceInitializationParams |
getModelControllerServiceInitializationParams()
Override to return a
AbstractControllerService.ModelControllerServiceInitializationParams . |
protected void |
initModel(ManagementModel managementModel,
Resource modelControllerResource) |
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
acquireReadLock, boot, boot, boot, bootThreadDone, createExtraValidationStepHandler, executeReadOnlyOperation, executeReadOnlyOperation, executeReadOnlyOperation, executeReadOnlyOperation, finishBoot, getAuditLogger, getBootErrorCollector, getExecutorServiceInjector, getMutableRootResourceRegistrationProvider, getPartialModelIndicator, getValue, internalExecute, internalExecute, internalExecute, internalExecute, registerModelControllerServiceInitializationBootStep, releaseReadLock, setConfigurationPersister, stopAsynchronous
public static final org.jboss.msc.service.ServiceName JBOSS_SERVER_SCHEDULED_EXECUTOR
Services
public static final String SERVER_NAME
public static void addService(org.jboss.msc.service.ServiceTarget serviceTarget, Bootstrap.Configuration configuration, ControlledProcessState processState, BootstrapListener bootstrapListener, RunningModeControl runningModeControl, AbstractVaultReader vaultReader, ManagedAuditLogger auditLogger, DelegatingConfigurableAuthorizer authorizer)
serviceTarget
- the service targetconfiguration
- the bootstrap configurationpublic void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException
start
in interface org.jboss.msc.service.Service<ModelController>
start
in class AbstractControllerService
org.jboss.msc.service.StartException
protected void boot(BootContext context) throws ConfigurationPersistenceException
AbstractControllerService
boot
in class AbstractControllerService
context
- the boot contextConfigurationPersistenceException
- if the configuration failed to be loadedprotected boolean boot(List<org.jboss.dmr.ModelNode> bootOperations, boolean rollbackOnRuntimeFailure) throws ConfigurationPersistenceException
AbstractControllerService
boot
in class AbstractControllerService
bootOperations
- the operations. Cannot be null
rollbackOnRuntimeFailure
- true
if the boot should fail if operations fail in the runtime stagetrue
if boot was successfulConfigurationPersistenceException
public void stop(org.jboss.msc.service.StopContext context)
stop
in interface org.jboss.msc.service.Service<ModelController>
stop
in class AbstractControllerService
protected void initModel(ManagementModel managementModel, Resource modelControllerResource)
initModel
in class AbstractControllerService
protected AbstractControllerService.ModelControllerServiceInitializationParams getModelControllerServiceInitializationParams()
AbstractControllerService
AbstractControllerService.ModelControllerServiceInitializationParams
. If null
is returned,
AbstractControllerService.registerModelControllerServiceInitializationBootStep(BootContext)
will not perform any initialization
of ModelControllerServiceInitialization
instances.getModelControllerServiceInitializationParams
in class AbstractControllerService
ModelControllerServiceInitialization
instancesCopyright © 2023 JBoss by Red Hat. All rights reserved.