|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.di.fc.remotecmdlnfc.ConnectionImpl
public abstract class ConnectionImpl
This class encapsulates the RXA library's Connection related objects
| Field Summary | |
|---|---|
protected String |
as400Proxy
|
protected boolean |
as400RunProg
|
protected boolean |
as400SSL
|
protected static String |
EMPTYSTRING
|
protected String |
hostName
|
protected String |
keystore
|
protected LogProxy |
lp
|
protected String |
parentDirToStdin
|
protected byte[] |
passphrase
|
protected byte[] |
password
|
protected int |
port
|
protected String |
randomDir
|
protected Attribute |
rtnCodeAttr
|
protected Attribute |
stdErrorAttr
|
protected Attribute |
stdOutputAttr
|
protected int |
timeout
|
protected String |
userName
|
| Constructor Summary | |
|---|---|
ConnectionImpl(LogProxy log)
ConnectionImpl Constructor |
|
| Method Summary | |
|---|---|
abstract com.ibm.tivoli.remoteaccess.RemoteAccess |
beginSession()
Begin a session with the target machine |
String |
createRandomDir(String p)
Create a random directory on the target machine |
void |
endSession()
End the session with the target machine |
String |
getHost()
Get the hostname of the target for the connection |
char |
getOSSeparator()
Return the character that the target uses to separate path information |
com.ibm.tivoli.remoteaccess.RemoteAccess |
getRXAProtocol()
Return the RXA Connection Object |
abstract String |
getType()
Return this connection type |
String |
getUser()
Get the username being used in the connection |
void |
initializeProps(Properties p)
Initialize the properties of the connection |
void |
removeDir(String dir)
Remove a directory on the target machine |
Entry |
runCommand(String c)
Run the specified command on the target machine |
void |
setHost(String s)
Set the hostname of the target with which to connect |
void |
setRXAProtocol(com.ibm.tivoli.remoteaccess.RemoteAccess remote)
Set the RXA connection object for this connection |
void |
setUser(String u)
Set the username to be used when connecting to the target |
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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String hostName
protected String userName
protected byte[] password
protected byte[] passphrase
protected String keystore
protected int timeout
protected int port
protected boolean as400SSL
protected String as400Proxy
protected boolean as400RunProg
protected Attribute rtnCodeAttr
protected Attribute stdErrorAttr
protected Attribute stdOutputAttr
protected LogProxy lp
protected String parentDirToStdin
protected String randomDir
protected static final String EMPTYSTRING
| Constructor Detail |
|---|
public ConnectionImpl(LogProxy log)
log - LogProxy for logging| Method Detail |
|---|
public void initializeProps(Properties p)
initializeProps in interface Connectionp - Properties object containing the configurable connection attributes
public abstract com.ibm.tivoli.remoteaccess.RemoteAccess beginSession()
throws RemoteConnectException
beginSession in interface ConnectionRemoteConnectExceptionpublic abstract String getType()
getType in interface Connectionpublic void endSession()
endSession in interface Connection
public Entry runCommand(String c)
throws GeneralCLFCException
runCommand in interface Connectionc - String containing the command to be executed
GeneralCLFCException
public String createRandomDir(String p)
throws RemoteConnectException,
GeneralCLFCException
createRandomDir in interface Connectionp - The path to the parent directory where the random directory is to be created
GeneralCLFCException
RemoteConnectException
public void removeDir(String dir)
throws GeneralCLFCException
removeDir in interface Connectiondir - The path to the folder to be deleted
GeneralCLFCException - if the folder cannot be successfully removed from the target
public void transferFile(String localPath,
String remotePath)
throws GeneralCLFCException
transferFile in interface ConnectionlocalPath - 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
public char getOSSeparator()
throws RemoteConnectException
getOSSeparator in interface ConnectionRemoteConnectExceptionpublic com.ibm.tivoli.remoteaccess.RemoteAccess getRXAProtocol()
getRXAProtocol in interface Connectionpublic void setHost(String s)
setHost in interface Connections - The hostname of the targetpublic String getHost()
getHost in interface Connectionpublic void setUser(String u)
setUser in interface Connectionu - Usernamepublic String getUser()
getUser in interface Connectionpublic void setRXAProtocol(com.ibm.tivoli.remoteaccess.RemoteAccess remote)
remote - The protocol-specific connection object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||