ClusterHostEvent.Builder

public static class ClusterHostEvent.Builder
extends Object

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


Summary

Public constructors

Builder()

Public methods

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)

Public constructors

Builder

public Builder ()

Public methods

addDeviceInfo

public ClusterHostEvent.Builder addDeviceInfo (ClusterDeviceInfo deviceInfo)

Parameters
deviceInfo ClusterDeviceInfo

Returns
ClusterHostEvent.Builder

addDeviceInfos

public ClusterHostEvent.Builder addDeviceInfos ( deviceInfos)

Parameters
deviceInfos

Returns
ClusterHostEvent.Builder

build

public ClusterHostEvent build ()

Returns
ClusterHostEvent

setClusterId

public ClusterHostEvent.Builder setClusterId (String clusterId)

Parameters
clusterId String

Returns
ClusterHostEvent.Builder

setData

public ClusterHostEvent.Builder setData ( data)

Parameters
data

Returns
ClusterHostEvent.Builder

setData

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

Parameters
name String

value String

Returns
ClusterHostEvent.Builder

setHostEventType

public ClusterHostEvent.Builder setHostEventType (ClusterHostEvent.HostEventType type)

Parameters
type ClusterHostEvent.HostEventType

Returns
ClusterHostEvent.Builder

setHostState

public ClusterHostEvent.Builder setHostState (CommandScheduler.HostState state)

Parameters
state CommandScheduler.HostState

Returns
ClusterHostEvent.Builder

setLabName

public ClusterHostEvent.Builder setLabName (String labName)

Parameters
labName String

Returns
ClusterHostEvent.Builder

setNextClusterIds

public ClusterHostEvent.Builder setNextClusterIds ( nexClusterIds)

Parameters
nexClusterIds

Returns
ClusterHostEvent.Builder

setTimestamp

public ClusterHostEvent.Builder setTimestamp (long timestamp)

Parameters
timestamp long

Returns
ClusterHostEvent.Builder