रिमोटSshUtil

public class RemoteSshUtil
extends Object

java.lang.ऑब्जेक्ट
com.android.tradefed.device.cloud.RemoteSshUtil


दूरस्थ उदाहरणों पर ssh कमांड निष्पादित करने की उपयोगिता।

सारांश

सार्वजनिक निर्माणकर्ता

RemoteSshUtil ()

सार्वजनिक तरीके

static CommandResult remoteSshCommandExec ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeoutMs, OutputStream stdout, OutputStream stderr, String... command)

ssh का उपयोग करके दूरस्थ इंस्टेंस पर एक कमांड निष्पादित करें।

static CommandResult remoteSshCommandExec ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeoutMs, String... command)

ssh का उपयोग करके दूरस्थ इंस्टेंस पर एक कमांड निष्पादित करें।

सार्वजनिक निर्माणकर्ता

रिमोटSshUtil

public RemoteSshUtil ()

सार्वजनिक तरीके

रिमोटSshCommandExec

public static CommandResult remoteSshCommandExec (GceAvdInfo remoteInstance, 
                TestDeviceOptions options, 
                IRunUtil runUtil, 
                long timeoutMs, 
                OutputStream stdout, 
                OutputStream stderr, 
                String... command)

ssh का उपयोग करके दूरस्थ इंस्टेंस पर एक कमांड निष्पादित करें।

पैरामीटर
remoteInstance GceAvdInfo : GceAvdInfo जो डिवाइस का वर्णन करता है।

options TestDeviceOptions : GCE डिवाइस के लिए उपयोग किए जाने वाले डिवाइस विकल्पों का वर्णन करने वाला एक TestDeviceOptions

runUtil IRunUtil : कमांड निष्पादित करने के लिए एक IRunUtil

timeoutMs long : फ़ेच पूरा करने के लिए मिलीसेकंड में

stdout OutputStream : एक ERROR(/OutputStream) जहां स्टडआउट लॉग किया जाएगा।

stderr OutputStream : एक ERROR(/OutputStream) जहां stderr लॉग किया जाएगा।

command String : निष्पादित किया जाने वाला आदेश.

रिटर्न
CommandResult एक CommandResult जिसमें स्थिति और लॉग शामिल हैं।

रिमोटSshCommandExec

public static CommandResult remoteSshCommandExec (GceAvdInfo remoteInstance, 
                TestDeviceOptions options, 
                IRunUtil runUtil, 
                long timeoutMs, 
                String... command)

ssh का उपयोग करके दूरस्थ इंस्टेंस पर एक कमांड निष्पादित करें।

पैरामीटर
remoteInstance GceAvdInfo : GceAvdInfo जो डिवाइस का वर्णन करता है।

options TestDeviceOptions : GCE डिवाइस के लिए उपयोग किए जाने वाले डिवाइस विकल्पों का वर्णन करने वाला एक TestDeviceOptions

runUtil IRunUtil : कमांड निष्पादित करने के लिए एक IRunUtil

timeoutMs long : फ़ेच पूरा करने के लिए मिलीसेकंड में

command String : निष्पादित किया जाने वाला आदेश.

रिटर्न
CommandResult एक CommandResult जिसमें स्थिति और लॉग शामिल हैं।