Package com.ganteater.ae.processor
Class Processor
java.lang.Object
com.ganteater.ae.TemplateProcessor
com.ganteater.ae.processor.Processor
- Direct Known Subclasses:
BaseProcessor
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
protected Vector<TaskProcessorThread>
protected static final String
protected Processor
protected boolean
protected boolean
protected ILogger
protected boolean
protected boolean
protected RecipeListener
protected String
protected String
protected List<ThreadPoolExecutor>
Fields inherited from class com.ganteater.ae.TemplateProcessor
configNode, fGlobalVariables, MAPPED_VAR_DELIM, variables
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
applyResult
(Node commandNode, String name, Object value) void
complete
(boolean success) protected void
protected void
int
protected String
getFields
(Properties theOutArrayList) getLog()
protected String
getTestName
(Node aNode) protected String
getTrimmedLines
(String theValue1) protected void
init()
void
void
void
init
(Node action, Map<String, Object> aStartVariables, RecipeListener aMaxTestListener, File aStartDir, ILogger aLog) protected boolean
isActiveInitFor
(Node action, String value) protected boolean
boolean
protected boolean
static boolean
isSilentMode
(Processor unit) boolean
static String[]
listToArray
(ArrayList<?> theResult) void
loadProperties
(File aFile, Map<String, Object> theProperties, boolean aNameUpperCase) void
loadProperties
(String aParameterRule, String aDelim, Map<String, Object> aMapProperties, boolean aNameUpperCase) void
makeProcessor
(Node aCurrentAction) protected void
void
pause()
static String
prepareXml
(String theCurrentValue) void
protected void
processTesting
(String aTestFileName) protected void
protected String[]
randomSort
(String[] aArray) void
regChildProcess
(TaskProcessorThread aMaxTestRunnable) protected Properties
replaceAttributes
(Node aCurrentAction) protected String
replaceCall
(String aValue) protected String
replaceXmlReference
(String aValue) void
resume()
void
void
protected void
setRootContext
(boolean isRootContext) static void
setSilentMode
(Processor unit, boolean silentMode) void
setStartDir
(File aStartBaseDir) void
setTestListener
(RecipeListener testListener) void
setTestName
(String testName) void
startCommandInformation
(Node command) void
stop()
void
void
void
unregChildProcess
(TaskProcessorThread aMaxTestRunnable) protected void
Methods inherited from class com.ganteater.ae.TemplateProcessor
getBaseDir, getGlobalVariables, getVariableString, getVariableValue, getVariableValue, isStopped, replaceFile, replaceProperties, replaceProperties, replaceTag, setBaseDir, setStopped, setVariableValue, toUpperCaseName
-
Field Details
-
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
protected Map<String,Object> processTesting(String aTestFileName, Map<String, Object> aVariables, File aBaseDir) throws Throwable- Throws:
Throwable
-
processTesting
- Throws:
CommandException
-
processTesting
public void processTesting(Node theNode, Map<String, Object> aVariables, File aBaseDir) 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:
getFile
in classTemplateProcessor
-
make
- Throws:
CommandException
-
stop
- Overrides:
stop
in classTemplateProcessor
-
replaceXmlReference
- Throws:
Exception
-
makeProcessor
-
loadProperties
public void loadProperties(String aParameterRule, String aDelim, Map<String, Object> aMapProperties, boolean aNameUpperCase) throws Exception- Throws:
Exception
-
loadProperties
public void loadProperties(File aFile, Map<String, Object> theProperties, boolean aNameUpperCase) throws Exception- Throws:
Exception
-
listToArray
-
setRootContext
-
getParent
-
complete
-
getLocalTaskTrace
-
getCallTaskTrace
-
getLogger
-
replaceCall
- Overrides:
replaceCall
in classTemplateProcessor
-
pause
-
resume
-
debug
-
debug
-
setLogger
-
isStoppedTest
-
attr
-
attr
-
attrValue
-
setSilentMode
-
isSilentMode
-
wait
-