| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.di.protocols.rxa.ConnectionImpl
com.ibm.di.protocols.rxa.AS400Connection
public class AS400Connection
This class encapsulates the RXA library's AS400 Connection related objects
| Field Summary | |
|---|---|
protected  Object[] | 
args
To be used in logged messages  | 
static String | 
TYPE
The connection protocol being used  | 
| Fields inherited from class com.ibm.di.protocols.rxa.ConnectionImpl | 
|---|
AS400_PROXY, AS400_RUNPROG, AS400_SSL, as400Proxy, as400RunProg, as400SSL, cmdArgsCharEncode, COMMAND_RETURN_CODE, COMMAND_STD_ERROR, COMMAND_STD_OUTPUT, EMPTYSTRING, HANDLE_TEXT_FILE, hostName, HOSTNAME, initial_timeout, INITIAL_TIMEOUT, keystore, KEYSTORE, lp, parentDirToStdin, passphrase, PASSPHRASE, password, PASSWORD, PATH, port, PORT, randomDir, RECURSIVE_SEARCH, rtnCodeAttr, SOURCEPATH, stdErrorAttr, stdOutputAttr, timeout, TIMEOUT, userName, USERNAME | 
| Constructor Summary | |
|---|---|
AS400Connection(LogProxy log)
 | 
|
| Method Summary | |
|---|---|
 com.ibm.tivoli.remoteaccess.RemoteAccess | 
beginSession()
Begin a session with the target machine using the SSH protocol  | 
protected  Entry | 
getEntryResponse(com.ibm.tivoli.remoteaccess.ProgramOutput p)
Transform the ProgramOutput into an Entry object containing the results  | 
 String | 
getType()
Return this connection type  | 
 Entry | 
runAS400Program(String c,
                String[] args,
                String delim)
Run the specified command on the target machine  | 
 void | 
transferFile(String localPath,
             String remotePath)
Transfer the specified file from the local machine to a specified destination on the remote target  | 
| Methods inherited from class com.ibm.di.protocols.rxa.ConnectionImpl | 
|---|
createDir, createRandomDir, endSession, getHost, getOSSeparator, getRXAProtocol, getUser, initializeProps, isExists, list, receiveFile, removeDir, runCommand, setCmdArgsCharEncode, setHost, setRXAProtocol, setUser | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final String TYPE
protected Object[] args
| Constructor Detail | 
|---|
public AS400Connection(LogProxy log)
log - | Method Detail | 
|---|
public com.ibm.tivoli.remoteaccess.RemoteAccess beginSession()
                                                      throws RemoteConnectException
beginSession in interface ConnectionbeginSession in class ConnectionImplRemoteConnectExceptionpublic String getType()
getType in interface ConnectiongetType in class ConnectionImplprotected Entry getEntryResponse(com.ibm.tivoli.remoteaccess.ProgramOutput p)
p - The ProgramOutput object containing the results from executing
            the command
public Entry runAS400Program(String c,
                             String[] args,
                             String delim)
                      throws GeneralCLFCException
c - String containing the command to be executedargs - command argumentsdelim - command argument delimiter
GeneralCLFCException
public void transferFile(String localPath,
                         String remotePath)
                  throws GeneralCLFCException
transferFile in interface ConnectiontransferFile in class ConnectionImpllocalPath - Path to the source file on the local machineremotePath - Path to where the file is to be stored on the remote machine
GeneralCLFCException - if the transfer fails
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||