Infinispan Distribution 5.2.6.Final-redhat-2

org.infinispan.upgrade
Interface TargetMigrator

All Known Implementing Classes:
HotRodTargetMigrator

public interface TargetMigrator

Performs migration operations on the target server or cluster of servers

Since:
5.2
Author:
Tristan Tarrant

Method Summary
 void disconnectSource(Cache<Object,Object> cache)
          Disconnects the target from the source.
 String getName()
          Returns the name of this migrator
 long synchronizeData(Cache<Object,Object> cache)
          Performs the synchronization of data between source and target by retrieving the set of known keys and fetching each key in turn
 

Method Detail

getName

String getName()
Returns the name of this migrator


synchronizeData

long synchronizeData(Cache<Object,Object> cache)
                     throws CacheException
Performs the synchronization of data between source and target by retrieving the set of known keys and fetching each key in turn

Throws:
CacheException

disconnectSource

void disconnectSource(Cache<Object,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

Infinispan Distribution 5.2.6.Final-redhat-2

Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.