Package org.infinispan.upgrade
Interface TargetMigrator
-
- All Known Implementing Classes:
HotRodTargetMigrator
,RestTargetMigrator
public interface TargetMigrator
Performs migration operations on the target server or cluster of servers- Since:
- 5.2
- Author:
- Tristan Tarrant
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
disconnectSource(Cache<java.lang.Object,java.lang.Object> cache)
Disconnects the target from the source.java.lang.String
getName()
Returns the name of this migratorlong
synchronizeData(Cache<java.lang.Object,java.lang.Object> cache)
Performs the synchronization of data between source and targetlong
synchronizeData(Cache<java.lang.Object,java.lang.Object> cache, int readBatch, int threads)
Performs the synchronization of data between source and target
-
-
-
Method Detail
-
getName
java.lang.String getName()
Returns the name of this migrator
-
synchronizeData
long synchronizeData(Cache<java.lang.Object,java.lang.Object> cache) throws CacheException
Performs the synchronization of data between source and target- Throws:
CacheException
-
synchronizeData
long synchronizeData(Cache<java.lang.Object,java.lang.Object> cache, int readBatch, int threads) throws CacheException
Performs the synchronization of data between source and target- Throws:
CacheException
-
disconnectSource
void disconnectSource(Cache<java.lang.Object,java.lang.Object> cache) throws CacheException
Disconnects the target from the source. This operation is the last step that must be performed after a rolling upgrade.- Throws:
CacheException
-
-