|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.concurrent.AbstractExecutorService
java.util.concurrent.ThreadPoolExecutor
org.nuiton.i18n.plugin.parser.ParserExecutor
public class ParserExecutor
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.util.concurrent.ThreadPoolExecutor |
|---|
ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy |
| Field Summary | |
|---|---|
protected I18nParserConfiguration |
configuration
the incoming configuration (from mojo which contains shared result and logger) |
protected int |
nbFiles
number of files registred to consume |
protected List<File> |
touchedFiles
list of files touched (says having at least one i18n key) |
protected List<File> |
treatedFiles
list of files consumed |
| Constructor Summary | |
|---|---|
ParserExecutor(I18nParserConfiguration configuration)
|
|
| Method Summary | |
|---|---|
void |
addFile(FileParser parser,
File... files)
Add a file to be consumed. |
protected void |
afterExecute(Runnable r,
Throwable t)
|
void |
clear()
clean internal state after usage of the thread. |
protected I18nParserConfiguration |
getConfiguration()
|
org.apache.maven.plugin.logging.Log |
getLog()
|
protected int |
getNbFilesToTreate()
|
org.nuiton.io.SortedProperties |
getResult()
|
List<File> |
getTouchedFiles()
|
List<File> |
getTreatedFiles()
|
boolean |
isShowTouchedFiles()
|
boolean |
isSilent()
|
boolean |
isVerbose()
|
void |
terminatesAndWaits()
Ask the thread to stop. |
| Methods inherited from class java.util.concurrent.AbstractExecutorService |
|---|
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final I18nParserConfiguration configuration
protected final List<File> treatedFiles
protected final List<File> touchedFiles
protected int nbFiles
| Constructor Detail |
|---|
public ParserExecutor(I18nParserConfiguration configuration)
| Method Detail |
|---|
protected void afterExecute(Runnable r,
Throwable t)
afterExecute in class ThreadPoolExecutorpublic boolean isVerbose()
isVerbose in interface I18nParserConfigurationpublic boolean isSilent()
isSilent in interface I18nParserConfigurationpublic boolean isShowTouchedFiles()
isShowTouchedFiles in interface I18nParserConfigurationpublic org.apache.maven.plugin.logging.Log getLog()
getLog in interface I18nParserConfigurationpublic org.nuiton.io.SortedProperties getResult()
getResult in interface I18nParserConfigurationpublic List<File> getTreatedFiles()
public List<File> getTouchedFiles()
public void clear()
public void addFile(FileParser parser,
File... files)
parser - the parser of the filefiles - files to parse
public void terminatesAndWaits()
throws InterruptedException
InterruptedException - if something wrong while waiting end of
executorprotected I18nParserConfiguration getConfiguration()
protected int getNbFilesToTreate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||