ClusterHostEvent.Builder

public static class ClusterHostEvent.Builder
extends Object

java.lang.Object
com.android.tradefed.cluster.ClusterHostEvent.Builder


概括

公共構造函數

Builder ()

公共方法

ClusterHostEvent.Builder addDeviceInfo ( ClusterDeviceInfo deviceInfo)
ClusterHostEvent.Builder addDeviceInfos ( deviceInfos) addDeviceInfos ( deviceInfos)
ClusterHostEvent build ()
ClusterHostEvent.Builder setClusterId (String clusterId)
ClusterHostEvent.Builder setData ( data) setData ( data)
ClusterHostEvent.Builder setData (String name, String value)
ClusterHostEvent.Builder setHostEventType ( ClusterHostEvent.HostEventType type)
ClusterHostEvent.Builder setHostState ( CommandScheduler.HostState state)
ClusterHostEvent.Builder setLabName (String labName)
ClusterHostEvent.Builder setNextClusterIds ( nexClusterIds) setNextClusterIds ( nexClusterIds)
ClusterHostEvent.Builder setTimestamp (long timestamp)

公共構造函數

建設者

public Builder ()

公共方法

新增設備資訊

public ClusterHostEvent.Builder addDeviceInfo (ClusterDeviceInfo deviceInfo)

參數
deviceInfo ClusterDeviceInfo

退貨
ClusterHostEvent.Builder

新增設備資訊

public ClusterHostEvent.Builder addDeviceInfos ( deviceInfos)

參數
deviceInfos

退貨
ClusterHostEvent.Builder

建造

public ClusterHostEvent build ()

退貨
ClusterHostEvent

設定集群ID

public ClusterHostEvent.Builder setClusterId (String clusterId)

參數
clusterId String

退貨
ClusterHostEvent.Builder

設定數據

public ClusterHostEvent.Builder setData ( data)

參數
data

退貨
ClusterHostEvent.Builder

設定數據

public ClusterHostEvent.Builder setData (String name, 
                String value)

參數
name String

value String

退貨
ClusterHostEvent.Builder

設定主機事件類型

public ClusterHostEvent.Builder setHostEventType (ClusterHostEvent.HostEventType type)

參數
type ClusterHostEvent.HostEventType

退貨
ClusterHostEvent.Builder

設定主機狀態

public ClusterHostEvent.Builder setHostState (CommandScheduler.HostState state)

參數
state CommandScheduler.HostState

退貨
ClusterHostEvent.Builder

設定實驗室名稱

public ClusterHostEvent.Builder setLabName (String labName)

參數
labName String

退貨
ClusterHostEvent.Builder

設定下一個集群 ID

public ClusterHostEvent.Builder setNextClusterIds ( nexClusterIds)

參數
nexClusterIds

退貨
ClusterHostEvent.Builder

設定時間戳

public ClusterHostEvent.Builder setTimestamp (long timestamp)

參數
timestamp long

退貨
ClusterHostEvent.Builder