Class EhCacheConfigMigrator
- java.lang.Object
-
- com.atlassian.confluence.cache.ehcache.config.migration.EhCacheConfigMigrator
-
public class EhCacheConfigMigrator extends Object implements Callable<Integer>
Migrates a legacy ehcache.xml file from the confluence home directory to the new ehcache.properties format by extracting the relevant data from the xml file.Implements
Callablebecause it needs to be invoked by an upgrade task which can't refer directly to this class.- Since:
- 5.3
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEhCacheConfigMigrator.MigrationResult
-
Constructor Summary
Constructors Constructor Description EhCacheConfigMigrator(BootstrapManager bootstrapManager, EhCacheConfigStore ehCacheConfigStore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integercall()This method allows an upgrade task in Confluence Core to invoke this class without requiring visibility of the class.EhCacheConfigMigrator.MigrationResultmigrateConfig()
-
-
-
Constructor Detail
-
EhCacheConfigMigrator
public EhCacheConfigMigrator(BootstrapManager bootstrapManager, EhCacheConfigStore ehCacheConfigStore)
-
-
Method Detail
-
call
public Integer call() throws EhCacheConfigMigrationException
This method allows an upgrade task in Confluence Core to invoke this class without requiring visibility of the class.- Specified by:
callin interfaceCallable<Integer>- Throws:
EhCacheConfigMigrationException
-
migrateConfig
public EhCacheConfigMigrator.MigrationResult migrateConfig() throws EhCacheConfigMigrationException
- Throws:
EhCacheConfigMigrationException
-
-