Revision: 18170
http://sourceforge.net/p/gate/code/18170
Author: johann_p
Date: 2014-07-09 14:54:13 +0000 (Wed, 09 Jul 2014)
Log Message:
-----------
fixed the location where we report duplication time to the hopefully correct one
Modified Paths:
--------------
gcp/trunk/src/gate/cloud/batch/BatchRunner.java
Modified: gcp/trunk/src/gate/cloud/batch/BatchRunner.java
===================================================================
--- gcp/trunk/src/gate/cloud/batch/BatchRunner.java 2014-07-09 14:48:59 UTC
(rev 18169)
+++ gcp/trunk/src/gate/cloud/batch/BatchRunner.java 2014-07-09 14:54:13 UTC
(rev 18170)
@@ -144,22 +144,18 @@
setState(JobState.RUNNING);
resultQueue = new LinkedBlockingQueue<ProcessResult>();
if(totalDocs > 0) {
- // create the document Processor
- // This will also fill the pool with the custom-duplicated copies,
- // so we can find the time needed for this after creating the object
processor = new PooledDocumentProcessor(executor.getCorePoolSize());
- // TODO
- log.info("Duplication finished");
- log.info("Total allocated memory: "+(runtime.totalMemory()/MB)+"M");
- log.info("Used memory:
"+((runtime.totalMemory()-runtime.freeMemory())/MB)+"M");
- duplicationFinishedTime = System.currentTimeMillis();
- log.info("Duplication time (seconds):
"+(duplicationFinishedTime-loadingFinishedTime)/1000.0);
processor.setController(batch.getGateApplication());
processor.setExecutor(executor);
processor.setInputHandler(batch.getInputHandler());
processor.setOutputHandlers(batch.getOutputs());
processor.setResultQueue(resultQueue);
processor.init();
+ log.info("Duplication finished");
+ log.info("Total allocated memory: "+(runtime.totalMemory()/MB)+"M");
+ log.info("Used memory:
"+((runtime.totalMemory()-runtime.freeMemory())/MB)+"M");
+ duplicationFinishedTime = System.currentTimeMillis();
+ log.info("Duplication time (seconds):
"+(duplicationFinishedTime-loadingFinishedTime)/1000.0);
jobPusher = new Thread(new Runnable() {
public void run() {
for(DocumentID id : batch.getUnprocessedDocumentIDs()) {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs