Class JsonAuditEventHandlerConfiguration
- java.lang.Object
-
- org.forgerock.audit.events.handlers.EventHandlerConfiguration
-
- org.forgerock.audit.events.handlers.FileBasedEventHandlerConfiguration
-
- org.forgerock.audit.handlers.json.JsonAuditEventHandlerConfiguration
-
public class JsonAuditEventHandlerConfiguration extends FileBasedEventHandlerConfiguration
Configuration forJsonAuditEventHandler
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JsonAuditEventHandlerConfiguration.EventBufferingConfiguration
Configuration of event buffering.-
Nested classes/interfaces inherited from class org.forgerock.audit.events.handlers.FileBasedEventHandlerConfiguration
FileBasedEventHandlerConfiguration.FileRetention, FileBasedEventHandlerConfiguration.FileRotation
-
-
Constructor Summary
Constructors Constructor Description JsonAuditEventHandlerConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonAuditEventHandlerConfiguration.EventBufferingConfiguration
getBuffering()
Gets configuration of event buffering.String
getLogDirectory()
Gets the directory where the JSON file is located.boolean
isElasticsearchCompatible()
Determines if JSON format should be transformed to be compatible with ElasticSearch format restrictions.boolean
isUsableForQueries()
States if anAuditEventHandler
can be used for queries.void
setBuffering(JsonAuditEventHandlerConfiguration.EventBufferingConfiguration buffering)
Sets configuration of event buffering.void
setElasticsearchCompatible(boolean elasticsearchCompatible)
Specifies if JSON format should be transformed to be compatible with ElasticSearch format restrictions.void
setLogDirectory(String directory)
Sets the directory where the JSON file is located.-
Methods inherited from class org.forgerock.audit.events.handlers.FileBasedEventHandlerConfiguration
getFileRetention, getFileRotation, getRotationRetentionCheckInterval, setFileRetention, setFileRotation, setRotationRetentionCheckInterval
-
Methods inherited from class org.forgerock.audit.events.handlers.EventHandlerConfiguration
getName, getTopics, isEnabled, setEnabled, setName, setTopics
-
-
-
-
Method Detail
-
getLogDirectory
public String getLogDirectory()
Gets the directory where the JSON file is located.- Returns:
- location of the JSON file
-
setLogDirectory
public void setLogDirectory(String directory)
Sets the directory where the JSON file is located.- Parameters:
directory
- location of the JSON file
-
isElasticsearchCompatible
public boolean isElasticsearchCompatible()
Determines if JSON format should be transformed to be compatible with ElasticSearch format restrictions.- Returns:
true
for ElasticSearch JSON format compatibility enforcement andfalse
otherwise
-
setElasticsearchCompatible
public void setElasticsearchCompatible(boolean elasticsearchCompatible)
Specifies if JSON format should be transformed to be compatible with ElasticSearch format restrictions.- Parameters:
elasticsearchCompatible
-true
for ElasticSearch JSON format compatibility enforcements andfalse
otherwise
-
getBuffering
public JsonAuditEventHandlerConfiguration.EventBufferingConfiguration getBuffering()
Gets configuration of event buffering.- Returns:
- configuration of event buffering
-
setBuffering
public void setBuffering(JsonAuditEventHandlerConfiguration.EventBufferingConfiguration buffering)
Sets configuration of event buffering.- Parameters:
buffering
- configuration of event buffering
-
isUsableForQueries
public boolean isUsableForQueries()
Description copied from class:EventHandlerConfiguration
States if anAuditEventHandler
can be used for queries.- Specified by:
isUsableForQueries
in classEventHandlerConfiguration
- Returns:
- True - If the
AuditEventHandler
can be used for queries. False - If theAuditEventHandler
can not be used for queries.
-
-