public interface MigrationService
Modifier and Type | Interface and Description |
---|---|
static interface |
MigrationService.MigrationContext
Interface for a migration context, passed to the
MigrationService.Migrator . |
static class |
MigrationService.MigrationStatus
The status of a migration.
|
static interface |
MigrationService.Migrator
Interface for the implementation of a migrator.
|
Modifier and Type | Method and Description |
---|---|
MigrationService.MigrationStatus |
getStatus(String id)
Gets the current status for a migration.
|
String |
probeAndSetState(String id)
Probes the current state of a migration by analyzing persistent data, and sets it as the new current state.
|
void |
runStep(String id,
String step)
Runs a migration step for a migration.
|
MigrationService.MigrationStatus getStatus(String id)
id
- the migration idnull
if the migration is unknownString probeAndSetState(String id)
THIS METHOD MAY TAKE A WHILE as it needs to get information from persistent storage.
id
- the migration idnull
if it cannot be determinedvoid runStep(String id, String step)
This launches the migration asynchronously. The status of the migration can be checked with getStatus(java.lang.String)
.
id
- the migration idstep
- the step idCopyright © 2019 Nuxeo. All rights reserved.