ClusterCommandEvent.Builder

public static class ClusterCommandEvent.Builder
extends Object

java.lang.Object
   ↳ com.android.tradefed.cluster.ClusterCommandEvent.Builder


摘要

公用建構函式

Builder()

公用方法

ClusterCommandEvent.Builder addDeviceSerial(String deviceSerial)
ClusterCommandEvent build()
ClusterCommandEvent.Builder setAttemptId(String attemptId)
ClusterCommandEvent.Builder setCommandTaskId(String commandTaskId)
ClusterCommandEvent.Builder setData(String name, Object value)
ClusterCommandEvent.Builder setDeviceSerials( deviceSerials)
ClusterCommandEvent.Builder setHostName(String hostName)
ClusterCommandEvent.Builder setInvocationStatus(InvocationStatus invocationStatus)
ClusterCommandEvent.Builder setTimestamp(long timestamp)
ClusterCommandEvent.Builder setType(ClusterCommandEvent.Type type)

公用建構函式

Builder

public Builder ()

公用方法

addDeviceSerial

public ClusterCommandEvent.Builder addDeviceSerial (String deviceSerial)

參數
deviceSerial String

傳回
ClusterCommandEvent.Builder

build

public ClusterCommandEvent build ()

傳回
ClusterCommandEvent

設定嘗試 ID

public ClusterCommandEvent.Builder setAttemptId (String attemptId)

參數
attemptId String

傳回
ClusterCommandEvent.Builder

setCommandTaskId

public ClusterCommandEvent.Builder setCommandTaskId (String commandTaskId)

參數
commandTaskId String

傳回
ClusterCommandEvent.Builder

setData

public ClusterCommandEvent.Builder setData (String name, 
                Object value)

參數
name String

value Object

傳回
ClusterCommandEvent.Builder

setDeviceSerials

public ClusterCommandEvent.Builder setDeviceSerials ( deviceSerials)

參數
deviceSerials

傳回
ClusterCommandEvent.Builder

setHostName

public ClusterCommandEvent.Builder setHostName (String hostName)

參數
hostName String

傳回
ClusterCommandEvent.Builder

setInvocationStatus

public ClusterCommandEvent.Builder setInvocationStatus (InvocationStatus invocationStatus)

參數
invocationStatus InvocationStatus

傳回
ClusterCommandEvent.Builder

設定時間戳記

public ClusterCommandEvent.Builder setTimestamp (long timestamp)

參數
timestamp long

傳回
ClusterCommandEvent.Builder

setType

public ClusterCommandEvent.Builder setType (ClusterCommandEvent.Type type)

參數
type ClusterCommandEvent.Type

傳回
ClusterCommandEvent.Builder