Package org.jobrunr.storage.nosql.common
Class NoSqlDatabaseCreator<T>
java.lang.Object
org.jobrunr.storage.nosql.common.NoSqlDatabaseCreator<T>
- Direct Known Subclasses:
ElasticSearchDBCreator
,JedisRedisDBCreator
,LettuceRedisDBCreator
,MongoDBCreator
-
Constructor Summary
ModifierConstructorDescriptionprotected
NoSqlDatabaseCreator
(Class<? extends NoSqlStorageProvider> noSqlStorageProviderClass) protected
NoSqlDatabaseCreator
(List<Class<? extends NoSqlStorageProvider>> noSqlStorageProviderClasses) protected
NoSqlDatabaseCreator
(NoSqlStorageProvider noSqlStorageProvider) -
Method Summary
Modifier and TypeMethodDescriptionprotected Stream<NoSqlMigration>
protected abstract boolean
isNewMigration
(NoSqlMigration noSqlMigration) protected boolean
isValidMigration
(NoSqlMigration noSqlMigration) protected abstract boolean
markMigrationAsDone
(NoSqlMigration noSqlMigration) protected abstract void
runMigration
(T noSqlMigration) protected void
runMigrationIfNecessary
(NoSqlMigration noSqlMigration) void
-
Constructor Details
-
NoSqlDatabaseCreator
-
NoSqlDatabaseCreator
-
NoSqlDatabaseCreator
protected NoSqlDatabaseCreator(List<Class<? extends NoSqlStorageProvider>> noSqlStorageProviderClasses)
-
-
Method Details
-
runMigrations
public void runMigrations() -
isValidMigration
-
isNewMigration
-
runMigration
- Throws:
Exception
-
markMigrationAsDone
-
runMigrationIfNecessary
-
getMigrations
-