|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.safs.Processor
org.safs.DriverCommandProcessor
public class DriverCommandProcessor
Purpose: DriverCommandProcessor
Lifetime: instantiated by ProcessRequest
| Field Summary | |
|---|---|
protected static boolean |
dcBreakpointsOn
All DriverCommandProcessor instances may enable/disable and force breakpoints where they deem this appropriate. |
protected DriverCommand |
dcCustom
|
protected DriverCommand |
dcData
|
protected DriverCommand |
dcFile
|
protected DriverCommand |
dcFlow
|
protected DriverCommand |
dcMisc
|
protected DriverCommand |
dcStrg
|
protected DriverCommand |
dcTimer
|
static java.lang.String |
DEFAULT_DRIVER_COMMAND_CLASSNAME
"DCDriverCommand" Short classname appended to alternative/custom package names. |
protected boolean |
standardDC
True if the processor is suppose to use Standard Driver Command processors. |
| Constructor Summary | |
|---|---|
DriverCommandProcessor()
Purpose: constructor, calls super |
|
| Method Summary | |
|---|---|
protected void |
checkMyBreakpoints(java.lang.String breakpoint_message)
test for enabled DC-specific breakpoints in addition to the standard Processor breakpoints. |
java.util.ArrayList |
getCustomProcClassNames()
Overrides Processor.getCustomProcClassName The routine returns a list of: super.getCustomProcClassNames customProcInstancePath.DCDriverCommand customProcInstancePath.custom.DCDriverCommand |
java.util.ArrayList |
getProcClassNames()
Overrides Processor.getProcClassNames The routine returns a list of: super.getProcClassNames procInstancePath.DCDriverCommand |
protected boolean |
instantiateAndProcessDriverCommand(java.util.Collection params)
Purpose: instantiateAndProcessDriverCommand Side Effects: State Read: Processor.testRecordData
Assumptions: If it cannot process a local (org.safs) driver command, then assumes that the driver command is DCDriverCommand with the path taken from testRecordData.getCompInstancePath() |
protected java.util.Collection |
interpretFields()
Purpose: Interprets the fields of the driver command record and puts the appropriate values into the fields of testRecordData. |
static boolean |
isDCBreakpointsOn()
test if DC-specific breakpoints are enabled. |
boolean |
isStandardDriverCommandsEnabled()
|
boolean |
isSupportedRecordType(java.lang.String recordType)
Supports standard DRIVER COMMAND record types (C, CW, CF) |
void |
process()
Purpose: process: process the testRecordData |
protected boolean |
processStandardDriverCommands(java.util.Collection params)
|
static void |
setDCBreakpointsOn(boolean enabled)
This may be set by any means. |
void |
setStandardDriverCommandsEnabled(boolean enabled)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_DRIVER_COMMAND_CLASSNAME
protected static boolean dcBreakpointsOn
protected boolean standardDC
protected DriverCommand dcMisc
protected DriverCommand dcFile
protected DriverCommand dcData
protected DriverCommand dcStrg
protected DriverCommand dcFlow
protected DriverCommand dcCustom
protected DriverCommand dcTimer
| Constructor Detail |
|---|
public DriverCommandProcessor()
| Method Detail |
|---|
public boolean isSupportedRecordType(java.lang.String recordType)
isSupportedRecordType in class ProcessorrecordType - -- String text of record type to match (ignoring case).
public static void setDCBreakpointsOn(boolean enabled)
public static boolean isDCBreakpointsOn()
protected void checkMyBreakpoints(java.lang.String breakpoint_message)
checkMyBreakpoints in class Processorpublic void setStandardDriverCommandsEnabled(boolean enabled)
public boolean isStandardDriverCommandsEnabled()
protected boolean processStandardDriverCommands(java.util.Collection params)
public java.util.ArrayList getProcClassNames()
Use validProcessorClassName before adding class names to the list.
getProcClassNames in class Processorpublic java.util.ArrayList getCustomProcClassNames()
Use validProcessorClassName before adding class names to the list.
getCustomProcClassNames in class Processorpublic void process()
At this point the Driver has determined we are dealing with a Driver Command Record.
Field #1: The record type (C).
Subsequent fields would be as follows (with a separator between each field):
Field: #2 #3 - N
============== ==============
COMMAND, [PARAMETER(S),]
COMMAND the driver command
Side Effects: Processor.testRecordData statusCode is set
based on the result of the processing
State Read: Processor.testRecordData
Assumptions: an 'SAFSException' is caught here, and if so, the status code
is set to StatusCodes.WRONG_NUM_FIELDS, which is the only error which should come
from the interpretFields() method which we call. This only happens if we don't have
the token (2)
Added by dbauman Feb, 2004 so that a variable remains for the next test with
the status code. Copies the status code to variable 'customStatusCode'
process in class Processor
protected java.util.Collection interpretFields()
throws SAFSException
Processor.testRecordData fields are set from the inputRecord.
Processor.testRecordData, the inputRecord field
Field #1: The DRIVER COMMAND record type (C).
Subsequent fields would be as follows (with a separator between each field):
Field: #2 #3 - N
============== ===============
COMMAND, [PARAMETER(S),]
SAFSException
protected boolean instantiateAndProcessDriverCommand(java.util.Collection params)
throws SAFSException
Processor.testRecordData
for driver commands in different packages,
we make use of a HashMap of commands already instantiated,
and reuse them if possible, so that we do not have to incurr the cost of
instantiating over and over again. field: '#commandMap'
params, - Collection
SAFSException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||