public abstract static class LoggingOperations.LoggingWriteAttributeHandler extends AbstractWriteAttributeHandler<ConfigurationPersistence>
AbstractWriteAttributeHandler.HandbackHolder<T>| Modifier | Constructor and Description |
|---|---|
protected |
LoggingWriteAttributeHandler(AttributeDefinition[] attributes) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
applyUpdate(OperationContext context,
String attributeName,
String addressName,
org.jboss.dmr.ModelNode value,
org.jboss.logmanager.config.LogContextConfiguration logContextConfiguration)
Applies the update to the runtime.
|
protected boolean |
applyUpdateToRuntime(OperationContext context,
org.jboss.dmr.ModelNode operation,
String attributeName,
org.jboss.dmr.ModelNode resolvedValue,
org.jboss.dmr.ModelNode currentValue,
AbstractWriteAttributeHandler.HandbackHolder<ConfigurationPersistence> handbackHolder) |
AttributeDefinition[] |
getAttributes()
Returns a collection of attributes used for the write attribute.
|
protected void |
revertUpdateToRuntime(OperationContext context,
org.jboss.dmr.ModelNode operation,
String attributeName,
org.jboss.dmr.ModelNode valueToRestore,
org.jboss.dmr.ModelNode valueToRevert,
ConfigurationPersistence configurationPersistence) |
protected void |
validateUpdatedModel(OperationContext context,
Resource model) |
execute, finishModelStage, getAttributeDefinition, recordCapabilitiesAndRequirements, requiresRuntimeprotected LoggingWriteAttributeHandler(AttributeDefinition[] attributes)
protected final boolean applyUpdateToRuntime(OperationContext context, org.jboss.dmr.ModelNode operation, String attributeName, org.jboss.dmr.ModelNode resolvedValue, org.jboss.dmr.ModelNode currentValue, AbstractWriteAttributeHandler.HandbackHolder<ConfigurationPersistence> handbackHolder) throws OperationFailedException
applyUpdateToRuntime in class AbstractWriteAttributeHandler<ConfigurationPersistence>OperationFailedExceptionprotected abstract boolean applyUpdate(OperationContext context, String attributeName, String addressName, org.jboss.dmr.ModelNode value, org.jboss.logmanager.config.LogContextConfiguration logContextConfiguration) throws OperationFailedException
context - the operation contextattributeName - the name of the attribute being writtenaddressName - the name of the handler or loggervalue - the value to set the attribute tologContextConfiguration - the log context configurationtrue if a restart is required, otherwise falseOperationFailedException - if an error occursprotected void revertUpdateToRuntime(OperationContext context, org.jboss.dmr.ModelNode operation, String attributeName, org.jboss.dmr.ModelNode valueToRestore, org.jboss.dmr.ModelNode valueToRevert, ConfigurationPersistence configurationPersistence) throws OperationFailedException
revertUpdateToRuntime in class AbstractWriteAttributeHandler<ConfigurationPersistence>OperationFailedExceptionprotected void validateUpdatedModel(OperationContext context, Resource model) throws OperationFailedException
validateUpdatedModel in class AbstractWriteAttributeHandler<ConfigurationPersistence>OperationFailedExceptionpublic final AttributeDefinition[] getAttributes()
Copyright © 2018 JBoss by Red Hat. All rights reserved.