public class TrashedStateLifeCycleToPropertyMigrator extends Object implements MigrationService.Migrator
Modifier and Type | Class and Description |
---|---|
protected static class |
TrashedStateLifeCycleToPropertyMigrator.MigrationShutdownException |
Modifier and Type | Field and Description |
---|---|
protected static int |
BATCH_SIZE |
protected MigrationService.MigrationContext |
migrationContext |
Constructor and Description |
---|
TrashedStateLifeCycleToPropertyMigrator() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkShutdownRequested() |
protected void |
migrateRepository(String repositoryName) |
protected void |
migrateSession(CoreSession session) |
protected void |
reportProgress(String message,
long num,
long total) |
protected void |
reportProgress(String repositoryName,
String message,
long num,
long total) |
void |
run(MigrationService.MigrationContext migrationContext)
Runs the migration.
|
protected static final int BATCH_SIZE
protected MigrationService.MigrationContext migrationContext
public TrashedStateLifeCycleToPropertyMigrator()
public void run(MigrationService.MigrationContext migrationContext)
MigrationService.Migrator
This method should periodically check for MigrationService.MigrationContext.isShutdownRequested()
and
Thread.isInterrupted()
and return if true
.
run
in interface MigrationService.Migrator
migrationContext
- the migration context.protected void checkShutdownRequested()
protected void reportProgress(String message, long num, long total)
protected void reportProgress(String repositoryName, String message, long num, long total)
protected void migrateRepository(String repositoryName)
protected void migrateSession(CoreSession session)
Copyright © 2018 Nuxeo. All rights reserved.