org.nuiton.i18n.plugin.parser
Class ParserThread
java.lang.Object
java.lang.Thread
org.nuiton.i18n.plugin.parser.ParserThread
- All Implemented Interfaces:
- Runnable
public class ParserThread
- extends Thread
A thread to launch parser on files.
- Since:
- 1.2
- Author:
- tchemit
|
Constructor Summary |
ParserThread(org.nuiton.io.SortedProperties result)
|
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
tasks
protected final BlockingQueue<org.nuiton.i18n.plugin.parser.ParserThread.ParserTask> tasks
treatedFiles
protected final List<File> treatedFiles
- list of files consumed
touchedFiles
protected final List<File> touchedFiles
- list of files touched (says having at least one i18n key)
result
protected final org.nuiton.io.SortedProperties result
- the shared result where to merge atomic results
nbFiles
protected int nbFiles
- number of files registred to consume
ParserThread
public ParserThread(org.nuiton.io.SortedProperties result)
getTreatedFiles
public List<File> getTreatedFiles()
getTouchedFiles
public List<File> getTouchedFiles()
addFile
public void addFile(FileParser parser,
File... files)
terminatesAndWaits
public void terminatesAndWaits()
clear
public void clear()
run
public void run()
- Specified by:
run in interface Runnable- Overrides:
run in class Thread
Copyright © 2007-2010 CodeLutin. All Rights Reserved.