public class ReplicationNode extends Object implements IReplicationNode, IIncomingReplicationHandler, IIncomingReplicationFacade, IReplicationTargetGroupStateListener, IReplicationSourceGroupStateListener
IReplicationNode
interfaceModifier and Type | Class and Description |
---|---|
class |
ReplicationNode.StatisticsMonitor |
Constructor and Description |
---|
ReplicationNode(ReplicationNodeConfig replicationNodeConfig,
IReplicationNodeBuilder nodeBuilder,
String name,
MetricRegistrator metricRegister) |
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(AbstractReplicationPacket<T> packet) |
void |
clearStaleReplicas(long expirationTime) |
void |
close()
Closes the node, once closed the node is no longer usable.
|
IReplicationOutContext |
createContext() |
String |
dumpState() |
int |
execute(IReplicationOutContext context)
Executes the accumulated replication according to the given context
|
boolean |
flushPendingReplication(long timeout,
TimeUnit units) |
int |
flushRedoLogToStorage() |
IReplicationNodeAdmin |
getAdmin() |
IRedoLogStatistics |
getBackLogStatistics() |
BlobStoreReplicaConsumeHelper |
getBlobStoreReplicaConsumeHelper() |
BlobStoreReplicationBulkConsumeHelper |
getBlobStoreReplicationBulkConsumeHelper() |
DirectPersistencyBackupSyncIteratorHandler |
getDirectPersistencyBackupSyncIteratorHandler() |
IDirectPersistencySyncHandler |
getDirectPesistencySyncHandler() |
ReplicationEndpointDetails |
getEndpointDetails() |
IReplicationGroupBacklog |
getGroupBacklogByRequestContext(Object requestContext) |
String |
getLogPrefix() |
MetricRegistrator |
getMetricRegister() |
String |
getName() |
Collection<ISpaceReplicaData> |
getNextReplicaBatch(Object context,
int fetchBatchSize) |
RouterStubHolder |
getRemoteRouterStub(String routerLookupName) |
ReplicationNodeReplicaHandler |
getReplicaHandler() |
IReplicationRouter |
getReplicationRouter() |
ReplicationRouterBuilder |
getReplicationRouterBuilder() |
IReplicationSourceGroup |
getReplicationSourceGroup(String groupName) |
IReplicationTargetGroup |
getReplicationTargetGroup(String groupName) |
IReplicationRouterAdmin |
getRouterAdmin() |
Object |
getUniqueId() |
void |
monitorState(OperationWeightInfo info) |
Object |
newReplicaRequest(String requesterLookupName,
ReplicaRequestPacket replicaRequestPacket) |
CurrentStageInfo |
nextReplicaStage(Object replicaRemoteContext) |
void |
onNewReplicaRequest(String groupName,
String channelName,
boolean isSynchronizeRequest) |
<T> T |
onReplication(AbstractReplicationPacket<T> packet)
Handles incoming replication packet
|
void |
onSourceBrokenReplicationTopology(String groupName,
String channelMemberName,
BrokenReplicationTopologyException error) |
void |
onSourceChannelActivated(String groupName,
String memberName) |
void |
onTargetChannelBacklogDropped(String groupName,
String channelSourceLooString,
IBacklogMemberState memberState)
Called when a target channel received a notice that its backlog was dropped at the source
|
void |
onTargetChannelConnected(String groupName,
String sourceMemberName,
Object sourceUniqueId)
Called when a target channel is connected/created
|
void |
onTargetChannelCreationValidation(String groupName,
String sourceMemberName,
Object sourceUniqueId)
Called when a new channel is being established, just before the channel is created to allow
custom validation logic.
|
boolean |
onTargetChannelOutOfSync(String groupName,
String channelSourceLookupName,
IncomingReplicationOutOfSyncException outOfSyncReason)
Called when a target channel failed handshake due to becoming out of sync
|
void |
onTargetChannelSourceDisconnected(String groupName,
String sourceMemberName,
Object sourceUniqueId)
Called when a target channel lost connection to its source
|
void |
outCancelEntryLease(IReplicationOutContext context,
IEntryHolder entryHolder)
Notify replication node that an entry lease was canceled
|
void |
outChangeEntry(IReplicationOutContext context,
IEntryHolder entryHolder)
Notify replication node that an entry was changed
|
void |
outDataTypeAddIndex(IReplicationOutContext context,
AddTypeIndexesRequestInfo addIndexesRequest)
Notify the replication node that new index was added to this data type
|
void |
outDataTypeDrop(IReplicationOutContext context,
String className) |
void |
outDataTypeIntroduce(IReplicationOutContext context,
ITypeDesc typeDescriptor)
Notify the replication node that new data type was introduced
|
void |
outEntryLeaseExpired(IReplicationOutContext context,
IEntryHolder entryHolder)
Notify replication node that an entry lease expired
|
void |
outEvictEntry(IReplicationOutContext context,
IEntryHolder entryHolder)
Notify replication node that an entry was evicted
|
void |
outExtendEntryLeasePeriod(IReplicationOutContext context,
IEntryHolder entryHolder)
Notify replication node that an entry lease is extended
|
void |
outExtendNotifyTemplateLeasePeriod(IReplicationOutContext context,
NotifyTemplateHolder entryHolder)
Notify replication node that a notify template lease is extended
|
void |
outInsertNotifyTemplate(IReplicationOutContext context,
NotifyTemplateHolder templateHolder)
Notify replication node that a new notify template was inserted
|
void |
outNotificationSentAndExecute(OperationID operationId)
Notify and dispatch the replication event representing that a notification was sent
successfully
|
void |
outNotifyTemplateLeaseExpired(IReplicationOutContext context,
NotifyTemplateHolder templateHolder)
Notify replication node that an notify template lease expired
|
void |
outRemoveEntry(IReplicationOutContext context,
IEntryHolder entryHolder)
Notify replication node that an entry was removed
|
void |
outRemoveNotifyTemplate(IReplicationOutContext context,
NotifyTemplateHolder templateHolder)
Notify replication node that a notify template was removed
|
void |
outTransaction(IReplicationOutContext context,
ServerTransaction transaction,
ArrayList<IEntryHolder> lockedEntries)
Notify replication node that a transaction is executed in one stage (one phase commit)
|
void |
outTransactionAbort(IReplicationOutContext context,
ServerTransaction transaction)
Notify replication node that a transaction abort is executed (two phase commit)
|
void |
outTransactionCommit(IReplicationOutContext context,
ServerTransaction transaction)
Notify replication node that a transaction commit is executed (two phase commit)
|
void |
outTransactionPrepare(IReplicationOutContext context,
ServerTransaction transaction,
ArrayList<IEntryHolder> lockedEntries)
Notify replication node that a transaction prepare is executed (two phase commit)
|
void |
outUpdateEntry(IReplicationOutContext context,
IEntryHolder entryHolder)
Notify replication node that an entry was updated
|
void |
outWriteEntry(IReplicationOutContext context,
IEntryHolder entryHolder)
Notify replication node that a new entry was written
|
void |
rollbackCopyReplica(ISpaceCopyResult replicaResult) |
void |
setBlobStoreReplicaConsumeHelper(BlobStoreReplicaConsumeHelper blobStoreReplicaConsumeHelper) |
void |
setBlobStoreReplicationBulkConsumeHelper(BlobStoreReplicationBulkConsumeHelper blobStoreReplicationBulkConsumeHelper) |
void |
setDirectPersistencyBackupSyncIteratorHandler(DirectPersistencyBackupSyncIteratorHandler directPersistencyBackupSyncIteratorHandler) |
void |
setInBatchConsumptionHandler(IReplicationInBatchConsumptionHandler handler)
Sets a handler for incoming replication upon batch consumption completion
|
void |
setInDataTypeCreatedHandler(IReplicationInDataTypeCreatedHandler handler)
Sets a handler for incoming data type replication event which was generated by a different
node as a result of
IReplicationNode.outDataTypeIntroduce(IReplicationOutContext, ITypeDesc) |
void |
setInDataTypeDrop(SpaceReplicationMetadataEventHandler handler) |
void |
setInDataTypeIndexAddedHandler(IReplicationInDataTypeIndexAddedHandler handler)
Sets a handler for incoming data type add index replication event which was generated by a
different node as a result of
IReplicationNode.outDataTypeIntroduce(IReplicationOutContext,
ITypeDesc) |
void |
setInEntryHandler(IReplicationInEntryHandler handler)
Sets a handler for incoming write entry replication event which was generated by a different
node as a result of
IReplicationNode.outWriteEntry(IReplicationOutContext, IEntryHolder) |
void |
setInEntryLeaseCancelledHandler(IReplicationInEntryLeaseCancelledHandler handler)
Sets a handler for incoming cancel entry lease replication event which was generated by a
different node as a result of
IReplicationNode.outCancelEntryLease(IReplicationOutContext,
IEntryHolder) |
void |
setInEntryLeaseExpiredHandler(IReplicationInEntryLeaseExpiredHandler handler)
Sets a handler for incoming entry lease expired replication event which was generated by a
different node as a result of
IReplicationNode.outCancelEntryLease(IReplicationOutContext,
IEntryHolder) |
void |
setInEntryLeaseExtendedHandler(IReplicationInEntryLeaseExtendedHandler handler)
Sets a handler for incoming extend lease replication event which was generated by a different
node as a result of
IReplicationNode.outExtendEntryLeasePeriod(IReplicationOutContext, IEntryHolder) |
void |
setInEvictEntryHandler(IReplicationInEvictEntryHandler handler)
Sets a handler for incoming evict entry replication event which was generated by a different
node as a result of
IReplicationNode.outEvictEntry(IReplicationOutContext, IEntryHolder) |
void |
setInNotificationSentHandler(IReplicationInNotificationSentHandler handler)
Sets a handler for incoming notification sent event which was generated by a different node
as a result of
IReplicationNode.outNotificationSentAndExecute(OperationID) |
void |
setInNotifyTemplateCreatedHandler(IReplicationInNotifyTemplateCreatedHandler handler)
Sets a handler for incoming insert notify template replication event which was generated by a
different node as a result of
IReplicationNode.outInsertNotifyTemplate(IReplicationOutContext,
NotifyTemplateHolder) |
void |
setInNotifyTemplateLeaseExpiredHandler(IReplicationInNotifyTemplateLeaseExpiredHandler handler)
Sets a handler for incoming notify-template lease expired replication event which was
generated by a different node as a result of
IReplicationNode.outNotifyTemplateLeaseExpired(IReplicationOutContext,
NotifyTemplateHolder) |
void |
setInNotifyTemplateLeaseExtendedHandler(IReplicationInNotifyTemplateLeaseExtendedHandler handler)
Sets a handler for incoming extend lease replication event which was generated by a different
node as a result of
#outExtendNotifyTemplateLeasePeriod(IReplicationOutContext,
IEntryHolder) |
void |
setInNotifyTemplateRemovedHandler(IReplicationInNotifyTemplateRemovedHandler handler)
Sets a handler for incoming remove notify template replication event which was generated by a
different node as a result of
IReplicationNode.outRemoveNotifyTemplate(IReplicationOutContext,
NotifyTemplateHolder) |
void |
setInTransactionHandler(IReplicationInTransactionHandler handler)
Sets a handler for incoming transaction replication event which was generated by a different
node as a result of
#outTransaction(IReplicationOutContext, ServerTransaction,
ArrayList |
void |
setNodeStateListener(IReplicationNodeStateListener listener) |
void |
setTag(String tag) |
ISpaceCopyReplicaState |
spaceCopyReplicaRequest(ISpaceCopyReplicaRequestContext context)
Starts a space copy replica request, will copy the current state of a remote space.
|
ISpaceSynchronizeReplicaState |
spaceSynchronizeReplicaRequest(ISpaceSynchronizeReplicaRequestContext context)
Starts a space synchronize replica request, will copy the current state of a remote space and
synchronize with ongoing changes, the synchronization can only occurr if the target space has
replication channel to this space (Recovery).
|
String |
toString() |
public ReplicationNode(ReplicationNodeConfig replicationNodeConfig, IReplicationNodeBuilder nodeBuilder, String name, MetricRegistrator metricRegister)
public String getName()
public Object getUniqueId()
public IReplicationOutContext createContext()
createContext
in interface IReplicationNode
public int execute(IReplicationOutContext context)
IReplicationNode
execute
in interface IReplicationNode
context
- replication contextpublic ReplicationRouterBuilder getReplicationRouterBuilder()
public IReplicationRouter getReplicationRouter()
public IReplicationNodeAdmin getAdmin()
getAdmin
in interface IReplicationNode
public void outCancelEntryLease(IReplicationOutContext context, IEntryHolder entryHolder)
IReplicationNode
outCancelEntryLease
in interface IReplicationNode
context
- the context of the operationentryHolder
- entry of which its lease was canceledpublic void outEntryLeaseExpired(IReplicationOutContext context, IEntryHolder entryHolder)
IReplicationNode
outEntryLeaseExpired
in interface IReplicationNode
context
- the context of the operationentryHolder
- entry of which its lease expiredpublic void outNotifyTemplateLeaseExpired(IReplicationOutContext context, NotifyTemplateHolder templateHolder)
IReplicationNode
outNotifyTemplateLeaseExpired
in interface IReplicationNode
context
- the context of the operationtemplateHolder
- of which its lease expiredpublic void outEvictEntry(IReplicationOutContext context, IEntryHolder entryHolder)
IReplicationNode
outEvictEntry
in interface IReplicationNode
context
- the context of the operationentryHolder
- evicted entrypublic void outExtendEntryLeasePeriod(IReplicationOutContext context, IEntryHolder entryHolder)
IReplicationNode
outExtendEntryLeasePeriod
in interface IReplicationNode
context
- the context of the operationpublic void outExtendNotifyTemplateLeasePeriod(IReplicationOutContext context, NotifyTemplateHolder entryHolder)
IReplicationNode
outExtendNotifyTemplateLeasePeriod
in interface IReplicationNode
context
- the context of the operationpublic void outInsertNotifyTemplate(IReplicationOutContext context, NotifyTemplateHolder templateHolder)
IReplicationNode
outInsertNotifyTemplate
in interface IReplicationNode
context
- the context of the operationtemplateHolder
- inserted templatepublic void outNotificationSentAndExecute(OperationID operationId)
IReplicationNode
outNotificationSentAndExecute
in interface IReplicationNode
public void outRemoveEntry(IReplicationOutContext context, IEntryHolder entryHolder)
IReplicationNode
outRemoveEntry
in interface IReplicationNode
context
- the context of the operationentryHolder
- removed entrypublic void outRemoveNotifyTemplate(IReplicationOutContext context, NotifyTemplateHolder templateHolder)
IReplicationNode
outRemoveNotifyTemplate
in interface IReplicationNode
context
- the context of the operationtemplateHolder
- removed templatepublic void outTransaction(IReplicationOutContext context, ServerTransaction transaction, ArrayList<IEntryHolder> lockedEntries)
IReplicationNode
outTransaction
in interface IReplicationNode
transaction
- executed transactionlockedEntries
- entries participating in the transaction and their corresponding
operationpublic void outTransactionCommit(IReplicationOutContext context, ServerTransaction transaction)
IReplicationNode
outTransactionCommit
in interface IReplicationNode
transaction
- committed transactionpublic void outTransactionAbort(IReplicationOutContext context, ServerTransaction transaction)
IReplicationNode
outTransactionAbort
in interface IReplicationNode
transaction
- committed transactionpublic void outTransactionPrepare(IReplicationOutContext context, ServerTransaction transaction, ArrayList<IEntryHolder> lockedEntries)
IReplicationNode
outTransactionPrepare
in interface IReplicationNode
transaction
- prepared transactionlockedEntries
- entries participating in the transaction and their corresponding
operationpublic void outUpdateEntry(IReplicationOutContext context, IEntryHolder entryHolder)
IReplicationNode
outUpdateEntry
in interface IReplicationNode
context
- the context of the operationentryHolder
- updated entrypublic void outChangeEntry(IReplicationOutContext context, IEntryHolder entryHolder)
IReplicationNode
outChangeEntry
in interface IReplicationNode
context
- the context of the operationentryHolder
- mutated entrypublic void outWriteEntry(IReplicationOutContext context, IEntryHolder entryHolder)
IReplicationNode
outWriteEntry
in interface IReplicationNode
context
- the context of the operationentryHolder
- written entrypublic void outDataTypeIntroduce(IReplicationOutContext context, ITypeDesc typeDescriptor)
IReplicationNode
outDataTypeIntroduce
in interface IReplicationNode
typeDescriptor
- the updated type descriptorpublic void outDataTypeDrop(IReplicationOutContext context, String className)
outDataTypeDrop
in interface IReplicationNode
public void outDataTypeAddIndex(IReplicationOutContext context, AddTypeIndexesRequestInfo addIndexesRequest)
IReplicationNode
outDataTypeAddIndex
in interface IReplicationNode
public void setInEvictEntryHandler(IReplicationInEvictEntryHandler handler)
IReplicationNode
IReplicationNode.outEvictEntry(IReplicationOutContext, IEntryHolder)
setInEvictEntryHandler
in interface IReplicationNode
public void setInNotificationSentHandler(IReplicationInNotificationSentHandler handler)
IReplicationNode
IReplicationNode.outNotificationSentAndExecute(OperationID)
setInNotificationSentHandler
in interface IReplicationNode
public void setInTransactionHandler(IReplicationInTransactionHandler handler)
IReplicationNode
#outTransaction(IReplicationOutContext, ServerTransaction,
ArrayList)
setInTransactionHandler
in interface IReplicationNode
public void setInEntryHandler(IReplicationInEntryHandler handler)
IReplicationNode
IReplicationNode.outWriteEntry(IReplicationOutContext, IEntryHolder)
setInEntryHandler
in interface IReplicationNode
public void setInEntryLeaseCancelledHandler(IReplicationInEntryLeaseCancelledHandler handler)
IReplicationNode
IReplicationNode.outCancelEntryLease(IReplicationOutContext,
IEntryHolder)
setInEntryLeaseCancelledHandler
in interface IReplicationNode
public void setInEntryLeaseExtendedHandler(IReplicationInEntryLeaseExtendedHandler handler)
IReplicationNode
IReplicationNode.outExtendEntryLeasePeriod(IReplicationOutContext, IEntryHolder)
setInEntryLeaseExtendedHandler
in interface IReplicationNode
public void setInEntryLeaseExpiredHandler(IReplicationInEntryLeaseExpiredHandler handler)
IReplicationNode
IReplicationNode.outCancelEntryLease(IReplicationOutContext,
IEntryHolder)
setInEntryLeaseExpiredHandler
in interface IReplicationNode
public void setInNotifyTemplateCreatedHandler(IReplicationInNotifyTemplateCreatedHandler handler)
IReplicationNode
IReplicationNode.outInsertNotifyTemplate(IReplicationOutContext,
NotifyTemplateHolder)
setInNotifyTemplateCreatedHandler
in interface IReplicationNode
public void setInNotifyTemplateRemovedHandler(IReplicationInNotifyTemplateRemovedHandler handler)
IReplicationNode
IReplicationNode.outRemoveNotifyTemplate(IReplicationOutContext,
NotifyTemplateHolder)
setInNotifyTemplateRemovedHandler
in interface IReplicationNode
public void setInNotifyTemplateLeaseExtendedHandler(IReplicationInNotifyTemplateLeaseExtendedHandler handler)
IReplicationNode
#outExtendNotifyTemplateLeasePeriod(IReplicationOutContext,
IEntryHolder)
setInNotifyTemplateLeaseExtendedHandler
in interface IReplicationNode
public void setInNotifyTemplateLeaseExpiredHandler(IReplicationInNotifyTemplateLeaseExpiredHandler handler)
IReplicationNode
IReplicationNode.outNotifyTemplateLeaseExpired(IReplicationOutContext,
NotifyTemplateHolder)
setInNotifyTemplateLeaseExpiredHandler
in interface IReplicationNode
public void setInDataTypeCreatedHandler(IReplicationInDataTypeCreatedHandler handler)
IReplicationNode
IReplicationNode.outDataTypeIntroduce(IReplicationOutContext, ITypeDesc)
setInDataTypeCreatedHandler
in interface IReplicationNode
public void setInDataTypeDrop(SpaceReplicationMetadataEventHandler handler)
public void setInDataTypeIndexAddedHandler(IReplicationInDataTypeIndexAddedHandler handler)
IReplicationNode
IReplicationNode.outDataTypeIntroduce(IReplicationOutContext,
ITypeDesc)
setInDataTypeIndexAddedHandler
in interface IReplicationNode
public void setInBatchConsumptionHandler(IReplicationInBatchConsumptionHandler handler)
IReplicationNode
setInBatchConsumptionHandler
in interface IReplicationNode
public ISpaceSynchronizeReplicaState spaceSynchronizeReplicaRequest(ISpaceSynchronizeReplicaRequestContext context)
IReplicationNode
spaceSynchronizeReplicaRequest
in interface IReplicationNode
public ISpaceCopyReplicaState spaceCopyReplicaRequest(ISpaceCopyReplicaRequestContext context)
IReplicationNode
spaceCopyReplicaRequest
in interface IReplicationNode
public void rollbackCopyReplica(ISpaceCopyResult replicaResult)
rollbackCopyReplica
in interface IReplicationNode
public void close()
IReplicationNode
close
in interface IReplicationNode
public void setBlobStoreReplicationBulkConsumeHelper(BlobStoreReplicationBulkConsumeHelper blobStoreReplicationBulkConsumeHelper)
setBlobStoreReplicationBulkConsumeHelper
in interface IReplicationNode
public BlobStoreReplicationBulkConsumeHelper getBlobStoreReplicationBulkConsumeHelper()
getBlobStoreReplicationBulkConsumeHelper
in interface IReplicationNode
public <T> T onReplication(AbstractReplicationPacket<T> packet) throws RemoteException
IIncomingReplicationHandler
onReplication
in interface IIncomingReplicationHandler
packet
- incoming packetRemoteException
public IReplicationTargetGroup getReplicationTargetGroup(String groupName) throws NoSuchReplicationGroupExistException
getReplicationTargetGroup
in interface IIncomingReplicationFacade
NoSuchReplicationGroupExistException
public IReplicationSourceGroup getReplicationSourceGroup(String groupName) throws NoSuchReplicationGroupExistException
getReplicationSourceGroup
in interface IIncomingReplicationFacade
NoSuchReplicationGroupExistException
public IReplicationGroupBacklog getGroupBacklogByRequestContext(Object requestContext)
public RouterStubHolder getRemoteRouterStub(String routerLookupName)
getRemoteRouterStub
in interface IIncomingReplicationFacade
public ReplicationEndpointDetails getEndpointDetails()
getEndpointDetails
in interface IIncomingReplicationFacade
public <T> T accept(AbstractReplicationPacket<T> packet)
accept
in interface IReplicationNodePluginFacade
public Object newReplicaRequest(String requesterLookupName, ReplicaRequestPacket replicaRequestPacket)
newReplicaRequest
in interface IReplicaRequestFacade
public Collection<ISpaceReplicaData> getNextReplicaBatch(Object context, int fetchBatchSize)
getNextReplicaBatch
in interface IReplicaRequestFacade
public void clearStaleReplicas(long expirationTime)
public CurrentStageInfo nextReplicaStage(Object replicaRemoteContext)
nextReplicaStage
in interface IReplicaRequestFacade
public String getLogPrefix()
public IRedoLogStatistics getBackLogStatistics()
public int flushRedoLogToStorage()
public void monitorState(OperationWeightInfo info)
public void setNodeStateListener(IReplicationNodeStateListener listener)
public boolean onTargetChannelOutOfSync(String groupName, String channelSourceLookupName, IncomingReplicationOutOfSyncException outOfSyncReason)
IReplicationTargetGroupStateListener
onTargetChannelOutOfSync
in interface IReplicationTargetGroupStateListener
public void onTargetChannelBacklogDropped(String groupName, String channelSourceLooString, IBacklogMemberState memberState)
IReplicationTargetGroupStateListener
onTargetChannelBacklogDropped
in interface IReplicationTargetGroupStateListener
public void onTargetChannelCreationValidation(String groupName, String sourceMemberName, Object sourceUniqueId)
IReplicationTargetGroupStateListener
onTargetChannelCreationValidation
in interface IReplicationTargetGroupStateListener
public void onTargetChannelSourceDisconnected(String groupName, String sourceMemberName, Object sourceUniqueId)
IReplicationTargetGroupStateListener
onTargetChannelSourceDisconnected
in interface IReplicationTargetGroupStateListener
public void onTargetChannelConnected(String groupName, String sourceMemberName, Object sourceUniqueId)
IReplicationTargetGroupStateListener
onTargetChannelConnected
in interface IReplicationTargetGroupStateListener
public void onSourceBrokenReplicationTopology(String groupName, String channelMemberName, BrokenReplicationTopologyException error)
onSourceBrokenReplicationTopology
in interface IReplicationSourceGroupStateListener
public void onSourceChannelActivated(String groupName, String memberName)
onSourceChannelActivated
in interface IReplicationSourceGroupStateListener
public void onNewReplicaRequest(String groupName, String channelName, boolean isSynchronizeRequest)
public boolean flushPendingReplication(long timeout, TimeUnit units)
public String dumpState()
public IReplicationRouterAdmin getRouterAdmin()
public void setTag(String tag)
public void setBlobStoreReplicaConsumeHelper(BlobStoreReplicaConsumeHelper blobStoreReplicaConsumeHelper)
setBlobStoreReplicaConsumeHelper
in interface IReplicationNode
public BlobStoreReplicaConsumeHelper getBlobStoreReplicaConsumeHelper()
getBlobStoreReplicaConsumeHelper
in interface IReplicationNode
public IDirectPersistencySyncHandler getDirectPesistencySyncHandler()
getDirectPesistencySyncHandler
in interface IReplicationNode
public DirectPersistencyBackupSyncIteratorHandler getDirectPersistencyBackupSyncIteratorHandler()
getDirectPersistencyBackupSyncIteratorHandler
in interface IReplicationNode
public void setDirectPersistencyBackupSyncIteratorHandler(DirectPersistencyBackupSyncIteratorHandler directPersistencyBackupSyncIteratorHandler)
setDirectPersistencyBackupSyncIteratorHandler
in interface IReplicationNode
public MetricRegistrator getMetricRegister()
public ReplicationNodeReplicaHandler getReplicaHandler()
Copyright © GigaSpaces.