|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.di.fc.remotecmdlnfc.ConnectionImpl
com.ibm.di.fc.remotecmdlnfc.AS400Connection
public class AS400Connection
| Field Summary | |
|---|---|
protected Object[] |
args
To be used in logged messages |
protected static String |
TYPE
The connection protocol being used |
| Fields inherited from class com.ibm.di.fc.remotecmdlnfc.ConnectionImpl |
|---|
as400Proxy, as400RunProg, as400SSL, cmdArgsCharEncode, EMPTYSTRING, hostName, initial_timeout, keystore, lp, parentDirToStdin, passphrase, password, port, randomDir, rtnCodeAttr, stdErrorAttr, stdOutputAttr, timeout, 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.fc.remotecmdlnfc.ConnectionImpl |
|---|
createRandomDir, endSession, getHost, getOSSeparator, getRXAProtocol, getUser, initializeProps, 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 |
|---|
protected 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 | ||||||||||