Package org.jumpmind.symmetric.file
Class FileSyncZipDataWriter
java.lang.Object
org.jumpmind.symmetric.file.FileSyncZipDataWriter
- All Implemented Interfaces:
IDataResource,IDataWriter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Batchprotected booleanprotected longprotected intprotected IConfigurationServiceprotected DataContextprotected IExtensionServiceprotected IFileSyncServiceprotected longprotected INodeServiceprotected List<FileSnapshot>protected Tableprotected IStagedResourceprotected Map<Batch,Statistics> protected ZipOutputStream -
Constructor Summary
ConstructorsConstructorDescriptionFileSyncZipDataWriter(long maxBytesToSync, int compressionLevel, IFileSyncService fileSyncService, INodeService nodeService, IStagedResource stagedResource, IExtensionService extensionService, IConfigurationService configurationService) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected FileSyncZipScriptcreateFileSyncZipScript(String targetNodeId) voidvoidprotected booleanfilterInitialLoad(CsvData data) voidfinish()protected booleanvoidopen(DataContext context) booleanbooleanvoidvoid
-
Field Details
-
byteCount
protected long byteCount -
maxBytesToSync
protected long maxBytesToSync -
compressionLevel
protected int compressionLevel -
fileSyncService
-
stagedResource
-
zos
-
snapshotTable
-
batch
-
statistics
-
snapshotEvents
-
context
-
nodeService
-
extensionService
-
configurationService
-
batchInError
protected boolean batchInError
-
-
Constructor Details
-
FileSyncZipDataWriter
public FileSyncZipDataWriter(long maxBytesToSync, int compressionLevel, IFileSyncService fileSyncService, INodeService nodeService, IStagedResource stagedResource, IExtensionService extensionService, IConfigurationService configurationService)
-
-
Method Details
-
open
- Specified by:
openin interfaceIDataResource
-
close
public void close()- Specified by:
closein interfaceIDataResource
-
getStatistics
- Specified by:
getStatisticsin interfaceIDataResource
-
start
- Specified by:
startin interfaceIDataWriter
-
start
- Specified by:
startin interfaceIDataWriter
-
write
- Specified by:
writein interfaceIDataWriter
-
end
- Specified by:
endin interfaceIDataWriter
-
end
- Specified by:
endin interfaceIDataWriter
-
finish
public void finish() -
readyToSend
public boolean readyToSend() -
createFileSyncZipScript
-
isCClient
-
filterInitialLoad
-