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:
java.util.concurrent.Callable<java.lang.Integer>

public class EhCacheConfigMigrator
extends java.lang.Object
implements java.util.concurrent.Callable<java.lang.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
 java.lang.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 java.lang.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 java.util.concurrent.Callable<java.lang.Integer>
Throws:
EhCacheConfigMigrationException

migrateConfig

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


Copyright © 2003-2014 Atlassian. All Rights Reserved.