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

		long analysisID = analysis.getId();
		cpeInitCompleteTime = System.currentTimeMillis();

		try {
			//get total number of texts to be analyzed
			logger.trace(LogMarker.CTAP_SERVER_MARKER, "Getting number of entities to be analyzed...");
			totalEntityCount = AnalysisUtils.getAnalysisTexts(analysisID).size();

			//clear previous results for this analysis
			logger.trace(LogMarker.CTAP_SERVER_MARKER, "Clear previous results for the analysis...");
			AnalysisUtils.clearAnalysisResults(analysisID);
			
			//set analysis status
			AnalysisStatus analysisStatus = new AnalysisStatus();
			analysisStatus.setAnalysisID(analysisID);
			analysisStatus.setStatus(AnalysisStatus.Status.RUNNING);
			analysisStatus.setProgress(0);
			
			logger.info("Start running the cpe, setting analysis status to running...");
			AnalysisUtils.updateAnalysisStatus(analysisStatus);
			
		} catch (SQLException e) {
			logger.throwing(e);
		}
		
	}
/**
	 * Called when the initialization is completed.
	 * 
	 * @see org.apache.uima.collection.processing.StatusCallbackListener#initializationComplete()
	 */
Called when the initialization is completed.


Called when the initialization is completed .
@Override
	public void initializationComplete() {      
		logger.info(LogMarker.CTAP_SERVER_MARKER, "CPE initialization completed.");
		long analysisID = analysis.getId();
		cpeInitCompleteTime = System.currentTimeMillis();
		try {
			logger.trace(LogMarker.CTAP_SERVER_MARKER, "Getting number of entities to be analyzed...");
			totalEntityCount = AnalysisUtils.getAnalysisTexts(analysisID).size();
			logger.trace(LogMarker.CTAP_SERVER_MARKER, "Clear previous results for the analysis...");
			AnalysisUtils.clearAnalysisResults(analysisID);
			AnalysisStatus analysisStatus = new AnalysisStatus();
			analysisStatus.setAnalysisID(analysisID);
			analysisStatus.setStatus(AnalysisStatus.Status.RUNNING);
			analysisStatus.setProgress(0);
			logger.info("Start running the cpe, setting analysis status to running...");
			AnalysisUtils.updateAnalysisStatus(analysisStatus);
		} catch (SQLException e) {
			logger.throwing(e);
		}
	}
@ Override public void initializationComplete ( ) { logger . info ( LogMarker . CTAP_SERVER_MARKER , "CPE initialization completed." ) ; long analysisID = analysis . getId ( ) ; cpeInitCompleteTime = System . currentTimeMillis ( ) ; try { logger . trace ( LogMarker . CTAP_SERVER_MARKER , "Getting number of entities to be analyzed..." ) ; totalEntityCount = AnalysisUtils . getAnalysisTexts ( analysisID ) . size ( ) ; logger . trace ( LogMarker . CTAP_SERVER_MARKER , "Clear previous results for the analysis..." ) ; AnalysisUtils . clearAnalysisResults ( analysisID ) ; AnalysisStatus analysisStatus = new AnalysisStatus ( ) ; analysisStatus . setAnalysisID ( analysisID ) ; analysisStatus . setStatus ( AnalysisStatus . Status . RUNNING ) ; analysisStatus . setProgress ( 0 ) ; logger . info ( "Start running the cpe, setting analysis status to running..." ) ; AnalysisUtils . updateAnalysisStatus ( analysisStatus ) ; } catch ( SQLException e ) { logger . throwing ( e ) ; } }
Called when the initialization is completed.
Called when the initialization is completed .
//get total number of texts to be analyzed //clear previous results for this analysis //set analysis status