|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.safs.tools.drivers.DriverConfiguredSTAFInterfaceClass
org.safs.tools.input.SAFSINPUT
public class SAFSINPUT
This concrete implementation interfaces clients to the SAFSINPUT service. This class expects a DriverInterface object to provide access to all configuration information.
[SAFS_INPUT] AUTOLAUNCH=TRUE ;ITEM=org.safs.tools.input.SAFSINPUT ;Service=SAFSINPUT ;ServiceClass will be different for STAF2 and STAF3 ;ServiceClass=org.safs.staf.service.input.SAFSInputService ;ServiceClass=org.safs.staf.service.input.SAFSInputService3 ;If we indicate the SERVICEJAR, the jar's manifest file contains the necessary info to ;distinguish the STAF's version, and select the right class to load service ;SERVICEJAR=C:\safs\lib\safsinput.jar ;OPTIONS=
The Driver's 'safs.driver.autolaunch' command-line option is also queried for this setting and overrides any other configuration source setting.
The default AUTOLAUNCH setting is TRUE.
The default ITEM value is org.safs.tools.input.SAFSINPUT
The default SERVICECLASS value is org.safs.staf.service.input.SAFSInputService
The default SERVICEJAR value is [safsroot]/lib/safsinput.jar
| Field Summary | |
|---|---|
protected java.lang.String |
classpath
Stores classname or JAR file fullpath for STAF service initialization. |
protected static java.lang.String |
DEFAULT_SAFSINPUT_CLASS
"org.safs.staf.service.input.SAFSInputService" |
protected static java.lang.String |
DEFAULT_SAFSINPUT_CLASS3
|
protected static java.lang.String |
DEFAULT_SAFSINPUT_JAR
"safsinput.jar" |
| Fields inherited from class org.safs.tools.drivers.DriverConfiguredSTAFInterfaceClass |
|---|
config, customStr, customText, debugStr, debugText, driver, DRIVER_TEMP_PROCESS, failedStr, failedText, genericStr, genericText, launchCount, log, machine, otherStr, otherText, passedStr, passedText, processName, running, SAFS_RESBUN_NAME, servicename, shutdownCount, staf, STAFPROC_EXE, warningStr, warningText, weStartedService, weStartedSTAF |
| Constructor Summary | |
|---|---|
SAFSINPUT()
Constructor for SAFSINPUT. |
|
| Method Summary | |
|---|---|
void |
close(UniqueIDInterface source)
Close the specified input source. |
InputRecordInterface |
gotoRecord(UniqueRecordInterface recordInfo)
Goto a specific linenumber or blockid of the specified input source. |
boolean |
gotoStart(UniqueIDInterface source)
Goto the beginning of the specified input source. |
void |
launchInterface(java.lang.Object configInfo)
Expects a DriverInterface for initialization. |
InputRecordInterface |
nextRecord(UniqueIDInterface source)
Return the next record from the specified input source. |
boolean |
open(UniqueSourceInterface source)
Open a new Input source. The UniqueSourceInterface is expected to simply have the id and the filename or fullpath. |
protected InputRecordInterface |
parseInputRecord(com.ibm.staf.STAFResult result)
Return a valid InputRecordInfo object or an InputRecordInvalid object. |
void |
reset()
Reset/Clear all sources in the service. |
| Methods inherited from class org.safs.tools.drivers.DriverConfiguredSTAFInterfaceClass |
|---|
extendedGenericMessage, finalize, getSTAFHelper, isToolRunning, logMessage, setLogUtilities, shutdown, shutdownService, simpleGenericMessage, simpleGenericSuccessMessage, simpleGenericWarningMessage, simpleSuccessMessage, simpleSuccessMessage, simpleSuccessUsingMessage, standardErrorMessage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.lang.String DEFAULT_SAFSINPUT_CLASS
protected static final java.lang.String DEFAULT_SAFSINPUT_CLASS3
protected static final java.lang.String DEFAULT_SAFSINPUT_JAR
protected java.lang.String classpath
| Constructor Detail |
|---|
public SAFSINPUT()
| Method Detail |
|---|
public void launchInterface(java.lang.Object configInfo)
launchInterface in interface ConfigurableToolsInterfacelaunchInterface in class DriverConfiguredSTAFInterfaceClassconfigInfo - can be whatever the final implementation needs it to be. This
might be a String with configuration information, the name of a class, or an instance
of some object used to provide configuration assets.ConfigurableToolsInterface.launchInterface(Object)public boolean open(UniqueSourceInterface source)
open in interface InputInterfaceInputInterface.open(UniqueSourceInterface)protected InputRecordInterface parseInputRecord(com.ibm.staf.STAFResult result)
public InputRecordInterface nextRecord(UniqueIDInterface source)
nextRecord in interface InputInterfaceInputInterface.nextRecord(UniqueIDInterface)public boolean gotoStart(UniqueIDInterface source)
gotoStart in interface InputInterfaceInputInterface.gotoStart(UniqueIDInterface)public InputRecordInterface gotoRecord(UniqueRecordInterface recordInfo)
gotoRecord in interface InputInterfaceInputInterface.gotoRecord(UniqueRecordInterface)public void close(UniqueIDInterface source)
close in interface InputInterfaceInputInterface.close(UniqueIDInterface)public void reset()
reset in interface GenericToolsInterfaceGenericToolsInterface.reset()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||