"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/main/java/com/openkm/extractor/TextExtractorThread.java" between
OpenKM-document-management-system-6.3.10.tar.gz and OpenKM-document-management-system-6.3.11.tar.gz

About: OpenKM (Knowledge Management) is a document management system that allows easy management of documents, users, roles and finding your enterprise documents and records. Community version (source code).

TextExtractorThread.java  (OpenKM-document-management-system-6.3.10):TextExtractorThread.java  (OpenKM-document-management-system-6.3.11)
skipping to change at line 35 skipping to change at line 35
import com.openkm.dao.NodeDocumentDAO; import com.openkm.dao.NodeDocumentDAO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import java.io.FileNotFoundException; import java.io.FileNotFoundException;
/** /**
* @author pavila * @author pavila
*/ */
public class TextExtractorThread implements Runnable { public class TextExtractorThread implements Runnable {
private static Logger log = LoggerFactory.getLogger(TextExtractorThread.c lass); private static final Logger log = LoggerFactory.getLogger(TextExtractorTh read.class);
private static volatile long global = 1; private static volatile long global = 1;
private TextExtractorWork work;
private long id = 0; private long id = 0;
private TextExtractorWork work = null;
public TextExtractorThread(TextExtractorWork work) { public TextExtractorThread(TextExtractorWork work) {
this.work = work;
this.id = global++; this.id = global++;
this.work = work;
} }
@Override @Override
public void run() { public void run() {
try { try {
log.debug("processConcurrent.Working {} on {}", id, work) ; log.debug("processConcurrent.Working {} on {}", id, work) ;
NodeDocumentDAO.getInstance().textExtractorHelper(work); NodeDocumentDAO.getInstance().textExtractorHelper(work);
log.debug("processConcurrent.Finish {} on {}", id, work); log.debug("processConcurrent.Finish {} on {}", id, work);
} catch (FileNotFoundException e) { } catch (FileNotFoundException | DatabaseException e) {
log.warn(e.getMessage(), e);
} catch (DatabaseException e) {
log.warn(e.getMessage(), e); log.warn(e.getMessage(), e);
} }
} }
} }
 End of changes. 6 change blocks. 
6 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)