IClusterClient
public interface IClusterClient
com.android.tradefed.cluster.IClusterClient |
الفئات الفرعية غير المباشرة المعروفة |
واجهة للتفاعل مع الواجهة الخلفية TFC.
ملخص
الثوابت |
---|
String | TYPE_NAME اسم نوع كائن التكوين الفريد. |
الأساليب العامة |
---|
abstract IClusterEventUploader < ClusterCommandEvent > | getCommandEventUploader () احصل على IClusterEventUploader الذي يمكن استخدامه لتحميل ClusterCommandEvent s. |
abstract ClusterCommand.State | getCommandState (String requestId, String commandId) تحديد حالة أمر الكتلة. |
default ClusterCommandStatus | getCommandStatus (String requestId, String commandId) احصل على حالة الأمر لأمر الكتلة (الحالة وسبب الإلغاء إذا تم الإلغاء). |
abstract IClusterEventUploader < ClusterHostEvent > | getHostEventUploader () احصل على IClusterEventUploader الذي يمكن استخدامه لتحميل ClusterHostEvent s. |
abstract TestContext | getTestContext (String requestId, String commandId) |
abstract TestEnvironment | getTestEnvironment (String requestId) احصل على TestEnvironment لطلب. |
abstract | getTestResources (String requestId) احصل على TestResource للحصول على طلب. |
abstract | leaseHostCommands (String clusterId, String hostname, devices, nextClusterIds, int maxTasksTolease) leaseHostCommands (String clusterId, String hostname, devices, nextClusterIds, int maxTasksTolease) leaseHostCommands (String clusterId, String hostname, devices, nextClusterIds, int maxTasksTolease) عقد ClusterCommand لمضيف العطاء. |
abstract void | updateTestContext (String requestId, String commandId, TestContext testContext) |
الثوابت
أكتب اسم
public static final String TYPE_NAME
اسم نوع كائن التكوين الفريد. يُستخدم لاسترداد النسخة المفردة من GlobalConfiguration
.
قيمة ثابتة: "cluster_client"
الأساليب العامة
getCommandState
public abstract ClusterCommand.State getCommandState (String requestId,
String commandId)
تحديد حالة أمر الكتلة.
حدود |
---|
requestId | String : معرف طلب الكتلة |
commandId | String : معرف أمر الكتلة |
getCommandStatus
public ClusterCommandStatus getCommandStatus (String requestId,
String commandId)
احصل على حالة الأمر لأمر الكتلة (الحالة وسبب الإلغاء إذا تم الإلغاء).
حدود |
---|
requestId | String : معرف طلب الكتلة |
commandId | String : معرف أمر الكتلة |
getTestContext
public abstract TestContext getTestContext (String requestId,
String commandId)
حدود |
---|
requestId | String |
commandId | String |
getTest البيئة
public abstract TestEnvironment getTestEnvironment (String requestId)
احصل على TestEnvironment
لطلب.
رميات |
---|
| IOException |
| org.json.JSONException |
JSONException | |
getTestResources
public abstract getTestResources (String requestId)
احصل على TestResource
للحصول على طلب.
رميات |
---|
| IOException |
| org.json.JSONException |
JSONException | |
أوامر الإيجار
public abstract leaseHostCommands (String clusterId,
String hostname,
devices,
nextClusterIds,
int maxTasksTolease)
عقد ClusterCommand
لمضيف العطاء.
حدود |
---|
clusterId | String : معرف الكتلة للمضيف |
hostname | String : اسم المضيف |
devices | : deviceInfos يمتلكها المضيف |
nextClusterIds | : قائمة معرفات المجموعة التالية لاستئجار الأوامر منها. |
maxTasksTolease | int : الحد الأقصى لعدد المهام التي يمكن تأجيرها حاليًا |
رميات |
---|
| org.json.JSONException |
JSONException | |
updateTestContext
public abstract void updateTestContext (String requestId,
String commandId,
TestContext testContext)
حدود |
---|
requestId | String |
commandId | String |
testContext | TestContext |