public class ReplicationPacketDataProducer extends Object implements IReplicationPacketDataProducer<IExecutableReplicationPacketData<?>>
Constructor and Description |
---|
ReplicationPacketDataProducer(SpaceEngine spaceEngine,
boolean replicateToTargetWithExternalDatasource,
boolean replicateFullTake,
ReplicationPacketDataMediator packetDataMediator) |
public ReplicationPacketDataProducer(SpaceEngine spaceEngine, boolean replicateToTargetWithExternalDatasource, boolean replicateFullTake, ReplicationPacketDataMediator packetDataMediator)
public IExecutableReplicationPacketData<?> createSingleOperationData(IEntryHolder entryHolder, ReplicationSingleOperationType operationType, ReplicationOutContext replicationOutContext)
IReplicationPacketDataProducer
IReplicationPacketData
createSingleOperationData
in interface IReplicationPacketDataProducer<IExecutableReplicationPacketData<?>>
entryHolder
- operation entryoperationType
- operation typeIReplicationPacketData
public IExecutableReplicationPacketData<?> createGenericOperationData(Object operationData, ReplicationSingleOperationType operationType, ReplicationOutContext entireContext)
createGenericOperationData
in interface IReplicationPacketDataProducer<IExecutableReplicationPacketData<?>>
public IExecutableReplicationPacketData<IReplicationTransactionalPacketEntryData> createTransactionOperationData(ServerTransaction transaction, ArrayList<IEntryHolder> entries, ReplicationOutContext replicationOutContext, ReplicationMultipleOperationType operationType)
IReplicationPacketDataProducer
IReplicationPacketData
createTransactionOperationData
in interface IReplicationPacketDataProducer<IExecutableReplicationPacketData<?>>
public AbstractDataConsumeFix createFix(IDataConsumeResult errorResult, IExecutableReplicationPacketData<?> errorData)
IReplicationPacketDataProducer
IReplicationPacketDataConsumer
createFix
in interface IReplicationPacketDataProducer<IExecutableReplicationPacketData<?>>
errorResult
- the result that needs to be fixederrorData
- the data that created the error while being consumedpublic AbstractDataConsumeFix createFixForUnknownError(Throwable error)
public Iterable<IReplicationFilterEntry> toFilterEntries(IExecutableReplicationPacketData<?> data)
IReplicationPacketDataProducer
toFilterEntries
in interface IReplicationPacketDataProducer<IExecutableReplicationPacketData<?>>
public IEntryData getMainEntryData(IReplicationPacketEntryData data)
getMainEntryData
in interface IReplicationPacketEntryDataContentExtractor
public IEntryData getSecondaryEntryData(IReplicationPacketEntryData data)
getSecondaryEntryData
in interface IReplicationPacketEntryDataContentExtractor
public String getMainTypeName(IReplicationPacketEntryData data)
getMainTypeName
in interface IReplicationPacketEntryDataContentExtractor
public <T> T getCustomContent(IReplicationPacketEntryData data)
getCustomContent
in interface IReplicationPacketEntryDataContentExtractor
public AbstractReplicationPacketSingleEntryData convertEntryData(IReplicationPacketEntryData entryData, ReplicationEntryDataConversionMetadata metadata, PlatformLogicalVersion targetMemberVersion) throws ReplicationPacketEntryDataConversionException
IReplicationPacketDataProducer
convertEntryData
in interface IReplicationPacketDataProducer<IExecutableReplicationPacketData<?>>
entryData
- entry data to convertmetadata
- conversion metadataReplicationPacketEntryDataConversionException
- if the conversion is illegalpublic IExecutableReplicationPacketData<?> convertSingleEntryData(IExecutableReplicationPacketData<?> singleEntryData, ReplicationEntryDataConversionMetadata metadata, PlatformLogicalVersion targetMemberVersion) throws ReplicationPacketEntryDataConversionException
IReplicationPacketDataProducer
IReplicationPacketData.isSingleEntryData()
must be true) to the specified operationconvertSingleEntryData
in interface IReplicationPacketDataProducer<IExecutableReplicationPacketData<?>>
singleEntryData
- data to convertmetadata
- conversion metadataReplicationPacketEntryDataConversionException
- if the conversion is illegalpublic IExecutableReplicationPacketData<?> convertData(IExecutableReplicationPacketData<?> data, ReplicationMultipleOperationType convertToOperation, PlatformLogicalVersion targetMemberVersion) throws ReplicationPacketEntryDataConversionException
IReplicationPacketDataProducer
convertData
in interface IReplicationPacketDataProducer<IExecutableReplicationPacketData<?>>
data
- data to convertconvertToOperation
- which operation to convert toReplicationPacketEntryDataConversionException
- if the conversion is illegalpublic IExecutableReplicationPacketData<?> createEmptyMultipleEntryData(IExecutableReplicationPacketData<?> data)
IReplicationPacketDataProducer
IReplicationPacketData.isSingleEntryData()
createEmptyMultipleEntryData
in interface IReplicationPacketDataProducer<IExecutableReplicationPacketData<?>>
data
- template for data type creationpublic void setSerializeWithFullContent(IReplicationPacketEntryData entryData)
IReplicationPacketEntryDataContentExtractor
setSerializeWithFullContent
in interface IReplicationPacketEntryDataContentExtractor
public boolean requiresConversion(IReplicationPacketEntryData entryData, QueryResultTypeInternal queryResultType)
requiresConversion
in interface IReplicationPacketEntryDataContentExtractor
public void completePacketDataContent(IExecutableReplicationPacketData<?> data)
completePacketDataContent
in interface IReplicationPacketDataProducer<IExecutableReplicationPacketData<?>>
public boolean isPrimary()
isPrimary
in interface IReplicationPacketDataProducer<IExecutableReplicationPacketData<?>>
Copyright © GigaSpaces.