Class JdbcAuditEventHandlerConfiguration
java.lang.Object
org.forgerock.audit.events.handlers.EventHandlerConfiguration
org.forgerock.audit.handlers.jdbc.JdbcAuditEventHandlerConfiguration
Configures the JDBC mapping and connection pool.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Configuration for a connection pool.static class
Configuration of event buffering. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the configuration for events buffering.Gets the connection pool settings.Gets the type of the database.Gets the table mappings for the audit events.boolean
States if anAuditEventHandler
can be used for queries.void
setBufferingConfiguration
(JdbcAuditEventHandlerConfiguration.EventBufferingConfiguration bufferingConfiguration) Sets the configuration for events buffering.void
setConnectionPool
(JdbcAuditEventHandlerConfiguration.ConnectionPool connectionPool) Sets the connection pool settings.void
setDatabaseType
(String databaseType) Sets the type of the database.void
setTableMappings
(List<TableMapping> tableMappings) Sets the table mappings for the audit events.Methods inherited from class org.forgerock.audit.events.handlers.EventHandlerConfiguration
getName, getTopics, isEnabled, setEnabled, setName, setTopics
-
Constructor Details
-
JdbcAuditEventHandlerConfiguration
public JdbcAuditEventHandlerConfiguration()
-
-
Method Details
-
getTableMappings
Gets the table mappings for the audit events.- Returns:
- The table mappings for the audit events.
-
setTableMappings
Sets the table mappings for the audit events.- Parameters:
tableMappings
- The table mappings for the audit events.
-
getConnectionPool
Gets the connection pool settings.- Returns:
- The connection pool settings.
-
setConnectionPool
Sets the connection pool settings.- Parameters:
connectionPool
- The connection pool settings.
-
getDatabaseType
Gets the type of the database.- Returns:
- The type of the database.
-
setDatabaseType
Sets the type of the database.- Parameters:
databaseType
- The type of the database.
-
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.
-
getBuffering
Returns the configuration for events buffering.- Returns:
- the configuration
-
setBufferingConfiguration
public void setBufferingConfiguration(JdbcAuditEventHandlerConfiguration.EventBufferingConfiguration bufferingConfiguration) Sets the configuration for events buffering.- Parameters:
bufferingConfiguration
- The configuration
-