public abstract class AbstractFileHandlerWriteAttributeHandler<T extends org.jboss.logmanager.handlers.FileHandler> extends AbstractLogHandlerWriteAttributeHandler<T>
AbstractWriteAttributeHandler.HandbackHolder<T>
Modifier | Constructor and Description |
---|---|
protected |
AbstractFileHandlerWriteAttributeHandler(AttributeDefinition... attributes) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
doApplyUpdateToRuntime(OperationContext context,
org.jboss.dmr.ModelNode operation,
String attributeName,
org.jboss.dmr.ModelNode resolvedValue,
org.jboss.dmr.ModelNode currentValue,
String handlerName,
T handler)
Applies additional runtime attributes for the handler.
|
protected void |
doRevertUpdateToRuntime(OperationContext context,
org.jboss.dmr.ModelNode operation,
String attributeName,
org.jboss.dmr.ModelNode valueToRestore,
org.jboss.dmr.ModelNode valueToRevert,
String handlerName,
T handler)
Reverts updates to the handler.
|
applyUpdateToRuntime, getAttributeDefinition, getAttributes, revertUpdateToRuntime, validateResolvedValue, validateUnresolvedValue
execute, requiresRuntime
protected AbstractFileHandlerWriteAttributeHandler(AttributeDefinition... attributes)
protected boolean doApplyUpdateToRuntime(OperationContext context, org.jboss.dmr.ModelNode operation, String attributeName, org.jboss.dmr.ModelNode resolvedValue, org.jboss.dmr.ModelNode currentValue, String handlerName, T handler) throws OperationFailedException
AbstractLogHandlerWriteAttributeHandler
doApplyUpdateToRuntime
in class AbstractLogHandlerWriteAttributeHandler<T extends org.jboss.logmanager.handlers.FileHandler>
context
- the context for the operation.operation
- the operationattributeName
- the name of the attribute being modifiedresolvedValue
- the new value for the attribute, after ModelNode.resolve()
has been called on itcurrentValue
- the existing value for the attributehandlerName
- the name of the handler.handler
- the handler
to apply the changes to.true
if the server requires restart to effect the attribute value change; false
if not.OperationFailedException
- if the operation fails.protected void doRevertUpdateToRuntime(OperationContext context, org.jboss.dmr.ModelNode operation, String attributeName, org.jboss.dmr.ModelNode valueToRestore, org.jboss.dmr.ModelNode valueToRevert, String handlerName, T handler) throws OperationFailedException
AbstractLogHandlerWriteAttributeHandler
doRevertUpdateToRuntime
in class AbstractLogHandlerWriteAttributeHandler<T extends org.jboss.logmanager.handlers.FileHandler>
context
- the context for the operation.operation
- the operationattributeName
- the name of the attribute being modifiedvalueToRestore
- the previous value for the attribute, before this operation was executedvalueToRevert
- the new value for the attribute that should be revertedhandlerName
- the name of the handler.handler
- the handler to apply the changes to.OperationFailedException
- if the operation fails.Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.