ClusterCommand
  public
  
  
  
  class
  ClusterCommand
  
    extends Object
  
  
  
  
  
  
| java.lang.Object | |
| ↳ | com.android.tradefed.cluster.ClusterCommand | 
TF kümesinden getirilen bir görevi temsil eden sınıf.
Özet
| Herkese açık kurucular | |
|---|---|
| 
      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)
      Oluşturucu. | |
| Herkese açık yöntemler | |
|---|---|
| 
        
        
        static
        
        
        ClusterCommand | 
      fromJson(JSONObject json)
       | 
| 
        
        
        
        
        
        String | 
      getAttemptId()
      Deneme kimliğini döndürür. | 
| 
        
        
        
        
        
        String | 
      getCommandId()
      Komut kimliğini döndürür. | 
| 
        
        
        
        
        
        String | 
      getCommandLine()
      Komut satırı dizesini döndürür. | 
| 
        
        
        
        
        
        UniqueMultiMap<String, String> | 
      getExtraOptions()
       | 
| 
        
        
        
        
        
        String | 
      getRequestId()
      İstek kimliğini döndürür. | 
| 
        
        
        
        
        
        ClusterCommand.RequestType | 
      getRequestType()
      Bir istek türü döndürür | 
| 
        
        
        
        
        
        Integer | 
      getShardCount()
      Bir parça sayısı döndürür. | 
| 
        
        
        
        
        
        Integer | 
      getShardIndex()
      Bir parça dizini döndürür. | 
| 
        
        
        
        
        
         | 
      getTargetDeviceSerials()
      Bu komutun çalıştırılmaya çalışacağı hedef cihaz seri numaralarının listesini döndürür. | 
| 
        
        
        
        
        
        String | 
      getTaskId()
      Görev kimliğini döndürür. | 
| 
        
        
        
        
        
        void | 
      setTargetDeviceSerials(Komutun çalıştırılmaya çalışacağı hedef cihaz seri numaralarının listesini ayarlar. | 
Herkese açık kurucular
ClusterCommand
public ClusterCommand (String commandId, 
                String taskId, 
                String cmdLine)| Parametreler | |
|---|---|
| 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)Oluşturucu.
| Parametreler | |
|---|---|
| requestId | String: İstek kimliği | 
| commandId | String: Bu görevi veren komutun kimliği | 
| taskId | String: Bu görevin kimliği | 
| cmdLine | String: Çalıştırılacak komut satırı | 
| attemptId | String | 
| requestType | ClusterCommand.RequestType: İstek türü | 
| shardCount | Integer: Parça sayısı | 
| shardIndex | Integer: Bir bölüm dizini | 
Herkese açık yöntemler
fromJson
public static ClusterCommand fromJson (JSONObject json)
| Parametreler | |
|---|---|
| json | JSONObject | 
| İlerlemeler | |
|---|---|
| ClusterCommand | |
| Atışlar | |
|---|---|
| JSONException | |
getAttemptId
public String getAttemptId ()
Deneme kimliğini döndürür. Deneme, birden fazla komut çalıştırmasını ayırt etmek için rastgele oluşturulan GUID'dir.
| İlerlemeler | |
|---|---|
| String | deneme kimliği | 
getCommandId
public String getCommandId ()
Komut kimliğini döndürür.
| İlerlemeler | |
|---|---|
| String | komut kimliği | 
getCommandLine
public String getCommandLine ()
Komut satırı dizesini döndürür.
| İlerlemeler | |
|---|---|
| String | komut satırı dizesi. | 
getExtraOptions
public UniqueMultiMap<String, String> getExtraOptions ()
| İlerlemeler | |
|---|---|
| UniqueMultiMap<String, String> | Eklenecek ek seçeneklerin çok haritası | 
getRequestId
public String getRequestId ()
İstek kimliğini döndürür.
| İlerlemeler | |
|---|---|
| String | istek kimliği | 
getRequestType
public ClusterCommand.RequestType getRequestType ()
Bir istek türü döndürür
| İlerlemeler | |
|---|---|
| ClusterCommand.RequestType | istek türü | 
getShardCount
public Integer getShardCount ()
Bir parça sayısı döndürür.
| İlerlemeler | |
|---|---|
| Integer | bir parça sayısı. | 
getShardIndex
public Integer getShardIndex ()
Bir parça dizini döndürür.
| İlerlemeler | |
|---|---|
| Integer | bir parça dizini. | 
getTargetDeviceSerials
publicgetTargetDeviceSerials () 
Bu komutun çalıştırılmaya çalışacağı hedef cihaz seri numaralarının listesini döndürür.
| İlerlemeler | |
|---|---|
|  | Hedef cihaz serilerinin listesi | 
getTaskId
public String getTaskId ()
Görev kimliğini döndürür.
| İlerlemeler | |
|---|---|
| String | görev kimliği. | 
setTargetDeviceSerials
public void setTargetDeviceSerials (targetDeviceSerials) 
Komutun çalıştırılmaya çalışacağı hedef cihaz seri numaralarının listesini ayarlar.
| Parametreler | |
|---|---|
| targetDeviceSerials | : ayarlanacak cihaz seri numaralarının listesi | 
