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 OperationStepHandler |
afterCommit(org.jboss.logmanager.config.LogContextConfiguration logContextConfiguration,
String attributeName,
org.jboss.dmr.ModelNode resolvedValue,
org.jboss.dmr.ModelNode currentValue)
An
OperationStepHandler to register after the commit step has been registered. |
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 OperationStepHandler afterCommit(org.jboss.logmanager.config.LogContextConfiguration logContextConfiguration, String attributeName, org.jboss.dmr.ModelNode resolvedValue, org.jboss.dmr.ModelNode currentValue)
OperationStepHandler to register after the commit step has been registered.
If AbstractWriteAttributeHandler.applyUpdateToRuntime(OperationContext, ModelNode, String, ModelNode, ModelNode, HandbackHolder)
returns true this step will not be registered.
logContextConfiguration - the log context configuration usedattributeName - the name of the attribute being writtencurrentValue - the current value of the attributeresolvedValue - the resolved value of the attributenull to not register a step after the commit stepprotected 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 © 2019 JBoss by Red Hat. All rights reserved.