GceRemoteCmdFormatter

public class GceRemoteCmdFormatter
extends Object

java.lang.オブジェクト
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 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 : ローカル ファイルをリモートにプッシュするか、リモート ファイルをプルするか

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

getSshコマンド

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 コマンドを表すリスト。