public class SizeRotatingHandlerWriteAttributeHandler extends AbstractFileHandlerWriteAttributeHandler<org.jboss.logmanager.handlers.SizeRotatingFileHandler>
AbstractWriteAttributeHandler.HandbackHolder<T>
Modifier and Type | Field and Description |
---|---|
static SizeRotatingHandlerWriteAttributeHandler |
INSTANCE |
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,
org.jboss.logmanager.handlers.SizeRotatingFileHandler 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,
org.jboss.logmanager.handlers.SizeRotatingFileHandler handler)
Reverts updates to the handler.
|
applyUpdateToRuntime, getAttributeDefinition, getAttributes, revertUpdateToRuntime, validateResolvedValue, validateUnresolvedValue
execute, requiresRuntime
public static final SizeRotatingHandlerWriteAttributeHandler INSTANCE
protected boolean doApplyUpdateToRuntime(OperationContext context, org.jboss.dmr.ModelNode operation, String attributeName, org.jboss.dmr.ModelNode resolvedValue, org.jboss.dmr.ModelNode currentValue, String handlerName, org.jboss.logmanager.handlers.SizeRotatingFileHandler handler) throws OperationFailedException
AbstractLogHandlerWriteAttributeHandler
doApplyUpdateToRuntime
in class AbstractFileHandlerWriteAttributeHandler<org.jboss.logmanager.handlers.SizeRotatingFileHandler>
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, org.jboss.logmanager.handlers.SizeRotatingFileHandler handler) throws OperationFailedException
AbstractLogHandlerWriteAttributeHandler
doRevertUpdateToRuntime
in class AbstractFileHandlerWriteAttributeHandler<org.jboss.logmanager.handlers.SizeRotatingFileHandler>
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 © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.