GceRemoteCmdFormatter
public class GceRemoteCmdFormatter
extends Object
java.lang.Object | |
↳ | com.android.tradefed.device.cloud.GceRemoteCmdFormatter |
リモート gce デバイスに到達するコマンドをフォーマットするユーティリティ クラス。
まとめ
パブリック コンストラクター | |
---|---|
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 ()
公開メソッド
getScpコマンド
public staticgetScpCommand (File sshKey, extraOptions, String user, String hostName, String remoteFile, String localFile, GceRemoteCmdFormatter.ScpMode mode)
リモート gce デバイスからファイルをフェッチする scp コマンドを作成するユーティリティ。
パラメーター | |
---|---|
sshKey | File : ssh キーERROR(/File) 。 |
extraOptions | ERROR(/String) のリスト。 null にすることができます。 |
user | String |
hostName | String : gce デバイスに接続するホスト名。 |
remoteFile | String : リモート gce デバイスでフェッチされるファイル。 |
localFile | String : リモート ファイルを配置するローカル ファイル。 |
mode | GceRemoteCmdFormatter.ScpMode : ローカル ファイルをリモートにプッシュするか、リモートをプルするか |
戻り値 | |
---|---|
gce デバイスの scp コマンドを表すリスト。 |
getSshコマンド
public staticgetSshCommand (File sshKey, extraOptions, String user, String hostName, String... command)
いくつかのパラメータに基づいて gce デバイス用の ssh コマンドを作成するユーティリティ。
パラメーター | |
---|---|
sshKey | File : ssh キーERROR(/File) 。 |
extraOptions | ERROR(/String) のリスト。 null にすることができます。 |
user | String |
hostName | String : gce デバイスに接続するホスト名。 |
command | String : gce デバイスで実行する実際のコマンド。 |
戻り値 | |
---|---|
gce デバイスの ssh コマンドを表すリスト。 |