protected static class SizeRotatingFileAuditLogHandlerResourceDefinition.SizeRotatingHandlerWriteAttributeHandler extends FileAuditLogHandlerResourceDefinition.HandlerWriteAttributeHandler
AbstractWriteAttributeHandler.HandbackHolder<T>
Constructor and Description |
---|
SizeRotatingHandlerWriteAttributeHandler(ManagedAuditLogger auditLogger,
PathManagerService pathManager,
AttributeDefinition... attributeDefinitions) |
Modifier and Type | Method and Description |
---|---|
protected AbstractFileAuditLogHandler |
createHandler(PathManagerService pathManager,
OperationContext context,
org.jboss.dmr.ModelNode operation) |
protected void |
finishModelStage(OperationContext context,
org.jboss.dmr.ModelNode operation,
String attributeName,
org.jboss.dmr.ModelNode newValue,
org.jboss.dmr.ModelNode oldValue,
Resource model)
Hook to allow subclasses to do any final
OperationContext.Stage.MODEL processing following the
application of the new attribute value. |
applyUpdateToRuntime, requiresRuntime, revertUpdateToRuntime
execute, getAttributeDefinition, recordCapabilitiesAndRequirements, validateUpdatedModel
public SizeRotatingHandlerWriteAttributeHandler(ManagedAuditLogger auditLogger, PathManagerService pathManager, AttributeDefinition... attributeDefinitions)
protected AbstractFileAuditLogHandler createHandler(PathManagerService pathManager, OperationContext context, org.jboss.dmr.ModelNode operation) throws OperationFailedException
createHandler
in class FileAuditLogHandlerResourceDefinition.HandlerWriteAttributeHandler
OperationFailedException
protected void finishModelStage(OperationContext context, org.jboss.dmr.ModelNode operation, String attributeName, org.jboss.dmr.ModelNode newValue, org.jboss.dmr.ModelNode oldValue, Resource model) throws OperationFailedException
AbstractWriteAttributeHandler
OperationContext.Stage.MODEL
processing following the
application of the new attribute value. This default implementation calls
AbstractWriteAttributeHandler.validateUpdatedModel(OperationContext, Resource)
.
NOTE: Implementations must not call
OperationContext.completeStep(OperationContext.ResultHandler)
or any of its variants. The method that
calls this one handles step completion.
finishModelStage
in class AbstractWriteAttributeHandler<Void>
context
- the operation contextoperation
- the operationattributeName
- the name of the attribute being modifiednewValue
- the new value for the attributeoldValue
- the previous value for the attributemodel
- the updated model resourceOperationFailedException
Copyright © 2023 JBoss by Red Hat. All rights reserved.