com.atlassian.confluence.cache.ehcache.config.migration
Class EhCacheConfigMigrator
java.lang.Object
com.atlassian.confluence.cache.ehcache.config.migration.EhCacheConfigMigrator
- All Implemented Interfaces:
- Callable<Integer>
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 Callable
because it needs to be invoked by an upgrade task which can't refer directly to this class.
- Since:
- v5.3
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EhCacheConfigMigrator
public EhCacheConfigMigrator(BootstrapManager bootstrapManager,
EhCacheConfigStore ehCacheConfigStore)
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:
call
in interface Callable<Integer>
- Throws:
EhCacheConfigMigrationException
migrateConfig
public EhCacheConfigMigrator.MigrationResult migrateConfig()
throws EhCacheConfigMigrationException
- Throws:
EhCacheConfigMigrationException
Copyright © 2003–2015 Atlassian. All rights reserved.