GceRemoteCmdFormatter
public class GceRemoteCmdFormatter
extends Object
java.lang.Object | |
↳ | com.android.tradefed.device.cloud.GceRemoteCmdFormatter |
リモートgceデバイスに到達するためのコマンドをフォーマットするユーティリティクラス。
概要
ネストされたクラス | |
---|---|
enum | GceRemoteCmdFormatter.ScpMode 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) リモートgceデバイスからファイルをフェッチするためのscpコマンドを作成するユーティリティ。 |
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)
リモートgceデバイスからファイルをフェッチするためのscpコマンドを作成するユーティリティ。
パラメーター | |
---|---|
sshKey | File :sshキーERROR(/File) 。 |
extraOptions | String リスト。 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 リスト。 nullにすることができます。 |
user | String |
hostName | String :gceデバイスに接続するホスト名。 |
command | String :gceデバイスで実行する実際のコマンド。 |
戻り値 | |
---|---|
gceデバイスのsshコマンドを表すリスト。 |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2019-10-02 UTC.
[]
[]