public abstract class AbstractCommandExec extends AbstractExec
Modifier and Type | Field and Description |
---|---|
static char |
CLOSED_PAREN |
static java.lang.String |
DDNAME_KEYWORD |
static java.lang.String |
DEFAULT_SH_EXEC
The default location to the BOURNE exec.
|
static java.lang.String |
DSNAME_KEYWORD |
static java.lang.String |
FREE_COMMAND |
static java.lang.String |
INTERACTIVE_GATEWAY
Constant for the ISPF Interactive Gateway
|
static java.lang.String |
ISPF_RETURN_CODE
Internal use to retrieve the RC returned from running the command
|
static java.lang.String |
LEGACY_GATEWAY
Constant for the ISPF Legacy Gateway
|
static char |
OPEN_PAREN |
static java.lang.String |
PATH_KEYWORD |
static char |
SINGLE_QUOTE |
static char |
SPACE |
Constructor and Description |
---|
AbstractCommandExec()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAccountNumber()
Get the account number for the interactive ISPF Gateway
|
java.lang.String |
getCommand()
Returns the TSO/ISPF command to be executed
|
java.lang.String |
getConfDir()
Returns the configuration directory where runIspf.sh could be found
|
java.lang.String |
getGatewayType()
Get the gateway type for the TSOExec command
|
java.lang.String |
getGroupId()
Get the group ID for the interactive ISPF Gateway
|
java.lang.String |
getLogEncoding()
Returns the encoding of the log file
|
java.io.File |
getLogFile()
Returns the path to the log file
|
int |
getLogLevel()
Get the log level for the interactive ISPF Gateway
|
java.lang.String |
getOptions()
Retrieve the options to pass to the command
|
java.lang.String |
getOutput()
Returns the output from the ISPF command
|
java.lang.String |
getProcedureName()
Get the procedure name for the interactive ISPF Gateway
|
java.lang.String |
getRegionSize()
Get the region size for the interactive ISPF Gateway
|
java.lang.String |
getShExec()
Returns the path to the Bourne shell executor
|
boolean |
isKeepCommandScript()
Returns
true if REXX command data set should be kept
after execution. |
boolean |
isReuseIspfSession()
Returns
true if an existing ISPF session should be reused |
boolean |
isWaitingForResponse()
Returns whether or not the ISPFExec or TSOExec is expecting a response
|
void |
setAccountNumber(java.lang.String accountNumber)
Set the account number for the interactive ISPF Gateway
|
void |
setCommand(java.lang.String command)
Sets the TSO/ISPF command to be executed
|
void |
setConfDir(java.lang.String confDir)
Set the configuration directory where runIspf.sh could be found
|
void |
setGatewayType(java.lang.String gatewayType)
Set the gateway type for the TSOExec command
|
void |
setGroupId(java.lang.String groupId)
Set the group ID for the interactive ISPF Gateway
|
void |
setKeepCommandScript(boolean keepCommandScript)
Sets to
true if the REXX command data set should be kept. |
void |
setLogEncoding(java.lang.String logEncoding)
Sets the log encoding
|
void |
setLogFile(java.io.File logFile)
Sets the path to the log file
|
void |
setLogLevel(int logLevel)
Set the log level for the interactive ISPF Gateway
|
void |
setOptions(java.lang.String options)
Set the options to pass to the command
|
void |
setProcedureName(java.lang.String procedureName)
Set the procedure name for the interactive ISPF Gateway
|
void |
setRegionSize(java.lang.String regionSize)
Set the region size for the interactive ISPF Gateway
|
void |
setResponse(java.lang.String response)
Sets the response command for the interactive ISPF Gateway
|
void |
setReuseIspfSession(boolean reuseIspfSession)
Sets whether an existing ISPF session should be used
|
void |
setShExec(java.lang.String shExec)
Sets the path to the Bourne shell executor.
|
addAllDDStatements, addDDStatement, addDDStatement, addDDStatment, dd, execute, getDDStatements, getFile, setFile
public static final java.lang.String DEFAULT_SH_EXEC
public static final java.lang.String ISPF_RETURN_CODE
public static final java.lang.String INTERACTIVE_GATEWAY
public static final java.lang.String LEGACY_GATEWAY
public static final java.lang.String FREE_COMMAND
public static final java.lang.String DDNAME_KEYWORD
public static final java.lang.String DSNAME_KEYWORD
public static final java.lang.String PATH_KEYWORD
public static final char SPACE
public static final char OPEN_PAREN
public static final char CLOSED_PAREN
public static final char SINGLE_QUOTE
public java.lang.String getShExec()
public void setShExec(java.lang.String shExec)
shExec
- the path to the Bourne shell executorpublic java.lang.String getCommand()
public void setCommand(java.lang.String command)
command
- to be executedpublic java.lang.String getOptions()
public void setOptions(java.lang.String options)
options
- the optionspublic java.lang.String getConfDir()
public void setConfDir(java.lang.String confDir)
confDir
- the configuration directory where runIspf.sh could be foundpublic java.io.File getLogFile()
public void setLogFile(java.io.File logFile)
logFile
- the path to the log filepublic java.lang.String getLogEncoding()
public void setLogEncoding(java.lang.String logEncoding)
logEncoding
- the encoding to be used by the log filepublic void setResponse(java.lang.String response)
response
- commandpublic void setGatewayType(java.lang.String gatewayType)
gatewayType
- the ISPF Gateway type to call: "legacy" or "interactive"public void setProcedureName(java.lang.String procedureName)
procedureName
- the procedure name used by the interactive ISPF Gatewaypublic void setAccountNumber(java.lang.String accountNumber)
accountNumber
- the account number used by the interactive ISPF Gatewaypublic void setGroupId(java.lang.String groupId)
groupId
- the group ID used by the interactive ISPF Gatewaypublic void setRegionSize(java.lang.String regionSize)
regionSize
- the region size used by the interactive ISPF Gatewaypublic void setLogLevel(int logLevel)
logLevel
- the log level used by the interactive ISPF Gatewaypublic java.lang.String getGatewayType()
public java.lang.String getProcedureName()
public java.lang.String getAccountNumber()
public java.lang.String getGroupId()
public java.lang.String getRegionSize()
public int getLogLevel()
public java.lang.String getOutput()
public boolean isWaitingForResponse()
public boolean isReuseIspfSession()
true
if an existing ISPF session should be reusedtrue
if an existing ISPF session should be reusedpublic void setReuseIspfSession(boolean reuseIspfSession)
reuseIspfSession
- true
to indicate an existing ISPF session
should be usedpublic void setKeepCommandScript(boolean keepCommandScript)
true
if the REXX command data set should be kept.
By default this data set will be deleted after executionkeepCommandScript
- true
if the REXX command data set should
be keptpublic boolean isKeepCommandScript()
true
if REXX command data set should be kept
after execution.true
if the REXX command data set should be kep
after execution.<IBM Copyright © 2018 IBM Corp. All Rights Reserved.