Skip to content

Commit

Permalink
Comments around needed suspend/ignore work.
Browse files Browse the repository at this point in the history
  • Loading branch information
mhanes committed Sep 10, 2009
1 parent eb6b9a7 commit da93ca1
Showing 1 changed file with 14 additions and 1 deletion.
Expand Up @@ -293,6 +293,12 @@ public boolean extract(Node node, IOutgoingTransport targetTransport) throws IOE

List<OutgoingBatch> batches = outgoingBatchService.getOutgoingBatches(node.getNodeId());
if (batches != null && batches.size() > 0) {

// reserve here....

// based on results, filter all AND my local getNodeChannel()!

// batches.get(0).setStatus(status)
FileOutgoingTransport fileTransport = null;

try {
Expand All @@ -304,9 +310,16 @@ public boolean extract(Node node, IOutgoingTransport targetTransport) throws IOE
ExtractStreamHandler handler = new ExtractStreamHandler(dataExtractor,
fileTransport != null ? fileTransport : targetTransport);

databaseExtract(node, batches, handler);
//verify skipping....

databaseExtract(node, batches, handler);

networkTransfer(fileTransport, targetTransport);

// batch.setStatus(OutgoingBatch.Status.SE); for IGNORED
// outgoingBatchService.updateOutgoingBatch(batch);

//outgoingbatchservice - update status
} finally {
if (fileTransport != null) {
fileTransport.close();
Expand Down

0 comments on commit da93ca1

Please sign in to comment.