Class FileBasedEventHandlerConfiguration
- java.lang.Object
 - 
- org.forgerock.audit.events.handlers.EventHandlerConfiguration
 - 
- org.forgerock.audit.events.handlers.FileBasedEventHandlerConfiguration
 
 
 
- 
- Direct Known Subclasses:
 CsvAuditEventHandlerConfiguration,JsonAuditEventHandlerConfiguration
public abstract class FileBasedEventHandlerConfiguration extends EventHandlerConfiguration
Configures time based or size based log file rotation. 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFileBasedEventHandlerConfiguration.FileRetentionGroups the file retention config parameters.static classFileBasedEventHandlerConfiguration.FileRotationGroups the file rotation config parameters. 
- 
Constructor Summary
Constructors Constructor Description FileBasedEventHandlerConfiguration() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileBasedEventHandlerConfiguration.FileRetentiongetFileRetention()FileBasedEventHandlerConfiguration.FileRotationgetFileRotation()StringgetRotationRetentionCheckInterval()Gets the interval to check time-based file rotation policies.voidsetFileRetention(FileBasedEventHandlerConfiguration.FileRetention fileRetention)voidsetFileRotation(FileBasedEventHandlerConfiguration.FileRotation fileRotation)voidsetRotationRetentionCheckInterval(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 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getFileRotation
public FileBasedEventHandlerConfiguration.FileRotation getFileRotation()
- Returns:
 - Not-null, The 
FileBasedEventHandlerConfiguration.FileRotation. 
 
- 
setFileRotation
public void setFileRotation(FileBasedEventHandlerConfiguration.FileRotation fileRotation)
- Parameters:
 fileRotation- Not-null, TheFileBasedEventHandlerConfiguration.FileRotation.
 
- 
getFileRetention
public FileBasedEventHandlerConfiguration.FileRetention getFileRetention()
- Returns:
 - Not-null, The 
FileBasedEventHandlerConfiguration.FileRetention. 
 
- 
setFileRetention
public void setFileRetention(FileBasedEventHandlerConfiguration.FileRetention fileRetention)
- Parameters:
 fileRetention- Not-null, TheFileBasedEventHandlerConfiguration.FileRetention.
 
- 
getRotationRetentionCheckInterval
public String 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
public void setRotationRetentionCheckInterval(String rotationRetentionCheckInterval)
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.
 
 - 
 
 -