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 |
getTestEnvironment
public abstract TestEnvironment getTestEnvironment (String requestId)
احصل على TestEnvironment
للطلب.
رميات |
---|
| IOEException |
| org.json.JSONException |
JSONException | |
getTestResources
public abstract getTestResources (String requestId)
احصل على TestResource
لطلب.
رميات |
---|
| IOEException |
| org.json.JSONException |
JSONException | |
LeaseHostCommands
public abstract leaseHostCommands (String clusterId,
String hostname,
devices,
nextClusterIds,
int maxTasksTolease)
قم بتأجير ClusterCommand
للمضيف المعطي.
حدود |
---|
clusterId | String : معرف المجموعة للمضيف |
hostname | String : اسم المضيف |
devices | : معلومات الجهاز لدى المضيف |
nextClusterIds | : قائمة بمعرفات المجموعة التالية لاستئجار الأوامر منها. |
maxTasksTolease | int : الحد الأقصى لعدد المهام التي يمكن تأجيرها حاليًا |
رميات |
---|
| org.json.JSONException |
JSONException | |
updateTestContext
public abstract void updateTestContext (String requestId,
String commandId,
TestContext testContext)
حدود |
---|
requestId | String |
commandId | String |
testContext | TestContext |