Package org.nuxeo.runtime.migration
Interface MigrationService.Migrator
- 
- All Known Implementing Classes:
- AbstractRepositoryMigrator,- CommentsMigrator,- MigrationServiceImpl.InvalidatorMigrator,- TagsMigrator,- TrashedStateMigrator
 - Enclosing interface:
- MigrationService
 
 public static interface MigrationService.Migrator Interface for the implementation of a migrator.- Since:
- 9.3
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidnotifyStatusChange()Allows notification of status change for a running step or new state.default StringprobeState()Probes the current state of a migration by analyzing persistent data.voidrun(String step, MigrationService.MigrationContext migrationContext)Runs a migration step.
 
- 
- 
- 
Method Detail- 
probeStatedefault String probeState() Probes the current state of a migration by analyzing persistent data.Assumes no migration step is currently running. THIS METHOD MAY TAKE A WHILE as it needs to get information from persistent storage. - Returns:
- the probed state, or nullif it cannot be determined
- Since:
- 10.3
 
 - 
runvoid run(String step, MigrationService.MigrationContext migrationContext) Runs a migration step.This method should periodically check for MigrationService.MigrationContext.isShutdownRequested()andThread.isInterrupted()and return iftrue.- Parameters:
- step- the migration step to run
- migrationContext- the migration context.
 
 - 
notifyStatusChangevoid notifyStatusChange() Allows notification of status change for a running step or new state.- Since:
- 10.3
 
 
- 
 
-