multilingual-ctap-web/src/main/java/com/ctapweb/web/server/analysis/StatusCallbackListenerImpl.java
@Override
	public void collectionProcessComplete() {
		logger.info(LogMarker.CTAP_SERVER_MARKER, "Collection process completed.");

		//update analysis status
		AnalysisStatus analysisStatus = new AnalysisStatus();
		analysisStatus.setAnalysisID(analysis.getId());
		analysisStatus.setProgress(1.0);
		analysisStatus.setStatus(AnalysisStatus.Status.FINISHED);

		try {
			AnalysisUtils.updateAnalysisStatus(analysisStatus);
		} catch (SQLException e) {
			logger.throwing(e);
		}

		long completeTime = System.currentTimeMillis();
		//		if (size > 0) {
		//			logger.info("; " + size + " characters");
		//		}
		long initTime = cpeInitCompleteTime - cpeInitStartTime; 
		long processingTime = completeTime - cpeInitCompleteTime;
		long elapsedTime = initTime + processingTime;
		logger.info("Completed " + completedEntityCount + " documents");
		logger.info("Total Time Elapsed: " + elapsedTime + " ms ");
		logger.info("Initialization Time: " + initTime + " ms");
		logger.info("Processing Time: " + processingTime + " ms");

		//		logger.info(cpe.getPerformanceReport().toString());
		// stop the JVM. Otherwise main thread will still be blocked waiting for
		// user to press Enter.
		//			System.exit(1);
	}
/**
	 * Called when the collection processing is completed.
	 * 
	 * @see org.apache.uima.collection.processing.StatusCallbackListener#collectionProcessComplete()
	 */
Called when the collection processing is completed.


Called when the collection processing is completed .
@Override
	public void collectionProcessComplete() {
		logger.info(LogMarker.CTAP_SERVER_MARKER, "Collection process completed.");
		AnalysisStatus analysisStatus = new AnalysisStatus();
		analysisStatus.setAnalysisID(analysis.getId());
		analysisStatus.setProgress(1.0);
		analysisStatus.setStatus(AnalysisStatus.Status.FINISHED);
		try {
			AnalysisUtils.updateAnalysisStatus(analysisStatus);
		} catch (SQLException e) {
			logger.throwing(e);
		}
		long completeTime = System.currentTimeMillis();
		long initTime = cpeInitCompleteTime - cpeInitStartTime; 
		long processingTime = completeTime - cpeInitCompleteTime;
		long elapsedTime = initTime + processingTime;
		logger.info("Completed " + completedEntityCount + " documents");
		logger.info("Total Time Elapsed: " + elapsedTime + " ms ");
		logger.info("Initialization Time: " + initTime + " ms");
		logger.info("Processing Time: " + processingTime + " ms");
	}
@ Override public void collectionProcessComplete ( ) { logger . info ( LogMarker . CTAP_SERVER_MARKER , "Collection process completed." ) ; AnalysisStatus analysisStatus = new AnalysisStatus ( ) ; analysisStatus . setAnalysisID ( analysis . getId ( ) ) ; analysisStatus . setProgress ( 1.0 ) ; analysisStatus . setStatus ( AnalysisStatus . Status . FINISHED ) ; try { AnalysisUtils . updateAnalysisStatus ( analysisStatus ) ; } catch ( SQLException e ) { logger . throwing ( e ) ; } long completeTime = System . currentTimeMillis ( ) ; long initTime = cpeInitCompleteTime - cpeInitStartTime ; long processingTime = completeTime - cpeInitCompleteTime ; long elapsedTime = initTime + processingTime ; logger . info ( "Completed " + completedEntityCount + " documents" ) ; logger . info ( "Total Time Elapsed: " + elapsedTime + " ms " ) ; logger . info ( "Initialization Time: " + initTime + " ms" ) ; logger . info ( "Processing Time: " + processingTime + " ms" ) ; }
Called when the collection processing is completed.
Called when the collection processing is completed .
//update analysis status //		if (size > 0) { //			logger.info("; " + size + " characters"); //		} //		logger.info(cpe.getPerformanceReport().toString()); // stop the JVM. Otherwise main thread will still be blocked waiting for // user to press Enter. //			System.exit(1);