GceRemoteCmdFormatter
public class GceRemoteCmdFormatter
extends Object
java.lang.Object | |
↳ | com.android.tradefed.device.cloud.GceRemoteCmdFormatter |
用于格式化命令以到达远程gce设备的实用程序类。
概括
嵌套类 | |
---|---|
enum | GceRemoteCmdFormatter.ScpMode 根据args的结构,SCP可用于推入或拉出文件。 |
公共建设者 | |
---|---|
GceRemoteCmdFormatter () |
公开方法 | |
---|---|
static | getScpCommand (File sshKey, extraOptions, String user, String hostName, String remoteFile, String localFile, GceRemoteCmdFormatter.ScpMode mode) getScpCommand (File sshKey, extraOptions, String user, String hostName, String remoteFile, String localFile, GceRemoteCmdFormatter.ScpMode mode) 创建scp命令以从远程gce设备获取文件的实用程序。 |
static | getSshCommand (File sshKey, extraOptions, String user, String hostName, String... command) getSshCommand (File sshKey, extraOptions, String user, String hostName, String... command) 用于根据某些参数为gce设备创建ssh命令的实用程序。 |
公共建设者
GceRemoteCmdFormatter
public GceRemoteCmdFormatter ()
公开方法
getScpCommand
public staticgetScpCommand (File sshKey, extraOptions, String user, String hostName, String remoteFile, String localFile, GceRemoteCmdFormatter.ScpMode mode)
创建scp命令以从远程gce设备获取文件的实用程序。
参数 | |
---|---|
sshKey | File :ssh键ERROR(/File) 。 |
extraOptions | String 列表,用于额外的ssh选项。可以为null。 |
user | String |
hostName | String :连接到gce设备的主机名。 |
remoteFile | String :要在远程gce设备上获取的文件。 |
localFile | String :放置远程文件的本地文件。 |
mode | GceRemoteCmdFormatter.ScpMode :我们是将本地文件推送到远程还是拉出远程 |
退货 | |
---|---|
一个表示gce设备的scp命令的列表。 |
getSshCommand
public staticgetSshCommand (File sshKey, extraOptions, String user, String hostName, String... command)
用于根据某些参数为gce设备创建ssh命令的实用程序。
参数 | |
---|---|
sshKey | File :ssh键ERROR(/File) 。 |
extraOptions | String 列表,用于额外的ssh选项。可以为null。 |
user | String |
hostName | String :连接到gce设备的主机名。 |
command | String :在gce设备上运行的实际命令。 |
退货 | |
---|---|
一个表示gce设备的ssh命令的列表。 |
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2019-10-02。
[]
[]