RemoteSshUtil

public class RemoteSshUtil
extends Object

java.lang.Object
   ↳ com.android.tradefed.device.cloud.RemoteSshUtil


रिमोट इंस्टेंस पर एसएसएच कमांड चलाने के लिए उपयोगी टूल.

खास जानकारी

पब्लिक कंस्ट्रक्टर

RemoteSshUtil()

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

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

एसएसएच का इस्तेमाल करके, रिमोट इंस्टेंस पर कोई कमांड चलाएं.

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

एसएसएच का इस्तेमाल करके, रिमोट इंस्टेंस पर कोई कमांड चलाएं.

पब्लिक कंस्ट्रक्टर

RemoteSshUtil

public RemoteSshUtil ()

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

remoteSshCommandExec

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

एसएसएच का इस्तेमाल करके, रिमोट इंस्टेंस पर कोई कमांड चलाएं.

पैरामीटर
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.

remoteSshCommandExec

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

एसएसएच का इस्तेमाल करके, रिमोट इंस्टेंस पर कोई कमांड चलाएं.

पैरामीटर
remoteInstance GceAvdInfo: डिवाइस की जानकारी देने वाला GceAvdInfo.

options TestDeviceOptions: GCE डिवाइस के लिए इस्तेमाल किए जाने वाले डिवाइस के विकल्पों के बारे में बताने वाला TestDeviceOptions.

runUtil IRunUtil: निर्देशों को लागू करने के लिए IRunUtil.

timeoutMs long: फ़ेच करने में लगने वाला समय मिलीसेकंड में

command String: वह निर्देश जिसे लागू करना है.

रिटर्न
CommandResult स्टेटस और लॉग वाला CommandResult.