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 Batch
protected boolean
protected long
protected int
protected IConfigurationService
protected DataContext
protected IExtensionService
protected IFileSyncService
protected long
protected INodeService
protected List<FileSnapshot>
protected Table
protected IStagedResource
protected 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 TypeMethodDescriptionvoid
close()
protected FileSyncZipScript
createFileSyncZipScript
(String targetNodeId) void
void
protected boolean
filterInitialLoad
(CsvData data) void
finish()
protected boolean
void
open
(DataContext context) boolean
boolean
void
void
-
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:
open
in interfaceIDataResource
-
close
public void close()- Specified by:
close
in interfaceIDataResource
-
getStatistics
- Specified by:
getStatistics
in interfaceIDataResource
-
start
- Specified by:
start
in interfaceIDataWriter
-
start
- Specified by:
start
in interfaceIDataWriter
-
write
- Specified by:
write
in interfaceIDataWriter
-
end
- Specified by:
end
in interfaceIDataWriter
-
end
- Specified by:
end
in interfaceIDataWriter
-
finish
public void finish() -
readyToSend
public boolean readyToSend() -
createFileSyncZipScript
-
isCClient
-
filterInitialLoad
-