public class GridOsCacheDrManager extends Object implements GridCacheDrManager
GridCacheDrManager.| Constructor and Description |
|---|
GridOsCacheDrManager() |
| Modifier and Type | Method and Description |
|---|---|
byte |
dataCenterId() |
boolean |
enabled() |
void |
onDisconnected(IgniteFuture reconnectFut) |
void |
onExchange(AffinityTopologyVersion topVer,
boolean left)
Process partitions exchange event.
|
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(KeyCacheObject key,
CacheObject val,
long ttl,
long expireTime,
GridCacheVersion ver,
GridDrType drType,
AffinityTopologyVersion topVer)
Performs replication.
|
void |
resetMetrics()
Resets metrics for current cache.
|
void |
start(GridCacheContext cctx)
Starts manager.
|
void |
stop(boolean cancel)
Stops manager.
|
public boolean enabled()
enabled in interface GridCacheDrManagerTrue is DR is enabled.public void start(GridCacheContext cctx) throws IgniteCheckedException
start in interface GridCacheManagercctx - Context.IgniteCheckedException - If failed.public void stop(boolean cancel)
stop in interface GridCacheManagercancel - Cancel flag.public void onKernalStart()
throws IgniteCheckedException
onKernalStart in interface GridCacheManagerIgniteCheckedException - If failed.public void onKernalStop(boolean cancel)
onKernalStop in interface GridCacheManagercancel - Cancel flag.public void printMemoryStats()
printMemoryStats in interface GridCacheManagerpublic byte dataCenterId()
dataCenterId in interface GridCacheDrManagerpublic void replicate(KeyCacheObject key, @Nullable CacheObject val, long ttl, long expireTime, GridCacheVersion ver, GridDrType drType, AffinityTopologyVersion topVer)
replicate in interface GridCacheDrManagerkey - Key.val - Value.ttl - TTL.expireTime - Expire time.ver - Version.drType - Replication type.topVer - Topology version.public void onExchange(AffinityTopologyVersion topVer, boolean left) throws IgniteCheckedException
onExchange in interface GridCacheDrManagertopVer - Topology version.left - True if exchange has been caused by node leave.IgniteCheckedException - If failed.public void partitionEvicted(int part)
partitionEvicted in interface GridCacheDrManagerpart - Partition.public void onReceiveCacheEntriesReceived(int entriesCnt)
onReceiveCacheEntriesReceived in interface GridCacheDrManagerentriesCnt - Number of received entries.public void onReceiveCacheConflictResolved(boolean useNew,
boolean useOld,
boolean merge)
onReceiveCacheConflictResolved in interface GridCacheDrManageruseNew - Use new.useOld - Use old.merge - Merge.public void resetMetrics()
resetMetrics in interface GridCacheDrManagerpublic boolean receiveEnabled()
receiveEnabled in interface GridCacheDrManagerTrue if receives DR data.public void onDisconnected(IgniteFuture reconnectFut)
onDisconnected in interface GridCacheManagerreconnectFut - Reconnect future.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.9.0 Release Date : March 2 2017