ClusterCommand

public class ClusterCommand
extends Object

java.lang.Object
   ↳ com.android.tradefed.cluster.ClusterCommand


यह क्लास, TF क्लस्टर से फ़ेच किए गए टास्क को दिखाती है.

खास जानकारी

सार्वजनिक कंस्ट्रक्टर

ClusterCommand(String commandId, String taskId, String cmdLine)
ClusterCommand(String requestId, String commandId, String taskId, String cmdLine, String attemptId, ClusterCommand.RequestType requestType, Integer shardCount, Integer shardIndex)

कंस्ट्रक्टर.

पब्लिक मेथड

static ClusterCommand fromJson(JSONObject json)
String getAttemptId()

यह फ़ंक्शन, कोशिश का आईडी दिखाता है.

String getCommandId()

यह कमांड आईडी दिखाता है.

String getCommandLine()

कमांड लाइन स्ट्रिंग दिखाता है.

UniqueMultiMap<String, String> getExtraOptions()
String getRequestId()

अनुरोध आईडी दिखाता है.

ClusterCommand.RequestType getRequestType()

अनुरोध का टाइप दिखाता है

Integer getShardCount()

शार्ड की संख्या दिखाता है.

Integer getShardIndex()

यह फ़ंक्शन, शार्ड इंडेक्स दिखाता है.

List<String> getTargetDeviceSerials()

इससे उन टारगेट डिवाइसों के सीरियल नंबर की सूची मिलती है जिन पर यह कमांड चलाने की कोशिश की जाएगी.

String getTaskId()

यह टास्क का आईडी दिखाता है.

void setTargetDeviceSerials(List<String> targetDeviceSerials)

यह नीति, टारगेट डिवाइसों के सीरियल नंबर की सूची सेट करती है. इस सूची में शामिल डिवाइसों पर कमांड चलाने की कोशिश की जाएगी.

सार्वजनिक कंस्ट्रक्टर

ClusterCommand

public ClusterCommand (String commandId, 
                String taskId, 
                String cmdLine)

पैरामीटर
commandId String

taskId String

cmdLine String

ClusterCommand

public ClusterCommand (String requestId, 
                String commandId, 
                String taskId, 
                String cmdLine, 
                String attemptId, 
                ClusterCommand.RequestType requestType, 
                Integer shardCount, 
                Integer shardIndex)

कंस्ट्रक्टर.

पैरामीटर
requestId String: अनुरोध आईडी

commandId String: इस टास्क को जारी करने वाली कमांड का आईडी

taskId String: इस टास्क का आईडी

cmdLine String: चलाने के लिए कमांड लाइन

attemptId String

requestType ClusterCommand.RequestType: अनुरोध का टाइप

shardCount Integer: शार्ड की संख्या

shardIndex Integer: शार्ड इंडेक्स

पब्लिक मेथड

fromJson

public static ClusterCommand fromJson (JSONObject json)

पैरामीटर
json JSONObject

रिटर्न
ClusterCommand

थ्रो
JSONException

getAttemptId

public String getAttemptId ()

यह फ़ंक्शन, कोशिश का आईडी दिखाता है. यह एक रैंडम तरीके से जनरेट किया गया GUID होता है. इसका इस्तेमाल, कमांड को कई बार चलाने के बीच अंतर करने के लिए किया जाता है.

रिटर्न
String कोशिश का आईडी

getCommandId

public String getCommandId ()

यह कमांड आईडी दिखाता है.

रिटर्न
String कमांड आईडी

getCommandLine

public String getCommandLine ()

कमांड लाइन स्ट्रिंग दिखाता है.

रिटर्न
String कमांड लाइन स्ट्रिंग.

getExtraOptions

public UniqueMultiMap<String, String> getExtraOptions ()

रिटर्न
UniqueMultiMap<String, String> इंजेक्ट किए जाने वाले अन्य विकल्पों का मल्टीमैप

getRequestId

public String getRequestId ()

अनुरोध आईडी दिखाता है.

रिटर्न
String अनुरोध का आईडी

getRequestType

public ClusterCommand.RequestType getRequestType ()

अनुरोध का टाइप दिखाता है

रिटर्न
ClusterCommand.RequestType अनुरोध का टाइप

getShardCount

public Integer getShardCount ()

शार्ड की संख्या दिखाता है.

रिटर्न
Integer शार्ड की संख्या.

getShardIndex

public Integer getShardIndex ()

यह फ़ंक्शन, शार्ड इंडेक्स दिखाता है.

रिटर्न
Integer शार्ड इंडेक्स.

getTargetDeviceSerials

public List<String> getTargetDeviceSerials ()

इससे उन टारगेट डिवाइसों के सीरियल नंबर की सूची मिलती है जिन पर यह कमांड चलाने की कोशिश की जाएगी.

रिटर्न
List<String> टारगेट डिवाइस के सीरियल नंबर की सूची

getTaskId

public String getTaskId ()

यह टास्क का आईडी दिखाता है.

रिटर्न
String टास्क आईडी.

setTargetDeviceSerials

public void setTargetDeviceSerials (List<String> targetDeviceSerials)

यह नीति, टारगेट डिवाइसों के सीरियल नंबर की सूची सेट करती है. इस सूची में शामिल डिवाइसों पर कमांड चलाने की कोशिश की जाएगी.

पैरामीटर
targetDeviceSerials List: सेट किए जाने वाले डिवाइस के सीरियल नंबर की सूची