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 classJdbcAuditEventHandlerConfiguration.ConnectionPoolConfiguration for a connection pool.static classJdbcAuditEventHandlerConfiguration.EventBufferingConfigurationConfiguration of event buffering.
-
Constructor Summary
Constructors Constructor Description JdbcAuditEventHandlerConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JdbcAuditEventHandlerConfiguration.EventBufferingConfigurationgetBuffering()Returns the configuration for events buffering.JdbcAuditEventHandlerConfiguration.ConnectionPoolgetConnectionPool()Gets the connection pool settings.StringgetDatabaseType()Gets the type of the database.List<TableMapping>getTableMappings()Gets the table mappings for the audit events.booleanisUsableForQueries()States if anAuditEventHandlercan be used for queries.voidsetBufferingConfiguration(JdbcAuditEventHandlerConfiguration.EventBufferingConfiguration bufferingConfiguration)Sets the configuration for events buffering.voidsetConnectionPool(JdbcAuditEventHandlerConfiguration.ConnectionPool connectionPool)Sets the connection pool settings.voidsetDatabaseType(String databaseType)Sets the type of the database.voidsetTableMappings(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: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.
-
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
-
-