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 |
設置集群ID
public ClusterHostEvent.Builder setClusterId (String clusterId)
參數 | |
---|---|
clusterId | String |
退貨 | |
---|---|
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 |