Package org.jboss.as.server
Class ServerService
- java.lang.Object
-
- org.jboss.as.controller.AbstractControllerService
-
- org.jboss.as.server.ServerService
-
- All Implemented Interfaces:
org.jboss.msc.Service,org.jboss.msc.service.Service<ModelController>,org.jboss.msc.value.Value<ModelController>
public final class ServerService extends AbstractControllerService
Service for theModelControllerfor an AS server instance.- Author:
- David M. Lloyd, Richard Opalka
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jboss.as.controller.AbstractControllerService
AbstractControllerService.ControllerInstabilityListener, AbstractControllerService.ModelControllerServiceInitializationParams, AbstractControllerService.PartialModelIndicator
-
-
Field Summary
Fields Modifier and Type Field Description static org.jboss.msc.service.ServiceNameJBOSS_SERVER_CLIENT_FACTORYService is not for general use, so the service name is not declared in the more visibleServicesstatic org.jboss.msc.service.ServiceNameJBOSS_SERVER_NOTIFICATION_REGISTRYService is not for general use, so the service name is not declared in the more visibleServicesstatic org.jboss.msc.service.ServiceNameJBOSS_SERVER_SCHEDULED_EXECUTORService is not for general use, so the service name is not declared in the more visibleServicesstatic StringSERVER_NAME-
Fields inherited from class org.jboss.as.controller.AbstractControllerService
authorizer, BOOT_STACK_SIZE_PROPERTY, CLIENT_FACTORY_CAPABILITY, DEFAULT_BOOT_STACK_SIZE, EXECUTOR_CAPABILITY, EXPRESSION_RESOLVER_EXTENSION_REGISTRY_CAPABILITY_NAME, NOTIFICATION_REGISTRY_CAPABILITY, PATH_MANAGER_CAPABILITY, PROCESS_STATE_NOTIFIER_CAPABILITY, processType, securityIdentitySupplier
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidaddService(org.jboss.msc.service.ServiceTarget serviceTarget, Bootstrap.Configuration configuration, ControlledProcessState processState, BootstrapListener bootstrapListener, RunningModeControl runningModeControl, ManagedAuditLogger auditLogger, DelegatingConfigurableAuthorizer authorizer, ManagementSecurityIdentitySupplier securityIdentitySupplier, SuspendController suspendController)Add this service to the given service target.protected booleanboot(List<org.jboss.dmr.ModelNode> bootOperations, boolean rollbackOnRuntimeFailure)protected voidboot(BootContext context)protected voidfinishBoot(boolean suspend)protected AbstractControllerService.ModelControllerServiceInitializationParamsgetModelControllerServiceInitializationParams()protected voidinitModel(ManagementModel managementModel, Resource modelControllerResource)protected voidpostBoot()voidstart(org.jboss.msc.service.StartContext context)voidstop(org.jboss.msc.service.StopContext context)-
Methods inherited from class org.jboss.as.controller.AbstractControllerService
acquireReadLock, boot, boot, boot, bootThreadDone, clearBootingReadOnlyFlag, createExtraValidationStepHandler, executeAdditionalCliBootScript, executeReadOnlyOperation, executeReadOnlyOperation, executeReadOnlyOperation, executeReadOnlyOperation, finishBoot, getAuditLogger, getBootErrorCollector, getExecutorService, getMutableRootResourceRegistrationProvider, getNotificationSupport, getPartialModelIndicator, getStabilityMonitor, getValue, internalExecute, internalExecute, internalExecute, internalExecute, isExposingClientServicesAllowed, registerModelControllerServiceInitializationBootStep, releaseReadLock, setConfigurationPersister, stopAsynchronous
-
-
-
-
Field Detail
-
JBOSS_SERVER_CLIENT_FACTORY
public static final org.jboss.msc.service.ServiceName JBOSS_SERVER_CLIENT_FACTORY
Service is not for general use, so the service name is not declared in the more visibleServices
-
JBOSS_SERVER_NOTIFICATION_REGISTRY
public static final org.jboss.msc.service.ServiceName JBOSS_SERVER_NOTIFICATION_REGISTRY
Service is not for general use, so the service name is not declared in the more visibleServices
-
JBOSS_SERVER_SCHEDULED_EXECUTOR
public static final 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 visibleServices
-
SERVER_NAME
public static final String SERVER_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
addService
public static void addService(org.jboss.msc.service.ServiceTarget serviceTarget, Bootstrap.Configuration configuration, ControlledProcessState processState, BootstrapListener bootstrapListener, RunningModeControl runningModeControl, ManagedAuditLogger auditLogger, DelegatingConfigurableAuthorizer authorizer, ManagementSecurityIdentitySupplier securityIdentitySupplier, SuspendController suspendController)Add this service to the given service target.- Parameters:
serviceTarget- the service targetconfiguration- the bootstrap configuration
-
start
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException- Specified by:
startin interfaceorg.jboss.msc.Service- Specified by:
startin interfaceorg.jboss.msc.service.Service<ModelController>- Overrides:
startin classAbstractControllerService- Throws:
org.jboss.msc.service.StartException
-
boot
protected void boot(BootContext context) throws ConfigurationPersistenceException
- Overrides:
bootin classAbstractControllerService- Throws:
ConfigurationPersistenceException
-
finishBoot
protected void finishBoot(boolean suspend) throws ConfigurationPersistenceException- Overrides:
finishBootin classAbstractControllerService- Throws:
ConfigurationPersistenceException
-
postBoot
protected void postBoot()
- Overrides:
postBootin classAbstractControllerService
-
boot
protected boolean boot(List<org.jboss.dmr.ModelNode> bootOperations, boolean rollbackOnRuntimeFailure) throws ConfigurationPersistenceException
- Overrides:
bootin classAbstractControllerService- Throws:
ConfigurationPersistenceException
-
stop
public void stop(org.jboss.msc.service.StopContext context)
- Specified by:
stopin interfaceorg.jboss.msc.Service- Specified by:
stopin interfaceorg.jboss.msc.service.Service<ModelController>- Overrides:
stopin classAbstractControllerService
-
initModel
protected void initModel(ManagementModel managementModel, Resource modelControllerResource)
- Specified by:
initModelin classAbstractControllerService
-
getModelControllerServiceInitializationParams
protected AbstractControllerService.ModelControllerServiceInitializationParams getModelControllerServiceInitializationParams()
- Overrides:
getModelControllerServiceInitializationParamsin classAbstractControllerService
-
-