Class JsonAuditEventHandlerConfiguration
java.lang.Object
org.forgerock.audit.events.handlers.EventHandlerConfiguration
org.forgerock.audit.events.handlers.FileBasedEventHandlerConfiguration
org.forgerock.audit.handlers.json.JsonAuditEventHandlerConfiguration
Configuration for
JsonAuditEventHandler
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Configuration of event buffering.Nested classes/interfaces inherited from class org.forgerock.audit.events.handlers.FileBasedEventHandlerConfiguration
FileBasedEventHandlerConfiguration.FileRetention, FileBasedEventHandlerConfiguration.FileRotation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets configuration of event buffering.Gets the directory where the JSON file is located.boolean
Determines if JSON format should be transformed to be compatible with ElasticSearch format restrictions.boolean
States if anAuditEventHandler
can be used for queries.void
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
-
Constructor Details
-
JsonAuditEventHandlerConfiguration
public JsonAuditEventHandlerConfiguration()
-
-
Method Details
-
getLogDirectory
Gets the directory where the JSON file is located.- Returns:
- location of the JSON file
-
setLogDirectory
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
Gets configuration of event buffering.- Returns:
- configuration of event buffering
-
setBuffering
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.
-