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

setLabName

public ClusterHostEvent.Builder setLabName (String labName)

參數
labName String

傳回
ClusterHostEvent.Builder

setNextClusterId

public ClusterHostEvent.Builder setNextClusterIds ( nexClusterIds)

參數
nexClusterIds

傳回
ClusterHostEvent.Builder

設定時間戳記

public ClusterHostEvent.Builder setTimestamp (long timestamp)

參數
timestamp long

傳回
ClusterHostEvent.Builder