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 TypeMethodDescriptionvoidmigrate()Execute the migration.protected voidmigrate(RegionDatabase store)Called for all the worlds in the driver.protected voidCalled 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:MigrationExecute the migration.- Specified by:
migratein interfaceMigration- Throws:
MigrationException- thrown if the migration fails
-