public abstract class AbstractControllerService extends Object implements org.jboss.msc.service.Service<ModelController>
| Modifier and Type | Field and Description |
|---|---|
static String |
BOOT_STACK_SIZE_PROPERTY
Name of the system property to set to control the stack size for the thread used to process boot operations.
|
static int |
DEFAULT_BOOT_STACK_SIZE
The default stack size for the thread used to process boot operations.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractControllerService(ProcessType processType,
RunningModeControl runningModeControl,
ConfigurationPersister configurationPersister,
ControlledProcessState processState,
DescriptionProvider rootDescriptionProvider,
OperationStepHandler prepareStep,
ExpressionResolver expressionResolver)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
boot(BootContext context)
Boot the controller.
|
protected boolean |
boot(List<org.jboss.dmr.ModelNode> bootOperations,
boolean rollbackOnRuntimeFailure) |
protected void |
finishBoot() |
org.jboss.msc.value.InjectedValue<ExecutorService> |
getExecutorServiceInjector() |
ModelController |
getValue() |
protected abstract void |
initModel(Resource rootResource,
ManagementResourceRegistration rootRegistration) |
protected void |
setConfigurationPersister(ConfigurationPersister persister) |
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
public static final String BOOT_STACK_SIZE_PROPERTY
DEFAULT_BOOT_STACK_SIZE,
Constant Field Valuespublic static final int DEFAULT_BOOT_STACK_SIZE
protected AbstractControllerService(ProcessType processType, RunningModeControl runningModeControl, ConfigurationPersister configurationPersister, ControlledProcessState processState, DescriptionProvider rootDescriptionProvider, OperationStepHandler prepareStep, ExpressionResolver expressionResolver)
processType - the type of process being controlledrunningModeControl - the controller of the process' running modeconfigurationPersister - the configuration persisterprocessState - the controlled process staterootDescriptionProvider - the root description providerprepareStep - the prepare step to prepend to operation executionexpressionResolver - the expression resolverpublic void start(org.jboss.msc.service.StartContext context)
throws org.jboss.msc.service.StartException
start in interface org.jboss.msc.service.Service<ModelController>org.jboss.msc.service.StartExceptionprotected void boot(BootContext context) throws ConfigurationPersistenceException
context - the boot contextConfigurationPersistenceException - if the configuration failed to be loadedprotected boolean boot(List<org.jboss.dmr.ModelNode> bootOperations, boolean rollbackOnRuntimeFailure) throws ConfigurationPersistenceException
protected void finishBoot()
throws ConfigurationPersistenceException
public void stop(org.jboss.msc.service.StopContext context)
stop in interface org.jboss.msc.service.Service<ModelController>public ModelController getValue() throws IllegalStateException, IllegalArgumentException
getValue in interface org.jboss.msc.value.Value<ModelController>IllegalStateExceptionIllegalArgumentExceptionpublic org.jboss.msc.value.InjectedValue<ExecutorService> getExecutorServiceInjector()
protected void setConfigurationPersister(ConfigurationPersister persister)
protected abstract void initModel(Resource rootResource, ManagementResourceRegistration rootRegistration)
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.