khách hàng ICluster
public interface IClusterClient
com.android.tradefed.cluster.IClusterClient |
Các lớp con gián tiếp đã biết |
Một giao diện để tương tác với phần phụ trợ TFC.
Bản tóm tắt
hằng số |
---|
String | TYPE_NAME Tên loại đối tượng cấu hình duy nhất. |
Phương thức công khai |
---|
abstract IClusterEventUploader < ClusterCommandEvent > | getCommandEventUploader () Nhận IClusterEventUploader có thể được sử dụng để tải lên ClusterCommandEvent s. |
abstract ClusterCommand.State | getCommandState (String requestId, String commandId) Xác định trạng thái của một cụm lệnh. |
default ClusterCommandStatus | getCommandStatus (String requestId, String commandId) Nhận trạng thái lệnh của cụm lệnh (trạng thái và lý do hủy nếu hủy). |
abstract IClusterEventUploader < ClusterHostEvent > | getHostEventUploader () Nhận IClusterEventUploader có thể được sử dụng để tải lên ClusterHostEvent s. |
abstract TestContext | getTestContext (String requestId, String commandId) |
abstract TestEnvironment | getTestEnvironment (String requestId) Nhận TestEnvironment cho một yêu cầu. |
abstract | getTestResources (String requestId) Nhận TestResource s cho một yêu cầu. |
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) Cho thuê ClusterCommand cho máy chủ cung cấp. |
abstract void | updateTestContext (String requestId, String commandId, TestContext testContext) |
hằng số
TÊN LOẠI
public static final String TYPE_NAME
Tên loại đối tượng cấu hình duy nhất. Được sử dụng để truy xuất cá thể đơn lẻ từ GlobalConfiguration
.
Giá trị không đổi: "cluster_client"
Phương thức công khai
getCommandState
public abstract ClusterCommand.State getCommandState (String requestId,
String commandId)
Xác định trạng thái của một cụm lệnh.
Thông số |
---|
requestId | String : ID yêu cầu cụm |
commandId | String : ID lệnh cụm |
getCommandStatus
public ClusterCommandStatus getCommandStatus (String requestId,
String commandId)
Nhận trạng thái lệnh của cụm lệnh (trạng thái và lý do hủy nếu hủy).
Thông số |
---|
requestId | String : ID yêu cầu cụm |
commandId | String : ID lệnh cụm |
getTestContext
public abstract TestContext getTestContext (String requestId,
String commandId)
Thông số |
---|
requestId | String |
commandId | String |
getTestMôi trường
public abstract TestEnvironment getTestEnvironment (String requestId)
Nhận TestEnvironment
cho một yêu cầu.
ném |
---|
| IOException |
| org.json.JSONException |
JSONException | |
getTestResources
public abstract getTestResources (String requestId)
Nhận TestResource
s cho một yêu cầu.
ném |
---|
| IOException |
| org.json.JSONException |
JSONException | |
thuê máy chủLệnh
public abstract leaseHostCommands (String clusterId,
String hostname,
devices,
nextClusterIds,
int maxTasksTolease)
Cho thuê ClusterCommand
cho máy chủ cung cấp.
Thông số |
---|
clusterId | String : id cụm cho máy chủ |
hostname | String : tên máy chủ |
devices | : deviceInfos máy chủ có |
nextClusterIds | : danh sách các ID cụm tiếp theo để thuê các lệnh từ đó. |
maxTasksTolease | int : số lượng nhiệm vụ tối đa hiện tại có thể được thuê |
ném |
---|
| org.json.JSONException |
JSONException | |
cập nhậtTestContext
public abstract void updateTestContext (String requestId,
String commandId,
TestContext testContext)
Thông số |
---|
requestId | String |
commandId | String |
testContext | TestContext |