public class EntryReplicaProducer extends Object implements ISingleStageReplicaDataProducer<AbstractEntryReplicaData>
ISingleStageReplicaDataProducer.CloseStatus
Modifier and Type | Field and Description |
---|---|
protected SpaceEngine |
_engine
keeps already recovered UIDs
|
protected static Logger |
_logger |
FORCED_CLOSE_WAIT_TIME
Constructor and Description |
---|
EntryReplicaProducer(SpaceEngine engine,
SpaceCopyReplicaParameters parameters,
ITemplatePacket templatePacket,
Object requestContext) |
Modifier and Type | Method and Description |
---|---|
ISingleStageReplicaDataProducer.CloseStatus |
close(boolean forced)
Closes the producer, frees up resources held in order to service the replica request.
|
String |
dumpState() |
SpaceEngine |
getEngine() |
String |
getName() |
SpaceCopyReplicaParameters |
getParameters() |
Object |
getRequestContext() |
void |
increaseGeneratedDataCount() |
boolean |
isClosed() |
boolean |
isForcedClose() |
protected AbstractEntryReplicaData |
produceDataFromEntry(ISynchronizationCallback syncCallback,
IEntryHolder entry) |
AbstractEntryReplicaData |
produceNextData(ISynchronizationCallback syncCallback)
Creates the next entry that will be copied to the source space
|
IReplicationFilterEntry |
toFilterEntry(AbstractEntryReplicaData data) |
protected static final Logger _logger
protected final SpaceEngine _engine
public EntryReplicaProducer(SpaceEngine engine, SpaceCopyReplicaParameters parameters, ITemplatePacket templatePacket, Object requestContext)
public Object getRequestContext()
public AbstractEntryReplicaData produceNextData(ISynchronizationCallback syncCallback)
produceNextData
in interface ISingleStageReplicaDataProducer<AbstractEntryReplicaData>
syncCallback
- callback to the synchronization processor that needs to be called safely
under lockprotected AbstractEntryReplicaData produceDataFromEntry(ISynchronizationCallback syncCallback, IEntryHolder entry)
public ISingleStageReplicaDataProducer.CloseStatus close(boolean forced)
ISingleStageReplicaDataProducer
close
in interface ISingleStageReplicaDataProducer<AbstractEntryReplicaData>
public IReplicationFilterEntry toFilterEntry(AbstractEntryReplicaData data)
toFilterEntry
in interface ISingleStageReplicaDataProducer<AbstractEntryReplicaData>
public SpaceEngine getEngine()
public SpaceCopyReplicaParameters getParameters()
public boolean isClosed()
public boolean isForcedClose()
public void increaseGeneratedDataCount()
public String dumpState()
dumpState
in interface ISingleStageReplicaDataProducer<AbstractEntryReplicaData>
public String getName()
getName
in interface ISingleStageReplicaDataProducer<AbstractEntryReplicaData>
Copyright © GigaSpaces.