|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.fc.Function
com.ibm.di.fc.zOSTSOCommandLine
public class zOSTSOCommandLine
The zOSTSOCommandLine Function Component executes specified commands in zOS TSO command line. It uses APPC protocol to communicate with the zOS environment.
In order for the zOS TSO Command Line Function Component to successfully connect and execute commands the APPC should be started and running on the zOS machine. Also this function component can execute commands only on the same machine on which the IBM Tivoli Directory Integrator is running.
The connection to the MVS is maintained by four native methods implemented on the program language 'C' which on the other hand use REXX script to execute commands on behalf of the IBM Tivoli Directory Integrator.
Field Summary | |
---|---|
static java.lang.String |
ENTRY_ATTR_APPC_RETCODE
Attribute name: "appcReturnCode" |
static java.lang.String |
ENTRY_ATTR_CMD
Attribute name: "command" |
static java.lang.String |
ENTRY_ATTR_COMMAND_OUTPUT
Attribute name: "commandOutput" |
static java.lang.String |
ENTRY_ATTR_TSO_CMD_RETCODE
Attribute name: "tsoCommandReturnCode" |
static boolean |
isLibLoaded
Flag for loaded library. |
static java.lang.String |
LIB_NAME
Parameter Name: "tdiappc" |
int |
mATBOK
Value of the returned code for 'OK' |
static java.lang.String |
MSG_NO_RESPONSE
Message indicating that no response was received |
static int[] |
PARAMS_LEN
Allowed length of parameter |
static java.lang.String |
PARM_DEST_LU_NAME
Parameter Name: "destLuName" |
static int |
PARM_DEST_LU_NAME_ID
ID of the parameter: 1 |
static java.lang.String |
PARM_MODE_NAME
Parameter Name: "modeName" |
static int |
PARM_MODE_NAME_ID
ID of the parameter: 3 |
static java.lang.String |
PARM_PARTNERTP
Parameter Name: "partnerTP" |
static int |
PARM_PARTNERTP_ID
ID of the parameter: 0 |
static java.lang.String |
PARM_SRC_LU_NAME
Parameter Name: "srcLuName" |
static int |
PARM_SRC_LU_NAME_ID
ID of the parameter: 2 |
static java.lang.String |
PARM_USER_ID
Parameter Name: "userID" |
static int |
PARM_USER_ID_ID
ID of the parameter: 4 |
static java.lang.String |
PARM_USER_PSW
Parameter Name: "userPSW" |
static int |
PARM_USER_PSW_ID
ID of the parameter: 5 |
Fields inherited from class com.ibm.di.fc.Function |
---|
logger |
Constructor Summary | |
---|---|
zOSTSOCommandLine()
|
Method Summary | |
---|---|
void |
debug(java.lang.String msg)
Writes a message to the log if debug/detailed logging is turned on |
protected java.lang.String |
executeTSO(java.lang.String aTsoCmd)
Executes the TSO command passed as parameter. |
java.lang.String |
getVersion()
Version information. |
void |
initAndPrepareForConversation()
Initializes and prepares the FC. |
void |
initialize(java.lang.Object aParam)
Initializes the function component. |
static void |
loadLibrary()
Loads IBM Tivoli Directory Integrator library for APPC. |
void |
logmsg(java.lang.String msg)
Logs a message to the currently used log |
java.lang.Object |
perform(java.lang.Object aInObject)
Executes command on zOS TSO command line. |
protected void |
readZOSParam(java.lang.String aParamName,
int aParamId,
boolean aRequired,
boolean aToLog,
boolean aToUpperCase)
Retrieves zOS parameter. |
void |
terminate()
Terminates the function component. |
Methods inherited from class com.ibm.di.fc.Function |
---|
getConfiguration, getContext, getDebug, getLog, getParam, getRSInterface, getUI, initialize, querySchema, setConfiguration, setContext, setDebug, setLog, setParam, setRSInterface, updateSchema, verifyInitialized |
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 LIB_NAME
public static final java.lang.String PARM_PARTNERTP
public static final java.lang.String PARM_DEST_LU_NAME
public static final java.lang.String PARM_SRC_LU_NAME
public static final java.lang.String PARM_MODE_NAME
public static final java.lang.String PARM_USER_ID
public static final java.lang.String PARM_USER_PSW
public static final int PARM_PARTNERTP_ID
public static final int PARM_DEST_LU_NAME_ID
public static final int PARM_SRC_LU_NAME_ID
public static final int PARM_MODE_NAME_ID
public static final int PARM_USER_ID_ID
public static final int PARM_USER_PSW_ID
public static final int[] PARAMS_LEN
public static final java.lang.String ENTRY_ATTR_CMD
public static final java.lang.String ENTRY_ATTR_COMMAND_OUTPUT
public static final java.lang.String ENTRY_ATTR_APPC_RETCODE
public static final java.lang.String ENTRY_ATTR_TSO_CMD_RETCODE
public static final java.lang.String MSG_NO_RESPONSE
public static boolean isLibLoaded
false
.
public int mATBOK
Constructor Detail |
---|
public zOSTSOCommandLine()
Method Detail |
---|
public void initialize(java.lang.Object aParam) throws java.lang.Exception
initialize
in interface FunctionInterface
initialize
in class Function
aParam
- Object to initialize; not used
java.lang.Exception
protected void readZOSParam(java.lang.String aParamName, int aParamId, boolean aRequired, boolean aToLog, boolean aToUpperCase) throws java.lang.Exception
aParamName
- parameter nameaParamId
- parameter IDaRequired
- true
indicates required parameteraToLog
- if true
to log to the console if debug/detailed
logging is turned onaToUpperCase
- true
if we want to uppercase parameter value;
false
otherwise.
java.lang.Exception
- null
public void initAndPrepareForConversation() throws java.lang.Exception
java.lang.Exception
- if an error occurs.public static void loadLibrary()
public java.lang.Object perform(java.lang.Object aInObject) throws java.lang.Exception
aInObject
- initial entry to proceed
java.lang.Exception
- protected java.lang.String executeTSO(java.lang.String aTsoCmd) throws java.lang.Exception
aTsoCmd
- The TSO command to be executed.
java.lang.Exception
public void terminate() throws java.lang.Exception
terminate
in interface FunctionInterface
terminate
in class Function
java.lang.Exception
public void logmsg(java.lang.String msg)
logmsg
in interface FunctionInterface
logmsg
in class Function
msg
- The message appearing in the logpublic void debug(java.lang.String msg)
debug
in interface FunctionInterface
debug
in class Function
msg
- The messagepublic java.lang.String getVersion()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |