Class HotRodTargetMigrator
java.lang.Object
org.infinispan.persistence.remote.upgrade.HotRodTargetMigrator
- All Implemented Interfaces:
TargetMigrator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
connectSource
(Cache<Object, Object> cache, StoreConfiguration configuration) Connects the target cluster to the source cluster through a Remote Store.void
disconnectSource
(Cache<Object, Object> cache) Disconnects the target from the source.getName()
Returns the name of this migratorboolean
isConnected
(Cache<Object, Object> cache) Check if a cluster is connected to other for doing rolling upgradeslong
synchronizeData
(Cache<Object, Object> cache) Performs the synchronization of data between source and targetlong
synchronizeData
(Cache<Object, Object> cache, int readBatch, int threads) Performs the synchronization of data between source and target
-
Constructor Details
-
HotRodTargetMigrator
public HotRodTargetMigrator()
-
-
Method Details
-
getName
Description copied from interface:TargetMigrator
Returns the name of this migrator- Specified by:
getName
in interfaceTargetMigrator
-
synchronizeData
Description copied from interface:TargetMigrator
Performs the synchronization of data between source and target- Specified by:
synchronizeData
in interfaceTargetMigrator
- Throws:
CacheException
-
synchronizeData
public long synchronizeData(Cache<Object, Object> cache, int readBatch, int threads) throws CacheExceptionDescription copied from interface:TargetMigrator
Performs the synchronization of data between source and target- Specified by:
synchronizeData
in interfaceTargetMigrator
- Throws:
CacheException
-
disconnectSource
Description copied from interface:TargetMigrator
Disconnects the target from the source. This operation is the last step that must be performed after a rolling upgrade.- Specified by:
disconnectSource
in interfaceTargetMigrator
- Throws:
CacheException
-
connectSource
Description copied from interface:TargetMigrator
Connects the target cluster to the source cluster through a Remote Store.- Specified by:
connectSource
in interfaceTargetMigrator
- Parameters:
cache
- The cache to add the store toconfiguration
- The configuration of the store
-
isConnected
Description copied from interface:TargetMigrator
Check if a cluster is connected to other for doing rolling upgrades- Specified by:
isConnected
in interfaceTargetMigrator
- Parameters:
cache
- The cache name- Returns:
- true if the cache has a remote store pointing to another cluster ready to do rolling upgrades.
-