public class ConsoleHandlerWriteAttributeHandler extends AbstractLogHandlerWriteAttributeHandler<org.jboss.logmanager.handlers.ConsoleHandler>
AbstractWriteAttributeHandler.HandbackHolder<T>
Modifier and Type | Field and Description |
---|---|
static ConsoleHandlerWriteAttributeHandler |
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.ConsoleHandler 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.ConsoleHandler handler)
Reverts updates to the handler.
|
applyUpdateToRuntime, getAttributeDefinition, getAttributes, revertUpdateToRuntime, validateResolvedValue, validateUnresolvedValue
execute, requiresRuntime
public static final ConsoleHandlerWriteAttributeHandler 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.ConsoleHandler handler) throws OperationFailedException
AbstractLogHandlerWriteAttributeHandler
doApplyUpdateToRuntime
in class AbstractLogHandlerWriteAttributeHandler<org.jboss.logmanager.handlers.ConsoleHandler>
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.ConsoleHandler handler) throws OperationFailedException
AbstractLogHandlerWriteAttributeHandler
doRevertUpdateToRuntime
in class AbstractLogHandlerWriteAttributeHandler<org.jboss.logmanager.handlers.ConsoleHandler>
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.