public class RemoteOperationHelper extends Object
Modifier and Type | Method and Description |
---|---|
void |
copyFile(String vmIpAddress,
String userName,
String password,
String localFile,
String remoteDir)
Copy a file from local computer to a remote computer
|
void |
executeCommand(String vmIpAddress,
String userName,
String password,
String command)
Execute a shell command on a remote vm
|
void |
executeSudoCommand(String vmIpAddress,
String userName,
String password,
String command)
Execute a shell command in sudo mode on a remote vm
|
static RemoteOperationHelper |
getInstance() |
public static RemoteOperationHelper getInstance()
public void copyFile(String vmIpAddress, String userName, String password, String localFile, String remoteDir)
vmIpAddress
- remote computer ip addressuserName
- remote userpassword
- remote passwordlocalFile
- local fileremoteDir
- remote directorypublic void executeCommand(String vmIpAddress, String userName, String password, String command)
vmIpAddress
- remote vm ip addressuserName
- user namepassword
- passwordcommand
- shell commandCopyright © 2019 CorfuDB. All rights reserved.