Class JobRunrConfiguration.DatabaseConfiguration

  • Enclosing class:
    JobRunrConfiguration

    public static class JobRunrConfiguration.DatabaseConfiguration
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.util.Optional<java.lang.String> databaseName
      Allows to set the database name to use (only used by MongoDBStorageProvider).
      java.util.Optional<java.lang.String> datasource
      An optional named DataSource to use.
      boolean skipCreate
      Allows to skip the creation of the tables - this means you should add them manually or by database migration tools like FlywayDB or Liquibase.
      java.util.Optional<java.lang.String> tablePrefix
      Allows to set the table prefix used by JobRunr
      java.util.Optional<java.lang.String> type
      If multiple types of databases are available in the Spring Context (e.g.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • skipCreate

        @ConfigItem(defaultValue="false")
        public boolean skipCreate
        Allows to skip the creation of the tables - this means you should add them manually or by database migration tools like FlywayDB or Liquibase.
      • databaseName

        @ConfigItem
        public java.util.Optional<java.lang.String> databaseName
        Allows to set the database name to use (only used by MongoDBStorageProvider). By default, it is 'jobrunr'.
      • tablePrefix

        @ConfigItem
        public java.util.Optional<java.lang.String> tablePrefix
        Allows to set the table prefix used by JobRunr
      • datasource

        @ConfigItem
        public java.util.Optional<java.lang.String> datasource
        An optional named DataSource to use. Defaults to the 'default' datasource.
      • type

        public java.util.Optional<java.lang.String> type
        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' and 'elasticsearch'.
    • Constructor Detail

      • DatabaseConfiguration

        public DatabaseConfiguration()