Class MultiTenancyMigration
java.lang.Object
io.camunda.zeebe.engine.state.migration.to_8_3.MultiTenancyMigration
- All Implemented Interfaces:
MigrationTask
This migration is used to extend the data with tenant information. Before this migration, no
tenant information was stored in the state. Therefore, we're considering all existing data to be
part of the default tenant.
This migration will set the tenant id of all existing data to the default tenant id. Both in values and in keys. When the key has changed, the data is moved to a new column family.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns identifier for the migration task.void
runMigration
(MutableProcessingState processingState) Implementations of this method perform the actual migrationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.camunda.zeebe.engine.state.migration.MigrationTask
needsToRun
-
Constructor Details
-
MultiTenancyMigration
public MultiTenancyMigration()
-
-
Method Details
-
getIdentifier
Description copied from interface:MigrationTask
Returns identifier for the migration task.The identifier is used for logging.
In the future, it might also be used to store the migrations that were run in persistent state
- Specified by:
getIdentifier
in interfaceMigrationTask
- Returns:
- identifier for the migration task
-
runMigration
Description copied from interface:MigrationTask
Implementations of this method perform the actual migration- Specified by:
runMigration
in interfaceMigrationTask
- Parameters:
processingState
- the mutable Zeebe state
-