Class RollingUpgradeManager


  • public class RollingUpgradeManager
    extends java.lang.Object
    This component handles the control hooks to handle migrating from one version of Infinispan to another.
    Since:
    5.2
    Author:
    Manik Surtani, Tristan Tarrant
    • Constructor Detail

      • RollingUpgradeManager

        public RollingUpgradeManager()
    • Method Detail

      • synchronizeData

        public long synchronizeData​(java.lang.String migratorName)
                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • synchronizeData

        public long synchronizeData​(java.lang.String migratorName,
                                    int readBatch,
                                    int threads)
                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • disconnectSource

        public void disconnectSource​(java.lang.String migratorName)
                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • addSourceMigrator

        public void addSourceMigrator​(SourceMigrator migrator)
        Registers a migrator for a specific data format or endpoint. In the Infinispan ecosystem, we'd typically have one Migrator implementation for Hot Rod, one for memcached, one for REST and one for embedded/in-VM mode, and these would typically be added to the upgrade manager on first access via any of these protocols.
        Parameters:
        migrator -