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)
ClusterHostEvent build()
ClusterHostEvent.Builder setClusterId(String clusterId)
ClusterHostEvent.Builder 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)
ClusterHostEvent.Builder setTimestamp(long timestamp)

公共构造函数

Builder

public Builder ()

公共方法

addDeviceInfo

public ClusterHostEvent.Builder addDeviceInfo (ClusterDeviceInfo deviceInfo)

参数
deviceInfo ClusterDeviceInfo

返回
ClusterHostEvent.Builder

addDeviceInfo

public ClusterHostEvent.Builder addDeviceInfos ( deviceInfos)

参数
deviceInfos

返回
ClusterHostEvent.Builder

build

public ClusterHostEvent build ()

返回
ClusterHostEvent

setClusterId

public ClusterHostEvent.Builder setClusterId (String clusterId)

参数
clusterId String

返回
ClusterHostEvent.Builder

setData

public ClusterHostEvent.Builder setData ( data)

参数
data

返回
ClusterHostEvent.Builder

setData

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

参数
name String

value String

返回
ClusterHostEvent.Builder

setHostEventType

public ClusterHostEvent.Builder setHostEventType (ClusterHostEvent.HostEventType type)

参数
type ClusterHostEvent.HostEventType

返回
ClusterHostEvent.Builder

setHostState

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

setTimestamp

public ClusterHostEvent.Builder setTimestamp (long timestamp)

参数
timestamp long

返回
ClusterHostEvent.Builder