|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Connection
Represents a connection using the Remote Execution and Access Library
Method Summary | |
---|---|
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()
Return the name of the target machine |
char |
getOSSeparator()
Return the character that the target uses to separate path information |
com.ibm.tivoli.remoteaccess.RemoteAccess |
getRXAProtocol()
Return the internal RXA connection object |
String |
getType()
Return the connection protocol used for this connection |
String |
getUser()
Return the username being used to connect to the target |
void |
initializeProps(Properties p)
Initialize the connection properties |
void |
removeDir(String dir)
Remove a directory on the target machine |
Entry |
runCommand(String cmd)
Execute the command on the target |
void |
setHost(String h)
Set the hostname of the target |
void |
setUser(String u)
Set the username being used to connect to the target |
void |
transferFile(String local,
String remote)
Transfer the specified file from the local machine to a specified destination on the remote target |
Method Detail |
---|
String getHost()
void setHost(String h)
h
- Hostname of target machineString getUser()
void setUser(String u)
u
- The name of the uservoid initializeProps(Properties p)
p
- The configurable attributes for the connectioncom.ibm.tivoli.remoteaccess.RemoteAccess beginSession() throws RemoteConnectException
RemoteConnectException
- Thrown if starting the session is unsuccessfulEntry runCommand(String cmd) throws GeneralCLFCException
cmd
- The command to be executed
GeneralCLFCException
- If errors are encountered when attempting to run the commandchar getOSSeparator() throws RemoteConnectException
RemoteConnectException
void removeDir(String dir) throws GeneralCLFCException
dir
- The path to the folder to be deleted
GeneralCLFCException
- if the folder cannot be successfully removed from the targetvoid transferFile(String local, String remote) throws GeneralCLFCException
local
- Path to the source file on the local machineremote
- Path to where the file is to be stored on the remote machine
GeneralCLFCException
- if the transfer failsString createRandomDir(String p) throws GeneralCLFCException, RemoteConnectException
p
- The path to the parent directory where the random directory is to be created
GeneralCLFCException
RemoteConnectException
void endSession()
com.ibm.tivoli.remoteaccess.RemoteAccess getRXAProtocol()
String getType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |