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 class
FileBasedEventHandlerConfiguration.FileRetention
Groups the file retention config parameters.static class
FileBasedEventHandlerConfiguration.FileRotation
Groups 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.FileRetention
getFileRetention()
FileBasedEventHandlerConfiguration.FileRotation
getFileRotation()
String
getRotationRetentionCheckInterval()
Gets the interval to check time-based file rotation policies.void
setFileRetention(FileBasedEventHandlerConfiguration.FileRetention fileRetention)
void
setFileRotation(FileBasedEventHandlerConfiguration.FileRotation fileRotation)
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
-
-
-
-
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 hours
Value 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 hours
Value of "zero" or "disabled" are not acceptable.
- Parameters:
rotationRetentionCheckInterval
- The interval duration.
-
-