Class AbstractProtocolDataWriter
java.lang.Object
org.jumpmind.symmetric.io.data.writer.AbstractProtocolDataWriter
- All Implemented Interfaces:
IDataResource,IDataWriter
- Direct Known Subclasses:
ProtocolDataWriter,StagingDataWriter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected longprotected Batchprotected DataContextprotected Stringprotected booleanprotected booleanprotected longprotected List<IProtocolDataWriterListener>protected final org.slf4j.Loggerprotected booleanprotected booleanprotected booleanprotected Stringprotected Map<Batch,Statistics> protected Table -
Constructor Summary
ConstructorsConstructorDescriptionAbstractProtocolDataWriter(String sourceNodeId, List<IProtocolDataWriterListener> listeners, boolean backwardsCompatible, boolean sendCaptureTime, boolean sendRowCaptureTime) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidfinal voidprotected voidprotected abstract voidnotifyEndBatch(Batch batch, IProtocolDataWriterListener listener) voidopen(DataContext context) protected abstract voidprotected longprotected intprotected intprotected voidvoidsetDelimiter(String delimiter) booleanvoidvoid
-
Field Details
-
log
protected final org.slf4j.Logger log -
context
-
batch
-
table
-
processedTables
-
delimiter
-
flushNodeId
protected boolean flushNodeId -
flushBatchId
protected boolean flushBatchId -
statistics
-
listeners
-
sourceNodeId
-
noBinaryOldData
protected boolean noBinaryOldData -
backwardsCompatible
protected boolean backwardsCompatible -
sendCaptureTime
protected boolean sendCaptureTime -
sendRowCaptureTime
protected boolean sendRowCaptureTime -
baseTime
protected long baseTime -
lastTime
protected long lastTime
-
-
Constructor Details
-
AbstractProtocolDataWriter
public AbstractProtocolDataWriter(String sourceNodeId, List<IProtocolDataWriterListener> listeners, boolean backwardsCompatible, boolean sendCaptureTime, boolean sendRowCaptureTime)
-
-
Method Details
-
open
- Specified by:
openin interfaceIDataResource
-
close
public void close()- Specified by:
closein interfaceIDataResource
-
start
- Specified by:
startin interfaceIDataWriter
-
start
- Specified by:
startin interfaceIDataWriter
-
write
- Specified by:
writein interfaceIDataWriter
-
printTime
-
end
- Specified by:
endin interfaceIDataWriter
-
end
- Specified by:
endin interfaceIDataWriter
-
endBatch
-
notifyEndBatch
-
println
-
println
-
print
-
println
-
setDelimiter
-
getDelimiter
-
getStatistics
- Specified by:
getStatisticsin interfaceIDataResource
-