Package com.ganteater.ae.processor
Class Processor
java.lang.Object
com.ganteater.ae.TemplateProcessor
com.ganteater.ae.processor.Processor
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected Vector<TaskProcessorThread> protected static final Stringprotected Processorprotected booleanprotected booleanprotected ILoggerprotected booleanprotected booleanprotected RecipeListenerstatic final Stringprotected Stringprotected Stringprotected List<ThreadPoolExecutor> Fields inherited from class com.ganteater.ae.TemplateProcessor
configNode, fGlobalVariables, MAPPED_VAR_DELIM, variables -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyResult(Node commandNode, String name, Object value) voidcomplete(boolean success) protected voidprotected voidintprotected StringgetFields(Properties theOutArrayList) static StringgetFullClassName(String className) getLog()protected StringgetTestName(Node aNode) protected StringgetTrimmedLines(String theValue1) protected voidinit()voidvoidvoidinit(Node action, Map<String, Object> variables, RecipeListener aMaxTestListener, File aStartDir, ILogger aLog) protected booleanisActiveInitFor(Node action, String value) protected booleanbooleanprotected booleanstatic booleanisSilentMode(Processor unit) booleanstatic String[]listToArray(ArrayList<?> theResult) voidloadProperties(File aFile, Map<String, Object> theProperties, boolean aNameUpperCase) voidloadProperties(String aParameterRule, String aDelim, Map<String, Object> aMapProperties, boolean aNameUpperCase) voidmakeProcessor(Node aCurrentAction) protected voidlongvoidpause()static StringprepareXml(String theCurrentValue) voidprotected voidprocessTesting(String testFileName) protected voidprotected String[]randomSort(String[] aArray) voidregChildProcess(TaskProcessorThread aMaxTestRunnable) protected PropertiesreplaceAttributes(Node aCurrentAction) protected StringreplaceCall(String aValue) protected StringreplaceXmlReference(String aValue) voidresume()voidvoidprotected voidsetRootContext(boolean isRootContext) static voidsetSilentMode(Processor unit, boolean silentMode) voidsetStartDir(File aStartBaseDir) voidsetTestListener(RecipeListener testListener) voidsetTestName(String testName) voidstartCommandInformation(Node command) voidstop()voidvoidvoidunregChildProcess(TaskProcessorThread aMaxTestRunnable) protected voidMethods inherited from class com.ganteater.ae.TemplateProcessor
getBaseDir, getGlobalVariables, getVariableString, getVariableValue, getVariableValue, isStopped, replaceFile, replaceProperties, replaceProperties, replaceTag, setBaseDir, setStopped, setVariableValue, toUpperCaseName
-
Field Details
-
STG_PROCESSOR_PACKAGE_NAME
- See Also:
-
DEFAULT_LOG_LEVEL_NAME
- See Also:
-
log
-
testName
-
testFile
-
startVariables
-
externProcessor
-
recipeListener
-
childThreads
-
stackTask
-
threadPoolList
-
operationObjects
-
iteratorMode
-
mainLoopCommand
-
randomSelect
-
breakFlag
-
processes
-
isRootContext
-
-
Constructor Details
-
Processor
protected Processor() -
Processor
- Throws:
CommandException
-
Processor
-
Processor
public Processor(Node configNode, Map<String, Object> startVariables, RecipeListener listener, File startDir, ILogger aLog, Processor parent) throws CommandException- Throws:
CommandException
-
Processor
-
-
Method Details
-
init
- Throws:
CommandException
-
init
- Throws:
CommandException
-
init
-
init
- Throws:
CommandException
-
processTesting
-
processTesting
- Throws:
CommandException
-
processTesting
public void processTesting(Node node, Map<String, Object> variables, File baseDir) throws CommandException- Throws:
CommandException
-
taskNode
- Throws:
CommandException
-
taskNode
- Throws:
CommandException
-
isMainProcessor
-
getTestName
-
setTestName
-
regChildProcess
-
unregChildProcess
-
getConfigNode
-
getStartVariables
-
getListener
-
getVariables
-
getChildThreads
-
getLog
-
runNodes
- Throws:
CommandException
-
setTestListener
-
startCommandInformation
-
isRootRecipe
-
getTestName
-
getTrimmedLines
- Throws:
IOException
-
randomSort
-
prepareXml
-
replaceAttributes
-
outputLog
-
isActiveInitFor
-
getFields
-
applyResult
-
setStartDir
-
progress
-
isLoopActivated
-
getFile
- Overrides:
getFilein classTemplateProcessor
-
make
- Throws:
CommandException
-
stop
- Overrides:
stopin classTemplateProcessor
-
replaceXmlReference
- Throws:
Exception
-
makeProcessor
-
getFullClassName
-
loadProperties
-
loadProperties
public void loadProperties(File aFile, Map<String, Object> theProperties, boolean aNameUpperCase) throws IOException- Throws:
IOException
-
listToArray
-
setRootContext
-
getParent
-
complete
-
getLocalTaskTrace
-
getCallTaskTrace
-
getLogger
-
replaceCall
- Overrides:
replaceCallin classTemplateProcessor
-
pause
-
resume
-
debug
-
debug
-
setLogger
-
isStoppedTest
-
attr
-
attr
-
attrValue
-
setSilentMode
-
isSilentMode
-
wait
-
parseTime
-