com.atlassian.confluence.cache.ehcache.config.migration
Class EhCacheConfigMigrator

java.lang.Object
  extended by 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

Nested Class Summary
static class EhCacheConfigMigrator.MigrationResult
           
 
Constructor Summary
EhCacheConfigMigrator(BootstrapManager bootstrapManager, EhCacheConfigStore ehCacheConfigStore)
           
 
Method Summary
 Integer call()
          This method allows an upgrade task in Confluence Core to invoke this class without requiring visibility of the class.
 EhCacheConfigMigrator.MigrationResult migrateConfig()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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:
call in interface Callable<Integer>
Throws:
EhCacheConfigMigrationException

migrateConfig

public EhCacheConfigMigrator.MigrationResult migrateConfig()
                                                    throws EhCacheConfigMigrationException
Throws:
EhCacheConfigMigrationException


Copyright © 2003–2015 Atlassian. All rights reserved.