Class MigrationManagerImpl
java.lang.Object
io.vertigo.database.impl.migration.MigrationManagerImpl
- All Implemented Interfaces:
io.vertigo.core.node.component.Activeable,io.vertigo.core.node.component.Component,io.vertigo.core.node.component.CoreComponent,io.vertigo.core.node.component.Manager,MigrationManager
public final class MigrationManagerImpl
extends Object
implements MigrationManager, io.vertigo.core.node.component.Activeable
Implementation of the MigrationManager.
At start-up we perform all the tasks tageted by the specified mode
Mode supported are 'check' and 'update'
- Author:
- mlaroche
-
Constructor Summary
ConstructorsConstructorDescriptionMigrationManagerImpl(Optional<String> modeOpt, List<MigrationPlugin> dataBaseMigrationPlugins) Constructor -
Method Summary
-
Constructor Details
-
MigrationManagerImpl
@Inject public MigrationManagerImpl(Optional<String> modeOpt, List<MigrationPlugin> dataBaseMigrationPlugins) Constructor- Parameters:
modeOpt- mode used at startupdataBaseMigrationPlugins- registered dataBaseMigrationPlugins
-
-
Method Details
-
start
public void start()- Specified by:
startin interfaceio.vertigo.core.node.component.Activeable
-
stop
public void stop()- Specified by:
stopin interfaceio.vertigo.core.node.component.Activeable
-
check
Check if database is ok.- Specified by:
checkin interfaceMigrationManager- Parameters:
connectionName- ConnectionProviderName (in the Vertigo's way). For example @seeinvalid reference
SqlManager.MAIN_CONNECTION_PROVIDER_NAME
-
update
Perform all taks on database to make it up to date.- Specified by:
updatein interfaceMigrationManager- Parameters:
connectionName- ConnectionProviderName (in the Vertigo's way). For example @seeinvalid reference
SqlManager.MAIN_CONNECTION_PROVIDER_NAME
-