public class GridOsCacheDrManager<K,V> extends Object implements GridCacheDrManager<K,V>
GridCacheDrManager.| Constructor and Description |
|---|
GridOsCacheDrManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeExchange(long topVer,
boolean left)
Process partitions "before exchange" event.
|
GridCacheVersionAbstractConflictResolver |
conflictResolver() |
byte |
dataCenterId() |
boolean |
enabled() |
void |
onKernalStart() |
void |
onKernalStop(boolean cancel) |
void |
onReceiveCacheConflictResolved(boolean useNew,
boolean useOld,
boolean merge)
Callback for manual conflict resolution.
|
void |
onReceiveCacheEntriesReceived(int entriesCnt)
Callback for received entries from receiver hub.
|
void |
partitionEvicted(int part)
In case some partition is evicted, we remove entries of this partition from backup queue.
|
void |
printMemoryStats()
Prints memory statistics (sizes of internal data structures, etc.).
|
boolean |
receiveEnabled() |
void |
replicate(K key,
byte[] keyBytes,
V val,
byte[] valBytes,
long ttl,
long expireTime,
GridCacheVersion ver,
GridDrType drType)
Performs replication.
|
void |
resetMetrics()
Resets metrics for current cache.
|
void |
start(GridCacheContext<K,V> cctx)
Starts manager.
|
void |
stop(boolean cancel)
Stops manager.
|
public boolean enabled()
enabled in interface GridCacheDrManager<K,V>True is DR is enabled.public void start(GridCacheContext<K,V> cctx) throws IgniteCheckedException
start in interface GridCacheManager<K,V>cctx - Context.IgniteCheckedException - If failed.public void stop(boolean cancel)
stop in interface GridCacheManager<K,V>cancel - Cancel flag.public void onKernalStart()
throws IgniteCheckedException
onKernalStart in interface GridCacheManager<K,V>IgniteCheckedException - If failed.public void onKernalStop(boolean cancel)
onKernalStop in interface GridCacheManager<K,V>cancel - Cancel flag.public void printMemoryStats()
printMemoryStats in interface GridCacheManager<K,V>public byte dataCenterId()
dataCenterId in interface GridCacheDrManager<K,V>public GridCacheVersionAbstractConflictResolver conflictResolver()
conflictResolver in interface GridCacheDrManager<K,V>public void replicate(K key, @Nullable byte[] keyBytes, @Nullable V val, @Nullable byte[] valBytes, long ttl, long expireTime, GridCacheVersion ver, GridDrType drType)
replicate in interface GridCacheDrManager<K,V>key - Key.keyBytes - Key bytes.val - Value.valBytes - Value bytes.ttl - TTL.expireTime - Expire time.ver - Version.drType - Replication type.public void beforeExchange(long topVer,
boolean left)
throws IgniteCheckedException
beforeExchange in interface GridCacheDrManager<K,V>topVer - Topology version.left - True if exchange has been caused by node leave.IgniteCheckedException - If failed.public void partitionEvicted(int part)
partitionEvicted in interface GridCacheDrManager<K,V>part - Partition.public void onReceiveCacheEntriesReceived(int entriesCnt)
onReceiveCacheEntriesReceived in interface GridCacheDrManager<K,V>entriesCnt - Number of received entries.public void onReceiveCacheConflictResolved(boolean useNew,
boolean useOld,
boolean merge)
onReceiveCacheConflictResolved in interface GridCacheDrManager<K,V>useNew - Use new.useOld - Use old.merge - Merge.public void resetMetrics()
resetMetrics in interface GridCacheDrManager<K,V>public boolean receiveEnabled()
receiveEnabled in interface GridCacheDrManager<K,V>True if receives DR data.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015