public static interface ManagedAuditLogger.AuditLogHandlerUpdater
The audit log handler updater. Additive changes will be used for the audit log record as a result of management operations causing updates here. Removals and updates will not take effect until the current audit log record has been written.
This means that if a new handler is added and a reference is added, the new handler will be used to log the operations causing that to happen.
If a handler is removed, the operations causing the removal will be logged to the handler, before removing it.
If a handler is changed, for example to change the location of a file handler or the protocol of a syslog handler, the operations causing the change will be logged to the current handler location. The next incoming log message will be written to the new handler location.
Modifier and Type | Method and Description |
---|---|
void |
addHandler(org.jboss.as.controller.audit.AuditLogHandler handler)
Adds a new handler, this handler will be used when logging the current operation
|
void |
addHandlerReference(PathAddress referenceAddress)
Add a handler reference.
|
void |
applyChanges()
Apply the changes.
|
void |
removeHandler(String name)
Remove a handler.
|
void |
removeHandlerReference(PathAddress referenceAddress)
Add a handler reference.
|
void |
rollbackChanges()
Roll back changes made as part of the current operation.
|
void |
updateHandler(org.jboss.as.controller.audit.AuditLogHandler handler)
Update a handler.
|
void addHandler(org.jboss.as.controller.audit.AuditLogHandler handler)
handler
- the handlervoid updateHandler(org.jboss.as.controller.audit.AuditLogHandler handler)
handler
- the updated handlervoid removeHandler(String name)
name
- the name of the handler to be removedIllegalStateException
- if the handler still has references to itvoid addHandlerReference(PathAddress referenceAddress)
referenceAddress
- the address of the handler reference (the value of the last element is the name of
the referenced handler)void removeHandlerReference(PathAddress referenceAddress)
referenceAddress
- the address of the handler reference (the value of the last element is the name of
the referenced handler)void rollbackChanges()
void applyChanges()
IllegalStateException
- if manual commit should not be usedCopyright © 2023 JBoss by Red Hat. All rights reserved.