Interface JobRunrConfiguration.DatabaseConfiguration
-
- Enclosing interface:
- JobRunrConfiguration
@ConfigurationProperties("database") public static interface JobRunrConfiguration.DatabaseConfiguration
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<java.lang.String>getDatabaseName()The name of the database to use (only used by MongoDBStorageProvider).java.util.Optional<java.lang.String>getDatasource()An optional namedDataSourceto use.java.util.Optional<java.lang.String>getTablePrefix()Allows to set the table prefix used by JobRunrjava.util.Optional<java.lang.String>getType()If multiple types of databases are available in the Spring Context (e.g.booleanisSkipCreate()Allows to skip the creation of the tables - this means you should add them manually or by database migration tools like FlywayDB or Liquibase.
-
-
-
Method Detail
-
isSkipCreate
@Bindable(defaultValue="false") boolean isSkipCreate()
Allows to skip the creation of the tables - this means you should add them manually or by database migration tools like FlywayDB or Liquibase.
-
getDatabaseName
java.util.Optional<java.lang.String> getDatabaseName()
The name of the database to use (only used by MongoDBStorageProvider). By default, it is 'jobrunr'.
-
getTablePrefix
java.util.Optional<java.lang.String> getTablePrefix()
Allows to set the table prefix used by JobRunr
-
getDatasource
java.util.Optional<java.lang.String> getDatasource()
An optional namedDataSourceto use. Defaults to the 'default' datasource.
-
getType
java.util.Optional<java.lang.String> getType()
If multiple types of databases are available in the Spring Context (e.g. a DataSource and an Elastic RestHighLevelClient), this setting allows to specify the type of database for JobRunr to use. Valid values are 'sql', 'mongodb', 'redis-lettuce', 'redis-jedis' and 'elasticsearch'.
-
-