Google is committed to advancing racial equity for Black communities. See how.

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(String name, String value)
ClusterHostEvent.Builder setData( data)
ClusterHostEvent.Builder setHostEventType(ClusterHostEvent.HostEventType type)
ClusterHostEvent.Builder setHostName(String hostname)
ClusterHostEvent.Builder setHostState(CommandScheduler.HostState state)
ClusterHostEvent.Builder setLabName(String labName)
ClusterHostEvent.Builder setNextClusterIds( nexClusterIds)
ClusterHostEvent.Builder setTfVersion(String tfVersion)
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 (String name, 
                String value)

Parameters
name String

value String

Returns
ClusterHostEvent.Builder

setData

public ClusterHostEvent.Builder setData ( data)

Parameters
data

Returns
ClusterHostEvent.Builder

setHostEventType

public ClusterHostEvent.Builder setHostEventType (ClusterHostEvent.HostEventType type)

Parameters
type ClusterHostEvent.HostEventType

Returns
ClusterHostEvent.Builder

setHostName

public ClusterHostEvent.Builder setHostName (String hostname)

Parameters
hostname String

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

setTfVersion

public ClusterHostEvent.Builder setTfVersion (String tfVersion)

Parameters
tfVersion String

Returns
ClusterHostEvent.Builder

setTimestamp

public ClusterHostEvent.Builder setTimestamp (long timestamp)

Parameters
timestamp long

Returns
ClusterHostEvent.Builder