Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Add incrementDocumentsProcessed to the CopyTransTaskHandle class.
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos A. Munoz committed Aug 26, 2013
1 parent eeb6e1e commit 759ca73
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Expand Up @@ -90,5 +90,13 @@ public static class CopyTransTaskHandle extends TimedAsyncHandle<Void>
@Setter
private String triggeredBy;

/**
* Increments the processed documents by 1
*/
public void incrementDocumentsProcessed()
{
documentsProcessed++;
}

}
}
Expand Up @@ -372,7 +372,7 @@ public void copyTransForDocument(HDocument document, HCopyTransOptions copyTrans

if( taskHandleOpt.isPresent() )
{
taskHandleOpt.get().setDocumentsProcessed( taskHandleOpt.get().getDocumentsProcessed() + 1 );
taskHandleOpt.get().incrementDocumentsProcessed();
}
log.info("copyTrans finished: document \"{0}\"", document.getDocId());
}
Expand Down

0 comments on commit 759ca73

Please sign in to comment.