public final class RunProcessor extends Processor implements IAppErrorCodes
| 限定符和类型 | 字段和说明 |
|---|---|
protected static String |
COMMA_DELIMITERS |
protected static String |
PATH_DELIMITERS |
m_appName, m_log, m_propertyOverridesARGS_IO_FAILURE, CLASS_STAMP_MISMATCH, INSTR_IO_FAILURE, INVALID_COLUMN_NAME, INVALID_COMMAND_NAME, INVALID_PARAMETER_VALUE, MAIN_CLASS_BAD_DELEGATION, MAIN_CLASS_LOAD_FAILURE, MAIN_CLASS_NOT_FOUND, MAIN_METHOD_FAILURE, MAIN_METHOD_NOT_FOUND, OUT_IO_FAILURE, OUT_MKDIR_FAILURE, REPORT_GEN_FAILURE, REPORT_IO_FAILURE, REQUIRED_PARAMETER_MISSING, SECURITY_RESTRICTION, UNEXPECTED_FAILURE| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
_run(IProperties toolProperties)
This method is implemented by each concrete Processor class to perform
tool-specific processing.
|
static RunProcessor |
create(ClassLoader delegate)
Factory method for this processor.
|
void |
run()
Executes this Processor's unit of work as the following sequence:
calls
Processor.validateState() to ensure all required attributes
have been set;
creates Processor-specific properties by combining
app-global properties with
property overrides for this Processor instance;
pushes a new Logger on the thread-local stack and sets it
as Processor.m_log field;
calls Processor._run(IProperties) with Processor-specific properties;
pops the thread-local Logger stack and clears Processor.m_log. |
void |
setAppClass(String className,
String[] args) |
void |
setCoveragePath(String[] path,
boolean canonical) |
void |
setDumpSessionData(boolean dump) |
void |
setInclExclFilter(String[] specs) |
void |
setReportTypes(String[] types) |
void |
setScanCoveragePath(boolean scan) |
void |
setSessionOutFile(String fileName) |
void |
setSessionOutMerge(Boolean merge) |
void |
setSourcePath(String[] path) |
protected void |
validateState()
Validates attribute settings before each
Processor._run(IProperties). |
setAppName, setPropertyOverrides, setPropertyOverridesprotected static final String PATH_DELIMITERS
public static RunProcessor create(ClassLoader delegate)
delegate - loader that will be used for class delegation by the instrumenting
class loader created by this RunProcessor [if null, delegation is disabled]public void run()
ProcessorProcessor.validateState() to ensure all required attributes
have been set;properties by combining
app-global properties with
property overrides for this Processor instance;Logger on the thread-local stack and sets it
as Processor.m_log field;Processor._run(IProperties) with Processor-specific properties;Processor.m_log.public void setCoveragePath(String[] path, boolean canonical)
path - [null is equivalent to empty array]canonical - public void setScanCoveragePath(boolean scan)
public void setSourcePath(String[] path)
path - [null is equivalent to no source path]public final void setInclExclFilter(String[] specs)
specs - [null is equivalent to no filtering (everything is included)]public void setAppClass(String className, String[] args)
className - [may not be null or empty]args - [null is equivalent to an empty array]public void setDumpSessionData(boolean dump)
public final void setSessionOutFile(String fileName)
fileName - [null unsets the previous override setting]public final void setSessionOutMerge(Boolean merge)
merge - [null unsets the previous override setting]public void setReportTypes(String[] types)
types - [may not be null]protected void validateState()
ProcessorProcessor._run(IProperties).
Overridden implementations should chain to super.validateState().
validateState 在类中 Processorprotected void _run(IProperties toolProperties)
Processor_run 在类中 ProcessortoolProperties - properties incorporating app-global setting and
overrides set optionally via Processor.setPropertyOverrides(Properties) or
Processor.setPropertyOverrides(IProperties) [never null]Copyright © 2018. All rights reserved.