GceRemoteCmdFormatter
public class GceRemoteCmdFormatter
extends Object
java.lang.Object | |
↳ | com.android.tradefed.device.cloud.GceRemoteCmdFormatter |
Uzak bir gce cihazına ulaşmak için komutları formatlamak için yardımcı program sınıfı.
Özet
İç içe geçmiş sınıflar | |
---|---|
enum | GceRemoteCmdFormatter.ScpMode SCP, bağımsız değişkenlerin yapısına bağlı olarak dosyayı itmek veya çekmek için kullanılabilir. |
Kamu inşaatçılar | |
---|---|
GceRemoteCmdFormatter () |
Herkese açık yöntemler | |
---|---|
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) Uzak bir gce cihazından bir dosyayı almak için bir scp komutu oluşturmak için yardımcı program. |
static | getSshCommand (File sshKey, extraOptions, String user, String hostName, String... command) getSshCommand (File sshKey, extraOptions, String user, String hostName, String... command) Bazı parametrelere dayalı olarak bir gce aygıtı için bir ssh komutu oluşturma yardımcı programı. |
Kamu inşaatçılar
GceRemoteCmdFormatter
public GceRemoteCmdFormatter ()
Herkese açık yöntemler
getScpCommand
public staticgetScpCommand (File sshKey, extraOptions, String user, String hostName, String remoteFile, String localFile, GceRemoteCmdFormatter.ScpMode mode)
Uzak bir gce cihazından bir dosyayı almak için bir scp komutu oluşturma yardımcı programı.
Parametreler | |
---|---|
sshKey | File : ssh anahtarı ERROR(/File) . |
extraOptions | String Listesi. boş olabilir. |
user | String |
hostName | String : gce cihazına bağlanılacağı ana bilgisayar adı. |
remoteFile | String : uzak gce cihazına getirilecek dosya. |
localFile | String : uzak dosyanın yerleştirileceği yerel dosya. |
mode | GceRemoteCmdFormatter.ScpMode : yerel dosyayı uzaktan kumandaya mı yoksa uzaktan kumandayı mı GceRemoteCmdFormatter.ScpMode |
İadeler | |
---|---|
bir gce cihazı için scp komutunu temsil eden bir liste. |
getSshCommand
public staticgetSshCommand (File sshKey, extraOptions, String user, String hostName, String... command)
Bazı parametrelere dayalı olarak bir gce aygıtı için bir ssh komutu oluşturma yardımcı programı.
Parametreler | |
---|---|
sshKey | File : ssh anahtarı ERROR(/File) . |
extraOptions | String Listesi. boş olabilir. |
user | String |
hostName | String : gce cihazına bağlanılacağı ana bilgisayar adı. |
command | String : gce cihazında çalıştırılacak asıl komut. |
İadeler | |
---|---|
bir gce cihazı için ssh komutunu temsil eden bir liste. |
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.