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 classGroups the file retention config parameters.static classGroups the file rotation config parameters. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionGets the interval to check time-based file rotation policies.voidsetFileRetention(FileBasedEventHandlerConfiguration.FileRetention fileRetention) voidvoidsetRotationRetentionCheckInterval(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 hoursValue 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 hoursValue of "zero" or "disabled" are not acceptable.
- Parameters:
 rotationRetentionCheckInterval- The interval duration.
 
 -