com.ibm.di.protocols.rxa
Class SSHConnection

java.lang.Object
  extended by com.ibm.di.protocols.rxa.ConnectionImpl
      extended by com.ibm.di.protocols.rxa.SSHConnection
All Implemented Interfaces:
Connection

public class SSHConnection
extends ConnectionImpl

This class encapsulates the RXA library's SSH Connection related objects


Field Summary
protected  java.lang.Object[] args
          To be used in logged messages
static java.lang.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
SSHConnection(LogProxy log)
          SSHConnection Constructor
 
Method Summary
 com.ibm.tivoli.remoteaccess.RemoteAccess beginSession()
          Begin a session with the target machine using the SSH protocol
 java.lang.String getType()
          Return this connection type
 
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, transferFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE

public static final java.lang.String TYPE
The connection protocol being used

See Also:
Constant Field Values

args

protected java.lang.Object[] args
To be used in logged messages

Constructor Detail

SSHConnection

public SSHConnection(LogProxy log)
SSHConnection Constructor

Parameters:
log - LogProxy for logging
Method Detail

beginSession

public com.ibm.tivoli.remoteaccess.RemoteAccess beginSession()
                                                      throws RemoteConnectException
Begin a session with the target machine using the SSH protocol

Specified by:
beginSession in interface Connection
Specified by:
beginSession in class ConnectionImpl
Returns:
RemoteAccess The RXA connection object
Throws:
RemoteConnectException

getType

public java.lang.String getType()
Return this connection type

Specified by:
getType in interface Connection
Specified by:
getType in class ConnectionImpl
Returns:
String The connection protocol used for this connection.