UzakSshUtil
public class RemoteSshUtil
extends Object
java.lang.Object | |
↳ | com.android.tradefed.device.cloud.RemoteSshUtil |
Uzak örneklerde ssh komutlarını yürütmek için yardımcı program.
Özet
kamu inşaatçılar | |
---|---|
RemoteSshUtil () |
Genel yöntemler | |
---|---|
static CommandResult | remoteSshCommandExec ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeoutMs, OutputStream stdout, OutputStream stderr, String... command) Uzak örnekte ssh kullanarak bir komut yürütün. |
static CommandResult | remoteSshCommandExec ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeoutMs, String... command) Uzak örnekte ssh kullanarak bir komut yürütün. |
kamu inşaatçılar
UzakSshUtil
public RemoteSshUtil ()
Genel yöntemler
uzakSshCommandExec
public static CommandResult remoteSshCommandExec (GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeoutMs, OutputStream stdout, OutputStream stderr, String... command)
Uzak örnekte ssh kullanarak bir komut yürütün.
parametreler | |
---|---|
remoteInstance | GceAvdInfo : Cihazı tanımlayan GceAvdInfo . |
options | TestDeviceOptions : GCE cihazı için kullanılacak cihaz seçeneklerini açıklayan bir TestDeviceOptions . |
runUtil | IRunUtil : komutları yürütmek için bir IRunUtil . |
timeoutMs | long : getirmenin tamamlanması için milisaniye cinsinden |
stdout | OutputStream : stdout'un günlüğe kaydedileceği bir ERROR(/OutputStream) . |
stderr | OutputStream : stderr'in günlüğe kaydedileceği bir ERROR(/OutputStream) . |
command | String : Yürütülecek komut. |
İadeler | |
---|---|
CommandResult | Durumu ve günlükleri içeren bir CommandResult . |
uzakSshCommandExec
public static CommandResult remoteSshCommandExec (GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeoutMs, String... command)
Uzak örnekte ssh kullanarak bir komut yürütün.
parametreler | |
---|---|
remoteInstance | GceAvdInfo : Cihazı tanımlayan GceAvdInfo . |
options | TestDeviceOptions : GCE cihazı için kullanılacak cihaz seçeneklerini açıklayan bir TestDeviceOptions . |
runUtil | IRunUtil : komutları yürütmek için bir IRunUtil . |
timeoutMs | long : getirmenin tamamlanması için milisaniye cinsinden |
command | String : Yürütülecek komut. |
İadeler | |
---|---|
CommandResult | Durumu ve günlükleri içeren bir CommandResult . |