Package org.jboss.as.threads
Class ThreadsWriteAttributeOperationHandler
java.lang.Object
org.jboss.as.controller.AbstractWriteAttributeHandler<Boolean>
org.jboss.as.threads.ThreadsWriteAttributeOperationHandler
- All Implemented Interfaces:
OperationStepHandler
- Direct Known Subclasses:
BoundedQueueThreadPoolWriteAttributeHandler,QueuelessThreadPoolWriteAttributeHandler,ScheduledThreadPoolWriteAttributeHandler,ThreadFactoryWriteAttributeHandler,UnboundedQueueThreadPoolWriteAttributeHandler
public abstract class ThreadsWriteAttributeOperationHandler
extends AbstractWriteAttributeHandler<Boolean>
Abstract superclass for write-attribute operation handlers for the threads subsystem.
- Author:
- Brian Stansberry, Alexey Loubyansky
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jboss.as.controller.AbstractWriteAttributeHandler
AbstractWriteAttributeHandler.HandbackHolder<T extends Object> -
Constructor Summary
ConstructorsConstructorDescriptionThreadsWriteAttributeOperationHandler(AttributeDefinition[] attributes) Creates a handler that doesn't validate values. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidapplyOperation(OperationContext context, org.jboss.dmr.ModelNode operation, String attributeName, org.jboss.msc.service.ServiceController<?> service, boolean forRollback) protected booleanapplyUpdateToRuntime(OperationContext context, org.jboss.dmr.ModelNode operation, String attributeName, org.jboss.dmr.ModelNode newValue, org.jboss.dmr.ModelNode currentValue, AbstractWriteAttributeHandler.HandbackHolder<Boolean> handbackHolder) protected abstract org.jboss.msc.service.ServiceController<?>getService(OperationContext context, org.jboss.dmr.ModelNode model) voidprotected voidrevertUpdateToRuntime(OperationContext context, org.jboss.dmr.ModelNode operation, String attributeName, org.jboss.dmr.ModelNode valueToRestore, org.jboss.dmr.ModelNode valueToRevert, Boolean handback) Methods inherited from class org.jboss.as.controller.AbstractWriteAttributeHandler
execute, finishModelStage, getAttributeDefinition, recordCapabilitiesAndRequirements, requiresRuntime, validateUpdatedModel
-
Constructor Details
-
ThreadsWriteAttributeOperationHandler
Creates a handler that doesn't validate values.- Parameters:
attributes- all persistent attributes of the
-
-
Method Details
-
applyUpdateToRuntime
protected boolean applyUpdateToRuntime(OperationContext context, org.jboss.dmr.ModelNode operation, String attributeName, org.jboss.dmr.ModelNode newValue, org.jboss.dmr.ModelNode currentValue, AbstractWriteAttributeHandler.HandbackHolder<Boolean> handbackHolder) throws OperationFailedException - Specified by:
applyUpdateToRuntimein classAbstractWriteAttributeHandler<Boolean>- Throws:
OperationFailedException
-
revertUpdateToRuntime
protected void revertUpdateToRuntime(OperationContext context, org.jboss.dmr.ModelNode operation, String attributeName, org.jboss.dmr.ModelNode valueToRestore, org.jboss.dmr.ModelNode valueToRevert, Boolean handback) throws OperationFailedException - Specified by:
revertUpdateToRuntimein classAbstractWriteAttributeHandler<Boolean>- Throws:
OperationFailedException
-
registerAttributes
-
getService
protected abstract org.jboss.msc.service.ServiceController<?> getService(OperationContext context, org.jboss.dmr.ModelNode model) throws OperationFailedException - Throws:
OperationFailedException
-
applyOperation
protected abstract void applyOperation(OperationContext context, org.jboss.dmr.ModelNode operation, String attributeName, org.jboss.msc.service.ServiceController<?> service, boolean forRollback) throws OperationFailedException - Throws:
OperationFailedException
-