Class JdbcAuditEventHandlerConfiguration
- java.lang.Object
-
- org.forgerock.audit.events.handlers.EventHandlerConfiguration
-
- org.forgerock.audit.handlers.jdbc.JdbcAuditEventHandlerConfiguration
-
public class JdbcAuditEventHandlerConfiguration extends EventHandlerConfiguration
Configures the JDBC mapping and connection pool.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JdbcAuditEventHandlerConfiguration.ConnectionPool
Configuration for a connection pool.static class
JdbcAuditEventHandlerConfiguration.EventBufferingConfiguration
Configuration of event buffering.
-
Constructor Summary
Constructors Constructor Description JdbcAuditEventHandlerConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JdbcAuditEventHandlerConfiguration.EventBufferingConfiguration
getBuffering()
Returns the configuration for events buffering.JdbcAuditEventHandlerConfiguration.ConnectionPool
getConnectionPool()
Gets the connection pool settings.String
getDatabaseType()
Gets the type of the database.List<TableMapping>
getTableMappings()
Gets the table mappings for the audit events.boolean
isUsableForQueries()
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
-
-
-
-
Method Detail
-
getTableMappings
public List<TableMapping> getTableMappings()
Gets the table mappings for the audit events.- Returns:
- The table mappings for the audit events.
-
setTableMappings
public void setTableMappings(List<TableMapping> tableMappings)
Sets the table mappings for the audit events.- Parameters:
tableMappings
- The table mappings for the audit events.
-
getConnectionPool
public JdbcAuditEventHandlerConfiguration.ConnectionPool getConnectionPool()
Gets the connection pool settings.- Returns:
- The connection pool settings.
-
setConnectionPool
public void setConnectionPool(JdbcAuditEventHandlerConfiguration.ConnectionPool connectionPool)
Sets the connection pool settings.- Parameters:
connectionPool
- The connection pool settings.
-
getDatabaseType
public String getDatabaseType()
Gets the type of the database.- Returns:
- The type of the database.
-
setDatabaseType
public void setDatabaseType(String databaseType)
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
public JdbcAuditEventHandlerConfiguration.EventBufferingConfiguration 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
-
-