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 classJsonAuditEventHandlerConfiguration.EventBufferingConfigurationConfiguration 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.EventBufferingConfigurationgetBuffering()Gets configuration of event buffering.StringgetLogDirectory()Gets the directory where the JSON file is located.booleanisElasticsearchCompatible()Determines if JSON format should be transformed to be compatible with ElasticSearch format restrictions.booleanisUsableForQueries()States if anAuditEventHandlercan be used for queries.voidsetBuffering(JsonAuditEventHandlerConfiguration.EventBufferingConfiguration buffering)Sets configuration of event buffering.voidsetElasticsearchCompatible(boolean elasticsearchCompatible)Specifies if JSON format should be transformed to be compatible with ElasticSearch format restrictions.voidsetLogDirectory(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:
truefor ElasticSearch JSON format compatibility enforcement andfalseotherwise
-
setElasticsearchCompatible
public void setElasticsearchCompatible(boolean elasticsearchCompatible)
Specifies if JSON format should be transformed to be compatible with ElasticSearch format restrictions.- Parameters:
elasticsearchCompatible-truefor ElasticSearch JSON format compatibility enforcements andfalseotherwise
-
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:EventHandlerConfigurationStates if anAuditEventHandlercan be used for queries.- Specified by:
isUsableForQueriesin classEventHandlerConfiguration- Returns:
- True - If the
AuditEventHandlercan be used for queries. False - If theAuditEventHandlercan not be used for queries.
-
-