| 
|||||||||||
| 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  | 
 void | 
createDir(String dir)
Create a directory on 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  | 
 boolean | 
isExists(String path)
Returns true/false to check a given file exists or not  | 
 ArrayList<String> | 
list(String path)
Retrieves the list of files  | 
 void | 
receiveFile(String remote,
            String local)
Receives the specified file from the specified target machine to local machine  | 
 void | 
removeDir(String dir)
Remove a directory on the target machine  | 
 Entry | 
runCommand(String cmd)
Execute the command on the target  | 
 void | 
setCmdArgsCharEncode(String enc)
Sets encoding for the command arguments before executing the actual command  | 
 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 connection
com.ibm.tivoli.remoteaccess.RemoteAccess beginSession()
                                                      throws RemoteConnectException
RemoteConnectException - Thrown if starting the session is unsuccessful
Entry runCommand(String cmd)
                 throws GeneralCLFCException
cmd - The command to be executed
GeneralCLFCException - If errors are encountered when attempting to run the command
char getOSSeparator()
                    throws RemoteConnectException
RemoteConnectException
void createDir(String dir)
               throws GeneralCLFCException
dir - The path to the folder to be created
GeneralCLFCException - if the folder cannot be successfully created on the target
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 target
void 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 fails
void receiveFile(String remote,
                 String local)
                 throws GeneralCLFCException
remote - Path to the source file on the remote machinelocal - Path to where the file is to be stored on the local machine
GeneralCLFCException - if the transfer fails
boolean isExists(String path)
                 throws GeneralCLFCException
path - path of the file on the remote machine
GeneralCLFCException
ArrayList<String> list(String path)
                       throws GeneralCLFCException
path - path on the remote machine
GeneralCLFCException
String createRandomDir(String p)
                       throws GeneralCLFCException,
                              RemoteConnectException
p - The path to the parent directory where the random directory is
            to be created
GeneralCLFCException
RemoteConnectExceptionvoid endSession()
com.ibm.tivoli.remoteaccess.RemoteAccess getRXAProtocol()
String getType()
void setCmdArgsCharEncode(String enc)
enc - encoding to be used
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||