public abstract class AbstractControllerService extends Object implements org.jboss.msc.service.Service<ModelController>
Modifier and Type | Field and Description |
---|---|
protected DelegatingConfigurableAuthorizer |
authorizer |
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.
|
protected ProcessType |
processType |
Modifier | Constructor and Description |
---|---|
protected |
AbstractControllerService(ProcessType processType,
RunningModeControl runningModeControl,
ConfigurationPersister configurationPersister,
ControlledProcessState processState,
DescriptionProvider rootDescriptionProvider,
OperationStepHandler prepareStep,
ExpressionResolver expressionResolver)
Deprecated.
Here for backwards compatibility for ModelTestModelControllerService
|
protected |
AbstractControllerService(ProcessType processType,
RunningModeControl runningModeControl,
ConfigurationPersister configurationPersister,
ControlledProcessState processState,
DescriptionProvider rootDescriptionProvider,
OperationStepHandler prepareStep,
ExpressionResolver expressionResolver,
ManagedAuditLogger auditLogger,
DelegatingConfigurableAuthorizer authorizer)
Deprecated.
|
protected |
AbstractControllerService(ProcessType processType,
RunningModeControl runningModeControl,
ConfigurationPersister configurationPersister,
ControlledProcessState processState,
ResourceDefinition rootResourceDefinition,
OperationStepHandler prepareStep,
ExpressionResolver expressionResolver)
Deprecated.
Here for backwards compatibility for ModelTestModelControllerService
|
protected |
AbstractControllerService(ProcessType processType,
RunningModeControl runningModeControl,
ConfigurationPersister configurationPersister,
ControlledProcessState processState,
ResourceDefinition rootResourceDefinition,
OperationStepHandler prepareStep,
ExpressionResolver expressionResolver,
ManagedAuditLogger auditLogger,
DelegatingConfigurableAuthorizer authorizer)
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 |
bootThreadDone() |
protected org.jboss.dmr.ModelNode |
executeReadOnlyOperation(org.jboss.dmr.ModelNode operation,
OperationMessageHandler handler,
ModelController.OperationTransactionControl control,
OperationAttachments attachments,
OperationStepHandler prepareStep,
int lockPermit)
Deprecated.
internal use only
|
protected void |
finishBoot() |
protected ManagedAuditLogger |
getAuditLogger() |
org.jboss.msc.value.InjectedValue<ExecutorService> |
getExecutorServiceInjector() |
ModelController |
getValue() |
protected abstract void |
initModel(Resource rootResource,
ManagementResourceRegistration rootRegistration) |
protected org.jboss.dmr.ModelNode |
internalExecute(org.jboss.dmr.ModelNode operation,
OperationMessageHandler handler,
ModelController.OperationTransactionControl control,
OperationAttachments attachments,
OperationStepHandler prepareStep) |
protected org.jboss.dmr.ModelNode |
internalExecute(org.jboss.dmr.ModelNode operation,
OperationMessageHandler handler,
ModelController.OperationTransactionControl control,
OperationAttachments attachments,
OperationStepHandler prepareStep,
boolean attemptLock) |
protected void |
performControllerInitialization(org.jboss.msc.service.ServiceTarget target,
Resource rootResource,
ManagementResourceRegistration rootRegistration) |
protected void |
runPerformControllerInitialization(BootContext context) |
protected void |
setConfigurationPersister(ConfigurationPersister persister) |
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
protected void |
stopAsynchronous(org.jboss.msc.service.StopContext context)
Hook for subclasses to perform work during the asynchronous task started by
stop(org.jboss.msc.service.StopContext) . |
public static final String BOOT_STACK_SIZE_PROPERTY
DEFAULT_BOOT_STACK_SIZE
,
Constant Field Valuespublic static final int DEFAULT_BOOT_STACK_SIZE
protected final ProcessType processType
protected final DelegatingConfigurableAuthorizer authorizer
@Deprecated protected AbstractControllerService(ProcessType processType, RunningModeControl runningModeControl, ConfigurationPersister configurationPersister, ControlledProcessState processState, DescriptionProvider rootDescriptionProvider, OperationStepHandler prepareStep, ExpressionResolver expressionResolver, ManagedAuditLogger auditLogger, DelegatingConfigurableAuthorizer authorizer)
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 resolverauditLogger
- the audit loggerprotected AbstractControllerService(ProcessType processType, RunningModeControl runningModeControl, ConfigurationPersister configurationPersister, ControlledProcessState processState, ResourceDefinition rootResourceDefinition, OperationStepHandler prepareStep, ExpressionResolver expressionResolver, ManagedAuditLogger auditLogger, DelegatingConfigurableAuthorizer authorizer)
processType
- the type of process being controlledrunningModeControl
- the controller of the process' running modeconfigurationPersister
- the configuration persisterprocessState
- the controlled process staterootResourceDefinition
- the root resource definitionprepareStep
- the prepare step to prepend to operation executionexpressionResolver
- the expression resolverauditLogger
- the audit logger@Deprecated 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 resolverprotected AbstractControllerService(ProcessType processType, RunningModeControl runningModeControl, ConfigurationPersister configurationPersister, ControlledProcessState processState, ResourceDefinition rootResourceDefinition, OperationStepHandler prepareStep, ExpressionResolver expressionResolver)
processType
- the type of process being controlledrunningModeControl
- the controller of the process' running modeconfigurationPersister
- the configuration persisterprocessState
- the controlled process staterootResourceDefinition
- the root resource definitionprepareStep
- 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.StartException
protected 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 org.jboss.dmr.ModelNode internalExecute(org.jboss.dmr.ModelNode operation, OperationMessageHandler handler, ModelController.OperationTransactionControl control, OperationAttachments attachments, OperationStepHandler prepareStep)
protected org.jboss.dmr.ModelNode internalExecute(org.jboss.dmr.ModelNode operation, OperationMessageHandler handler, ModelController.OperationTransactionControl control, OperationAttachments attachments, OperationStepHandler prepareStep, boolean attemptLock)
@Deprecated protected org.jboss.dmr.ModelNode executeReadOnlyOperation(org.jboss.dmr.ModelNode operation, OperationMessageHandler handler, ModelController.OperationTransactionControl control, OperationAttachments attachments, OperationStepHandler prepareStep, int lockPermit)
protected void finishBoot() throws ConfigurationPersistenceException
protected void bootThreadDone()
public void stop(org.jboss.msc.service.StopContext context)
stop
in interface org.jboss.msc.service.Service<ModelController>
protected void stopAsynchronous(org.jboss.msc.service.StopContext context)
stop(org.jboss.msc.service.StopContext)
. This base method does nothing.
Subclasses must not invoke LifecycleContext.complete()
context
- the stop contextpublic ModelController getValue() throws IllegalStateException, IllegalArgumentException
getValue
in interface org.jboss.msc.value.Value<ModelController>
SecurityException
- if the caller does not have ModelController.ACCESS_PERMISSION
IllegalStateException
IllegalArgumentException
public org.jboss.msc.value.InjectedValue<ExecutorService> getExecutorServiceInjector()
protected void setConfigurationPersister(ConfigurationPersister persister)
protected void runPerformControllerInitialization(BootContext context)
protected void performControllerInitialization(org.jboss.msc.service.ServiceTarget target, Resource rootResource, ManagementResourceRegistration rootRegistration)
protected abstract void initModel(Resource rootResource, ManagementResourceRegistration rootRegistration)
protected ManagedAuditLogger getAuditLogger()
Copyright © 2014 JBoss by Red Hat. All rights reserved.