public class GridOsCacheDrManager<K,V> extends Object implements GridCacheDrManager<K,V>
GridCacheDrManager.| Constructor and Description |
|---|
GridOsCacheDrManager() |
| Modifier and Type | Method and Description |
|---|---|
int |
backupQueueSize() |
int |
batchWaitingAcknowledgeCount() |
int |
batchWaitingSendCount() |
void |
beforeExchange(long topVer,
boolean left)
Process partitions "before exchange" event.
|
GridDrStatus |
drPauseState()
Get DR pause state.
|
Collection<GridDrStateTransferDescriptor> |
listStateTransfers()
List currently active state transfers.
|
void |
onKernalStart() |
void |
onKernalStop(boolean cancel) |
void |
partitionEvicted(int part)
In case some partition is evicted, we remove entries of this partition from backup queue.
|
void |
pause()
Pauses data center replication.
|
void |
printMemoryStats()
Prints memory statistics (sizes of internal data structures, etc.).
|
int |
queuedKeysCount() |
void |
replicate(GridDrRawEntry<K,V> entry,
GridDrType drType)
Perform replication.
|
void |
resume()
Resumes data center replication.
|
int |
senderHubsCount() |
void |
start(GridCacheContext<K,V> cctx)
Starts manager.
|
GridFuture<?> |
stateTransfer(Collection<Byte> dataCenterIds)
Initiate state transfer.
|
void |
stop(boolean cancel)
Stops manager.
|
public void start(GridCacheContext<K,V> cctx) throws GridException
start in interface GridCacheManager<K,V>cctx - Context.GridException - If failed.public void stop(boolean cancel)
stop in interface GridCacheManager<K,V>cancel - Cancel flag.public void onKernalStart()
throws GridException
onKernalStart in interface GridCacheManager<K,V>GridException - 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 void replicate(GridDrRawEntry<K,V> entry, GridDrType drType)
replicate in interface GridCacheDrManager<K,V>entry - Replication entry.drType - Replication type.public void beforeExchange(long topVer,
boolean left)
throws GridException
beforeExchange in interface GridCacheDrManager<K,V>topVer - Topology version.left - True if exchange has been caused by node leave.GridException - If failed.public void partitionEvicted(int part)
partitionEvicted in interface GridCacheDrManager<K,V>part - Partition.public GridFuture<?> stateTransfer(Collection<Byte> dataCenterIds)
stateTransfer in interface GridCacheDrManager<K,V>dataCenterIds - Target data center IDs.public Collection<GridDrStateTransferDescriptor> listStateTransfers() throws GridException
listStateTransfers in interface GridCacheDrManager<K,V>GridException - If failed.public void pause()
throws GridException
pause in interface GridCacheDrManager<K,V>GridException - If failed.public void resume()
throws GridException
resume in interface GridCacheDrManager<K,V>GridException - If failed.public GridDrStatus drPauseState()
drPauseState in interface GridCacheDrManager<K,V>public int queuedKeysCount()
queuedKeysCount in interface GridCacheDrManager<K,V>public int backupQueueSize()
backupQueueSize in interface GridCacheDrManager<K,V>public int batchWaitingSendCount()
batchWaitingSendCount in interface GridCacheDrManager<K,V>public int batchWaitingAcknowledgeCount()
batchWaitingAcknowledgeCount in interface GridCacheDrManager<K,V>public int senderHubsCount()
senderHubsCount in interface GridCacheDrManager<K,V>Copyright © 2014. All rights reserved.