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()
शर्ड का इंडेक्स दिखाता है. |
|
getTargetDeviceSerials()
टारगेट किए गए डिवाइस के सीरियल की सूची दिखाता है. |
String
|
getTaskId()
टास्क का आईडी दिखाता है. |
void
|
setTargetDeviceSerials(
टारगेट किए गए डिवाइस के सीरियल की सूची सेट करता है, ताकि कमांड उन पर चल सके. |
पब्लिक कंस्ट्रक्टर
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
publicgetTargetDeviceSerials ()
टारगेट किए गए डिवाइस के सीरियल की सूची दिखाता है.
रिटर्न | |
---|---|
|
टारगेट डिवाइस के सीरियल की सूची |
getTaskId
public String getTaskId ()
टास्क का आईडी दिखाता है.
रिटर्न | |
---|---|
String |
टास्क आईडी. |
setTargetDeviceSerials
public void setTargetDeviceSerials (targetDeviceSerials)
टारगेट किए गए डिवाइस के सीरियल की सूची सेट करता है, ताकि कमांड उन पर चल सके.
पैरामीटर | |
---|---|
targetDeviceSerials |
: सेट किए जाने वाले डिवाइस के सीरियल की सूची |