Search in sources :

Example 1 with InternalOutgoingTransport

use of org.jumpmind.symmetric.transport.internal.InternalOutgoingTransport in project symmetric-ds by JumpMind.

the class AbstractDataExtractorServiceTest method extract.

protected ExtractResults extract() {
    IDataExtractorService service = getDataExtractorService();
    StringWriter writer = new StringWriter();
    InternalOutgoingTransport transport = new InternalOutgoingTransport(new BufferedWriter(writer));
    List<OutgoingBatch> batches = service.extract(new ProcessInfo(), TestConstants.TEST_CLIENT_NODE, transport);
    transport.close();
    return new ExtractResults(batches, writer.getBuffer().toString());
}
Also used : InternalOutgoingTransport(org.jumpmind.symmetric.transport.internal.InternalOutgoingTransport) StringWriter(java.io.StringWriter) ProcessInfo(org.jumpmind.symmetric.model.ProcessInfo) OutgoingBatch(org.jumpmind.symmetric.model.OutgoingBatch) IDataExtractorService(org.jumpmind.symmetric.service.IDataExtractorService) BufferedWriter(java.io.BufferedWriter)

Aggregations

BufferedWriter (java.io.BufferedWriter)1 StringWriter (java.io.StringWriter)1 OutgoingBatch (org.jumpmind.symmetric.model.OutgoingBatch)1 ProcessInfo (org.jumpmind.symmetric.model.ProcessInfo)1 IDataExtractorService (org.jumpmind.symmetric.service.IDataExtractorService)1 InternalOutgoingTransport (org.jumpmind.symmetric.transport.internal.InternalOutgoingTransport)1