public final class CtlProcessor extends Processor implements IAppErrorCodes
runtime. It hides all
details of our simple socket-based RPC mechanism and data marshalling.The interface exposed by CtlProcessor is not interactive. However, since each Processor instance is re-run()able, an interactive console app could be easily built on top of one.
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 CtlProcessor |
create()
Factory method for this processor.
|
void |
setCommandSequence(ControlRequest[] sequence)
Sets the control command sequence to be executed.
|
void |
setConnectionString(java.lang.String connection)
Overrides the RT connection string to be used.
|
protected void |
validateState()
Validates attribute settings before each
Processor._run(IProperties). |
run, setAppName, setPropertyOverrides, setPropertyOverridespublic static CtlProcessor create()
public final void setConnectionString(java.lang.String connection)
connection - [null/empty means to use the default connection settings]public final void setCommandSequence(ControlRequest[] sequence)
ControlRequest
entries in 'sequence' are allowed to have some arguments set to 'null' which
indicates that they should be filled in from defaults for this tool.sequence - [null is equivalent to an empty array]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.