سازنده رویداد میزبان کلاستر

public static class ClusterHostEvent.Builder
extends Object

شیء جاوا
com.android.tradefed.cluster.ClusterHostEvent.Builder


خلاصه

سازندگان عمومی

Builder ()

روش‌های عمومی

ClusterHostEvent.Builder addDeviceInfo ( ClusterDeviceInfo deviceInfo)
ClusterHostEvent.Builder addDeviceInfos (List< ClusterDeviceInfo > deviceInfos)
ClusterHostEvent build ()
ClusterHostEvent.Builder setClusterId (String clusterId)
ClusterHostEvent.Builder setData (Map<String, String> 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 (List<String> nexClusterIds)
ClusterHostEvent.Builder setTimestamp (long timestamp)

سازندگان عمومی

سازنده

public Builder ()

روش‌های عمومی

اطلاعات دستگاه را اضافه کنید

public ClusterHostEvent.Builder addDeviceInfo (ClusterDeviceInfo deviceInfo)

پارامترها
deviceInfo ClusterDeviceInfo

بازگشت‌ها
ClusterHostEvent.Builder

اطلاعات دستگاه را اضافه کنید

public ClusterHostEvent.Builder addDeviceInfos (List<ClusterDeviceInfo> deviceInfos)

پارامترها
deviceInfos List

بازگشت‌ها
ClusterHostEvent.Builder

ساختن

public ClusterHostEvent build ()

بازگشت‌ها
ClusterHostEvent

تنظیم شناسه کلاستر

public ClusterHostEvent.Builder setClusterId (String clusterId)

پارامترها
clusterId String

بازگشت‌ها
ClusterHostEvent.Builder

مجموعه داده

public ClusterHostEvent.Builder setData (Map<String, String> data)

پارامترها
data Map

بازگشت‌ها
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

نام آزمایشگاه (setLabName)

public ClusterHostEvent.Builder setLabName (String labName)

پارامترها
labName String

بازگشت‌ها
ClusterHostEvent.Builder

setNextClusterIds

public ClusterHostEvent.Builder setNextClusterIds (List<String> nexClusterIds)

پارامترها
nexClusterIds List

بازگشت‌ها
ClusterHostEvent.Builder

تنظیم زمان‌بندی

public ClusterHostEvent.Builder setTimestamp (long timestamp)

پارامترها
timestamp long

بازگشت‌ها
ClusterHostEvent.Builder