Google 致力于为黑人社区推动种族平等。查看具体举措

ClusterHostEvent.Builder

public static class ClusterHostEvent.Builder
extends 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

setNextClusterIds

public ClusterHostEvent.Builder setNextClusterIds ( nexClusterIds)

参数
nexClusterIds

退货
ClusterHostEvent.Builder

设置时间戳

public ClusterHostEvent.Builder setTimestamp (long timestamp)

参数
timestamp long

退货
ClusterHostEvent.Builder