All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.upgrade.TargetMigrator Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
package org.infinispan.upgrade;

import org.infinispan.Cache;
import org.infinispan.commons.CacheException;

/**
 * Performs migration operations on the target server or cluster of servers
 *
 * @author Tristan Tarrant
 * @since 5.2
 */
public interface TargetMigrator {
   /**
    * Returns the name of this migrator
    */
   String getName();
   /**
    * Performs the synchronization of data between source and target
    */
   long synchronizeData(Cache cache) throws CacheException;

   /**
    * Performs the synchronization of data between source and target
    */
   long synchronizeData(Cache cache, int readBatch, int threads) throws CacheException;

   /**
    * Disconnects the target from the source. This operation is the last step that must be performed after a rolling upgrade.
    */
   void disconnectSource(Cache cache) throws CacheException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy