public interface IReplicationNode
| Modifier and Type | Method and Description | 
|---|---|
void | 
close()
Closes the node, once closed the node is no longer usable. 
 | 
IReplicationOutContext | 
createContext()  | 
int | 
execute(IReplicationOutContext replicationContext)
Executes the accumulated replication according to the given context 
 | 
IReplicationNodeAdmin | 
getAdmin()  | 
BlobStoreReplicaConsumeHelper | 
getBlobStoreReplicaConsumeHelper()  | 
BlobStoreReplicationBulkConsumeHelper | 
getBlobStoreReplicationBulkConsumeHelper()  | 
DirectPersistencyBackupSyncIteratorHandler | 
getDirectPersistencyBackupSyncIteratorHandler()  | 
IDirectPersistencySyncHandler | 
getDirectPesistencySyncHandler()  | 
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 | 
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 blobStoreReplicaHelper)  | 
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  
outDataTypeIntroduce(IReplicationOutContext, ITypeDesc) | 
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  
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  
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  
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  
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  
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  
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  
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  
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  
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  
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 | 
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). 
 | 
void outWriteEntry(IReplicationOutContext context, IEntryHolder entryHolder)
context - the context of the operationentryHolder - written entryvoid setInEntryHandler(IReplicationInEntryHandler handler)
outWriteEntry(IReplicationOutContext, IEntryHolder)void outUpdateEntry(IReplicationOutContext context, IEntryHolder entryHolder)
context - the context of the operationentryHolder - updated entryvoid outChangeEntry(IReplicationOutContext context, IEntryHolder entryHolder)
context - the context of the operationentryHolder - mutated entryvoid outRemoveEntry(IReplicationOutContext context, IEntryHolder entryHolder)
context - the context of the operationentryHolder - removed entryvoid outCancelEntryLease(IReplicationOutContext context, IEntryHolder entryHolder)
context - the context of the operationentryHolder - entry of which its lease was canceledvoid outEntryLeaseExpired(IReplicationOutContext context, IEntryHolder entryHolder)
context - the context of the operationentryHolder - entry of which its lease expiredvoid setInEntryLeaseCancelledHandler(IReplicationInEntryLeaseCancelledHandler handler)
outCancelEntryLease(IReplicationOutContext,
 IEntryHolder)void setInEntryLeaseExpiredHandler(IReplicationInEntryLeaseExpiredHandler handler)
outCancelEntryLease(IReplicationOutContext,
 IEntryHolder)void outEvictEntry(IReplicationOutContext context, IEntryHolder entryHolder)
context - the context of the operationentryHolder - evicted entryvoid setInEvictEntryHandler(IReplicationInEvictEntryHandler handler)
outEvictEntry(IReplicationOutContext, IEntryHolder)void outInsertNotifyTemplate(IReplicationOutContext context, NotifyTemplateHolder templateHolder)
context - the context of the operationtemplateHolder - inserted templatevoid setInNotifyTemplateCreatedHandler(IReplicationInNotifyTemplateCreatedHandler handler)
outInsertNotifyTemplate(IReplicationOutContext,
 NotifyTemplateHolder)void outRemoveNotifyTemplate(IReplicationOutContext context, NotifyTemplateHolder templateHolder)
context - the context of the operationtemplateHolder - removed templatevoid setInNotifyTemplateRemovedHandler(IReplicationInNotifyTemplateRemovedHandler handler)
outRemoveNotifyTemplate(IReplicationOutContext,
 NotifyTemplateHolder)void outNotifyTemplateLeaseExpired(IReplicationOutContext context, NotifyTemplateHolder templateHolder)
context - the context of the operationtemplateHolder - of which its lease expiredvoid setInNotifyTemplateLeaseExpiredHandler(IReplicationInNotifyTemplateLeaseExpiredHandler handler)
outNotifyTemplateLeaseExpired(IReplicationOutContext,
 NotifyTemplateHolder)void outExtendEntryLeasePeriod(IReplicationOutContext context, IEntryHolder entryHolder)
context - the context of the operationvoid setInNotifyTemplateLeaseExtendedHandler(IReplicationInNotifyTemplateLeaseExtendedHandler handler)
#outExtendNotifyTemplateLeasePeriod(IReplicationOutContext,
 IEntryHolder)void outExtendNotifyTemplateLeasePeriod(IReplicationOutContext context, NotifyTemplateHolder entryHolder)
context - the context of the operationvoid setInEntryLeaseExtendedHandler(IReplicationInEntryLeaseExtendedHandler handler)
outExtendEntryLeasePeriod(IReplicationOutContext, IEntryHolder)void outTransaction(IReplicationOutContext context, ServerTransaction transaction, ArrayList<IEntryHolder> lockedEntries)
transaction - executed transactionlockedEntries - entries participating in the transaction and their corresponding
                      operationvoid outTransactionPrepare(IReplicationOutContext context, ServerTransaction transaction, ArrayList<IEntryHolder> lockedEntries)
transaction - prepared transactionlockedEntries - entries participating in the transaction and their corresponding
                      operationvoid outTransactionCommit(IReplicationOutContext context, ServerTransaction transaction)
transaction - committed transactionvoid outTransactionAbort(IReplicationOutContext context, ServerTransaction transaction)
transaction - committed transactionvoid setInTransactionHandler(IReplicationInTransactionHandler handler)
#outTransaction(IReplicationOutContext, ServerTransaction,
 ArrayList) void outNotificationSentAndExecute(OperationID operationId)
OperationID - the operation Id of the eventvoid outDataTypeIntroduce(IReplicationOutContext context, ITypeDesc typeDescriptor)
typeDescriptor - the updated type descriptorvoid outDataTypeAddIndex(IReplicationOutContext context, AddTypeIndexesRequestInfo addIndexesRequest)
void setInDataTypeCreatedHandler(IReplicationInDataTypeCreatedHandler handler)
outDataTypeIntroduce(IReplicationOutContext, ITypeDesc)void setInDataTypeIndexAddedHandler(IReplicationInDataTypeIndexAddedHandler handler)
outDataTypeIntroduce(IReplicationOutContext,
 ITypeDesc)void setInNotificationSentHandler(IReplicationInNotificationSentHandler handler)
outNotificationSentAndExecute(OperationID)void setInBatchConsumptionHandler(IReplicationInBatchConsumptionHandler handler)
IReplicationOutContext createContext()
int execute(IReplicationOutContext replicationContext)
replicationContext - replication contextIReplicationNodeAdmin getAdmin()
ISpaceSynchronizeReplicaState spaceSynchronizeReplicaRequest(ISpaceSynchronizeReplicaRequestContext context)
ISpaceCopyReplicaState spaceCopyReplicaRequest(ISpaceCopyReplicaRequestContext context)
void rollbackCopyReplica(ISpaceCopyResult replicaResult)
void setBlobStoreReplicaConsumeHelper(BlobStoreReplicaConsumeHelper blobStoreReplicaHelper)
BlobStoreReplicaConsumeHelper getBlobStoreReplicaConsumeHelper()
IDirectPersistencySyncHandler getDirectPesistencySyncHandler()
DirectPersistencyBackupSyncIteratorHandler getDirectPersistencyBackupSyncIteratorHandler()
void setDirectPersistencyBackupSyncIteratorHandler(DirectPersistencyBackupSyncIteratorHandler directPersistencyBackupSyncIteratorHandler)
void close()
void setBlobStoreReplicationBulkConsumeHelper(BlobStoreReplicationBulkConsumeHelper blobStoreReplicationBulkConsumeHelper)
BlobStoreReplicationBulkConsumeHelper getBlobStoreReplicationBulkConsumeHelper()
Copyright © GigaSpaces.