GceRemoteCmdFormatter

public class GceRemoteCmdFormatter
extends Object

java.lang.Object
   ↳ com.android.tradefed.util.GceRemoteCmdFormatter


リモートの gce デバイスに到達するようにコマンドをフォーマットするユーティリティ クラス。

概要

パブリック コンストラクタ

GceRemoteCmdFormatter()

パブリック メソッド

static 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)

いくつかのパラメータに基づいて GCE デバイスの SSH コマンドを作成するユーティリティ。

パブリック コンストラクタ

GceRemoteCmdFormatter

public GceRemoteCmdFormatter ()

パブリック メソッド

getScpCommand

public static  getScpCommand (File sshKey, 
                 extraOptions, 
                String user, 
                String hostName, 
                String remoteFile, 
                String localFile, 
                GceRemoteCmdFormatter.ScpMode mode)

リモートの gce デバイスからファイルを取得する scp コマンドを作成するユーティリティ。

パラメータ
sshKey File: SSH 認証鍵 ERROR(/File)

extraOptions : 追加の ssh オプションに追加できる String のリスト。null にできます。

user String

hostName String: gce デバイスに接続するホスト名。

remoteFile String: リモート gce デバイスでフェッチするファイル。

localFile String: リモート ファイルを配置するローカル ファイル。

mode GceRemoteCmdFormatter.ScpMode: ローカル ファイルをリモートに push するか、リモートから pull するか

戻り値
gce デバイスの scp コマンドを表すリスト。

getSshCommand

public static  getSshCommand (File sshKey, 
                 extraOptions, 
                String user, 
                String hostName, 
                String... command)

いくつかのパラメータに基づいて GCE デバイスの SSH コマンドを作成するユーティリティ。

パラメータ
sshKey File: SSH 認証鍵 ERROR(/File)

extraOptions : 追加の ssh オプションに追加できる String のリスト。null にできます。

user String

hostName String: gce デバイスに接続するホスト名。

command String: gce デバイスで実行する実際のコマンド。

戻り値
gce デバイスの ssh コマンドを表すリスト。