public static interface MigrationService.Migrator
| Modifier and Type | Method and Description |
|---|---|
void |
notifyStatusChange()
Allows notification of status change for a running step or new state.
|
default String |
probeState()
Probes the current state of a migration by analyzing persistent data.
|
void |
run(String step,
MigrationService.MigrationContext migrationContext)
Runs a migration step.
|
default String probeState()
Assumes no migration step is currently running.
THIS METHOD MAY TAKE A WHILE as it needs to get information from persistent storage.
null if it cannot be determinedvoid run(String step, MigrationService.MigrationContext migrationContext)
This method should periodically check for MigrationService.MigrationContext.isShutdownRequested() and
Thread.isInterrupted() and return if true.
step - the migration step to runmigrationContext - the migration context.void notifyStatusChange()
Copyright © 2019 Nuxeo. All rights reserved.