public class SAFSINPUT extends DriverConfiguredSTAFInterfaceClass implements InputInterface
[STAF] ;NOSTAF=TRUE will launch this service as an embedded services if AUTOLAUNCH=TRUE. [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 ;ServiceClass=org.safs.staf.service.input.EmbeddedInputService ;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
Modifier and Type | Field and Description |
---|---|
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
"org.safs.staf.service.input.SAFSInputService3"
|
protected static java.lang.String |
DEFAULT_SAFSINPUT_EMBEDDED_CLASS
"org.safs.staf.service.input.EmbeddedInputService"
|
protected static java.lang.String |
DEFAULT_SAFSINPUT_JAR
"safsinput.jar"
|
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 and Description |
---|
SAFSINPUT()
Constructor for SAFSINPUT.
|
Modifier and Type | Method and Description |
---|---|
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.
|
configureJSTAFServiceEmbeddedJVMOption, extendedGenericMessage, finalize, getCoreInterface, getEmbeddedJVMBinPath, getSTAFHelper, isToolRunning, logMessage, setLogUtilities, setLogUtilities, shutdown, shutdownService, simpleGenericMessage, simpleGenericSuccessMessage, simpleGenericWarningMessage, simpleSuccessMessage, simpleSuccessMessage, simpleSuccessUsingMessage, standardErrorMessage, waitForServiceStartCompletion
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_EMBEDDED_CLASS
protected static final java.lang.String DEFAULT_SAFSINPUT_JAR
protected java.lang.String classpath
public SAFSINPUT()
public void launchInterface(java.lang.Object configInfo)
launchInterface
in interface ConfigurableToolsInterface
launchInterface
in class DriverConfiguredSTAFInterfaceClass
configInfo
- 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 InputInterface
InputInterface.open(UniqueSourceInterface)
protected InputRecordInterface parseInputRecord(com.ibm.staf.STAFResult result)
public InputRecordInterface nextRecord(UniqueIDInterface source)
nextRecord
in interface InputInterface
InputInterface.nextRecord(UniqueIDInterface)
public boolean gotoStart(UniqueIDInterface source)
gotoStart
in interface InputInterface
InputInterface.gotoStart(UniqueIDInterface)
public InputRecordInterface gotoRecord(UniqueRecordInterface recordInfo)
gotoRecord
in interface InputInterface
InputInterface.gotoRecord(UniqueRecordInterface)
public void close(UniqueIDInterface source)
close
in interface InputInterface
InputInterface.close(UniqueIDInterface)
public void reset()
reset
in interface GenericToolsInterface
GenericToolsInterface.reset()
Copyright © SAS Institute. All Rights Reserved.