Package org.nuxeo.ecm.core.storage.dbs
Class BlobKeysBulkMigrator
java.lang.Object
org.nuxeo.ecm.core.migrator.AbstractBulkMigrator
org.nuxeo.ecm.core.storage.dbs.BlobKeysBulkMigrator
- All Implemented Interfaces:
MigrationService.Migrator
Migrator to populate the
ecm:blobKeys
field in DBS repositories.- Since:
- 2023
-
Nested Class Summary
Nested classes/interfaces inherited from class org.nuxeo.ecm.core.migrator.AbstractBulkMigrator
AbstractBulkMigrator.MigrationAction, AbstractBulkMigrator.MigrationComputation
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
Fields inherited from class org.nuxeo.ecm.core.migrator.AbstractBulkMigrator
descriptor, MIGRATION_PROCESSOR_NAME, PARAM_MIGRATION_ID, PARAM_MIGRATION_STEP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
compute
(CoreSession session, List<String> ids, Map<String, Serializable> properties) Executes the migration on the given batch.protected String
void
Allows notification of status change for a running step or new state.protected String
probeSession
(CoreSession session) Probes the current state of asession
by analyzing persistent data.Methods inherited from class org.nuxeo.ecm.core.migrator.AbstractBulkMigrator
clearRunningBulkCommands, createBulkCommand, getBulkCommandsKey, getKeyValueStore, getRunningBulkCommands, probeState, run, saveRunningBulkCommands
-
Field Details
-
MIGRATION_ID
- See Also:
-
MIGRATION_BEFORE_STATE
- See Also:
-
MIGRATION_AFTER_STATE
- See Also:
-
MIGRATION_UNSUPPORTED_STATE
- See Also:
-
MIGRATION_BEFORE_TO_AFTER_STEP
- See Also:
-
-
Constructor Details
-
BlobKeysBulkMigrator
-
-
Method Details
-
probeSession
Description copied from class:AbstractBulkMigrator
Probes the current state of asession
by analyzing persistent data.Assumes no migration step is currently running.
- Specified by:
probeSession
in classAbstractBulkMigrator
- Returns:
- the probed state, or
null
if it cannot be determined
-
getNXQLScrollQuery
- Specified by:
getNXQLScrollQuery
in classAbstractBulkMigrator
- Returns:
- the NXQL query to scroll for bulk migration
-
compute
Description copied from class:AbstractBulkMigrator
Executes the migration on the given batch. The migration step is given throughproperties
with the keyAbstractBulkMigrator.PARAM_MIGRATION_STEP
.This method is called by the
AbstractBulkMigrator.MigrationComputation
, the transaction is handled by it.- Specified by:
compute
in classAbstractBulkMigrator
-
notifyStatusChange
public void notifyStatusChange()Description copied from interface:MigrationService.Migrator
Allows notification of status change for a running step or new state.
-