public abstract class ThreadsWriteAttributeOperationHandler extends org.jboss.as.controller.AbstractWriteAttributeHandler<Boolean>
| Modifier and Type | Field and Description |
|---|---|
protected org.jboss.as.controller.AttributeDefinition[] |
attributes |
protected Map<String,org.jboss.as.controller.AttributeDefinition> |
runtimeAttributes |
| Constructor and Description |
|---|
ThreadsWriteAttributeOperationHandler(org.jboss.as.controller.AttributeDefinition[] attributes,
org.jboss.as.controller.AttributeDefinition[] runtimeAttributes)
Creates a handler that doesn't validate values.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
applyOperation(org.jboss.as.controller.OperationContext context,
org.jboss.dmr.ModelNode operation,
String attributeName,
org.jboss.msc.service.ServiceController<?> service,
boolean forRollback) |
protected boolean |
applyUpdateToRuntime(org.jboss.as.controller.OperationContext context,
org.jboss.dmr.ModelNode operation,
String attributeName,
org.jboss.dmr.ModelNode newValue,
org.jboss.dmr.ModelNode currentValue,
org.jboss.as.controller.AbstractWriteAttributeHandler.HandbackHolder<Boolean> handbackHolder) |
protected abstract org.jboss.msc.service.ServiceController<?> |
getService(org.jboss.as.controller.OperationContext context,
org.jboss.dmr.ModelNode model) |
void |
registerAttributes(org.jboss.as.controller.registry.ManagementResourceRegistration registry) |
protected void |
revertUpdateToRuntime(org.jboss.as.controller.OperationContext context,
org.jboss.dmr.ModelNode operation,
String attributeName,
org.jboss.dmr.ModelNode valueToRestore,
org.jboss.dmr.ModelNode valueToRevert,
Boolean handback) |
public ThreadsWriteAttributeOperationHandler(org.jboss.as.controller.AttributeDefinition[] attributes,
org.jboss.as.controller.AttributeDefinition[] runtimeAttributes)
attributes - all persistent attributes of theruntimeAttributes - attributes whose updated value can immediately be applied to the runtimeprotected boolean applyUpdateToRuntime(org.jboss.as.controller.OperationContext context,
org.jboss.dmr.ModelNode operation,
String attributeName,
org.jboss.dmr.ModelNode newValue,
org.jboss.dmr.ModelNode currentValue,
org.jboss.as.controller.AbstractWriteAttributeHandler.HandbackHolder<Boolean> handbackHolder)
throws org.jboss.as.controller.OperationFailedException
applyUpdateToRuntime in class org.jboss.as.controller.AbstractWriteAttributeHandler<Boolean>org.jboss.as.controller.OperationFailedExceptionprotected void revertUpdateToRuntime(org.jboss.as.controller.OperationContext context,
org.jboss.dmr.ModelNode operation,
String attributeName,
org.jboss.dmr.ModelNode valueToRestore,
org.jboss.dmr.ModelNode valueToRevert,
Boolean handback)
throws org.jboss.as.controller.OperationFailedException
revertUpdateToRuntime in class org.jboss.as.controller.AbstractWriteAttributeHandler<Boolean>org.jboss.as.controller.OperationFailedExceptionpublic void registerAttributes(org.jboss.as.controller.registry.ManagementResourceRegistration registry)
protected abstract org.jboss.msc.service.ServiceController<?> getService(org.jboss.as.controller.OperationContext context,
org.jboss.dmr.ModelNode model)
throws org.jboss.as.controller.OperationFailedException
org.jboss.as.controller.OperationFailedExceptionprotected abstract void applyOperation(org.jboss.as.controller.OperationContext context,
org.jboss.dmr.ModelNode operation,
String attributeName,
org.jboss.msc.service.ServiceController<?> service,
boolean forRollback)
throws org.jboss.as.controller.OperationFailedException
org.jboss.as.controller.OperationFailedExceptionCopyright © 2021 JBoss by Red Hat. All rights reserved.