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