Class FileBasedEventHandlerConfiguration
java.lang.Object
org.forgerock.audit.events.handlers.EventHandlerConfiguration
org.forgerock.audit.events.handlers.FileBasedEventHandlerConfiguration
- Direct Known Subclasses:
CsvAuditEventHandlerConfiguration
,JsonAuditEventHandlerConfiguration
Configures time-based or size-based log file rotation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
This class provides a mechanism for setting file permissions in a more abstract manner than is provided by the underlying operating system and/or filesystem.static class
Groups the file retention config parameters.static class
Groups the file rotation config parameters. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns The non-null
file permissions.Gets the interval to check time-based file rotation policies.void
setFilePermissions
(String filePermissions) void
setFileRetention
(FileBasedEventHandlerConfiguration.FileRetention fileRetention) void
void
setRotationRetentionCheckInterval
(String rotationRetentionCheckInterval) Sets the interval to check time-based file rotation policies.Methods inherited from class org.forgerock.audit.events.handlers.EventHandlerConfiguration
getName, getTopics, isEnabled, isUsableForQueries, setEnabled, setName, setTopics
-
Constructor Details
-
FileBasedEventHandlerConfiguration
public FileBasedEventHandlerConfiguration()
-
-
Method Details
-
buildFilePermissions
Returns The non-null
file permissions.- Returns:
- The non-
null
file permissions
-
setFilePermissions
- Parameters:
filePermissions
- The non-null
file permissions.
-
getFileRotation
- Returns:
- Not-null, The
FileBasedEventHandlerConfiguration.FileRotation
.
-
setFileRotation
- Parameters:
fileRotation
- Not-null, TheFileBasedEventHandlerConfiguration.FileRotation
.
-
getFileRetention
- Returns:
- Not-null, The
FileBasedEventHandlerConfiguration.FileRetention
.
-
setFileRetention
- Parameters:
fileRetention
- Not-null, TheFileBasedEventHandlerConfiguration.FileRetention
.
-
getRotationRetentionCheckInterval
Gets the interval to check time-based file rotation policies. The interval should be set as aDuration
.Examples of valid durations are:
5 seconds 5 minutes 5 hours
Value of "zero" or "disabled" are not acceptable.
- Returns:
- The interval duration.
-
setRotationRetentionCheckInterval
Sets the interval to check time-based file rotation policies. The interval should be set as aDuration
.Examples of valid durations are:
5 seconds 5 minutes 5 hours
Value of "zero" or "disabled" are not acceptable.
- Parameters:
rotationRetentionCheckInterval
- The interval duration.
-