Interface TargetMigrator


  • public interface TargetMigrator
    Performs migration operations on the target server or cluster of servers
    Since:
    5.2
    Author:
    Tristan Tarrant
    • Method Detail

      • getName

        String getName()
        Returns the name of this migrator
      • synchronizeData

        long synchronizeData​(Cache<Object,​Object> cache)
                      throws org.infinispan.commons.CacheException
        Performs the synchronization of data between source and target
        Throws:
        org.infinispan.commons.CacheException
      • synchronizeData

        long synchronizeData​(Cache<Object,​Object> cache,
                             int readBatch,
                             int threads)
                      throws org.infinispan.commons.CacheException
        Performs the synchronization of data between source and target
        Throws:
        org.infinispan.commons.CacheException
      • disconnectSource

        void disconnectSource​(Cache<Object,​Object> cache)
                       throws org.infinispan.commons.CacheException
        Disconnects the target from the source. This operation is the last step that must be performed after a rolling upgrade.
        Throws:
        org.infinispan.commons.CacheException