public class DefaultDataConsistencyService extends Object implements DataConsistencyService
Provides data consistency checking services.
Constructor and Description |
---|
DefaultDataConsistencyService(OnePersistence onePersistence,
CurrentTenantService currentTenantService,
TenantLookupService tenantLookupService,
List<DataConsistencyCheck> dataConsistencyChecks)
Constructs a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
runAllDataConsistencyChecks(org.flywaydb.core.api.MigrationVersion currentMigrationVersion,
boolean quickCheck)
Runs all data consistency checks across the whole system.
|
void |
runGlobalChecks(org.flywaydb.core.api.MigrationVersion currentMigrationVersion,
boolean quickCheck)
Runs any data consistency checks that should be applied to the whole database (i.e. are
not restricted to a single tenant).
|
void |
runTenantSpecificChecks(org.flywaydb.core.api.MigrationVersion currentMigrationVersion,
String tenantName,
boolean quickCheck)
Runs any data consistency checks that should be applied to the current tenant.
|
public DefaultDataConsistencyService(OnePersistence onePersistence, CurrentTenantService currentTenantService, TenantLookupService tenantLookupService, List<DataConsistencyCheck> dataConsistencyChecks)
Constructs a new instance.
dataConsistencyChecks
- the configured data consistency check implementationspublic void runAllDataConsistencyChecks(org.flywaydb.core.api.MigrationVersion currentMigrationVersion, boolean quickCheck)
DataConsistencyService
Runs all data consistency checks across the whole system.
runAllDataConsistencyChecks
in interface DataConsistencyService
currentMigrationVersion
- the current migration versionquickCheck
- true
if only quick checks are to be performedpublic void runGlobalChecks(org.flywaydb.core.api.MigrationVersion currentMigrationVersion, boolean quickCheck)
Runs any data consistency checks that should be applied to the whole database (i.e. are not restricted to a single tenant).
runGlobalChecks
in interface DataConsistencyService
currentMigrationVersion
- the current migration versionquickCheck
- true
if only quick checks are to be performedpublic void runTenantSpecificChecks(org.flywaydb.core.api.MigrationVersion currentMigrationVersion, String tenantName, boolean quickCheck)
Runs any data consistency checks that should be applied to the current tenant.
The tenant to be checked should already be set as the current tenant before this method is called.
runTenantSpecificChecks
in interface DataConsistencyService
currentMigrationVersion
- the current migration versiontenantName
- the current tenant namequickCheck
- true
if only quick checks are to be performedCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.