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
Modifier and TypeClassDescriptionstatic class
Groups the file retention config parameters.static class
Groups the file rotation config parameters. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the interval to check time-based file rotation policies.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
-
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.
-