Class DriverMigration
java.lang.Object
com.sk89q.worldguard.protection.managers.migration.DriverMigration
- All Implemented Interfaces:
Migration
Handles migration from one region store driver to another.
-
Constructor Summary
ConstructorsConstructorDescriptionDriverMigration
(RegionDriver driver, RegionDriver target, FlagRegistry flagRegistry) Create a new instance. -
Method Summary
Modifier and TypeMethodDescriptionfinal void
migrate()
Execute the migration.protected void
migrate
(RegionDatabase store) Called for all the worlds in the driver.protected void
Called after migration has successfully completed.
-
Constructor Details
-
DriverMigration
Create a new instance.- Parameters:
driver
- the source storage drivertarget
- the target storage driverflagRegistry
- the flag registry
-
-
Method Details
-
migrate
Called for all the worlds in the driver.- Parameters:
store
- the region store- Throws:
MigrationException
- on migration error
-
postMigration
protected void postMigration()Called after migration has successfully completed. -
migrate
Description copied from interface:Migration
Execute the migration.- Specified by:
migrate
in interfaceMigration
- Throws:
MigrationException
- thrown if the migration fails
-