|
||||||||||
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 java.lang.Object[] |
args
To be used in logged messages |
protected static java.lang.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 |
java.lang.String |
getType()
Return this connection type |
Entry |
runAS400Program(java.lang.String c,
java.lang.String[] args,
java.lang.String delim)
Run the specified command on the target machine |
void |
transferFile(java.lang.String localPath,
java.lang.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 java.lang.String TYPE
protected java.lang.Object[] args
Constructor Detail |
---|
public AS400Connection(LogProxy log)
log
- Method Detail |
---|
public com.ibm.tivoli.remoteaccess.RemoteAccess beginSession() throws RemoteConnectException
beginSession
in interface Connection
beginSession
in class ConnectionImpl
RemoteConnectException
public java.lang.String getType()
getType
in interface Connection
getType
in class ConnectionImpl
protected Entry getEntryResponse(com.ibm.tivoli.remoteaccess.ProgramOutput p)
p
- The ProgramOutput object containing the results from executing
the command
public Entry runAS400Program(java.lang.String c, java.lang.String[] args, java.lang.String delim) throws GeneralCLFCException
c
- String containing the command to be executedargs
- command argumentsdelim
- command argument delimiter
GeneralCLFCException
public void transferFile(java.lang.String localPath, java.lang.String remotePath) throws GeneralCLFCException
transferFile
in interface Connection
transferFile
in class ConnectionImpl
localPath
- 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 |