IClusterClient
public interface IClusterClient
com.android.tradefed.cluster.IClusterClient |
Subclases indirectas conocidas |
Una interfaz para interactuar con el backend de TFC.
Resumen
constantes |
---|
String | TYPE_NAME El nombre de tipo de objeto de configuración único. |
Métodos públicos |
---|
abstract IClusterEventUploader < ClusterCommandEvent > | getCommandEventUploader () Obtenga un IClusterEventUploader que se puede usar para cargar ClusterCommandEvent s. |
abstract ClusterCommand.State | getCommandState (String requestId, String commandId) Determinar el estado de un comando de clúster. |
default ClusterCommandStatus | getCommandStatus (String requestId, String commandId) Obtenga el estado del comando de un comando de clúster (el estado y el motivo de cancelación si se cancela). |
abstract IClusterEventUploader < ClusterHostEvent > | getHostEventUploader () Obtenga un IClusterEventUploader que se puede usar para cargar ClusterHostEvent s. |
abstract TestContext | getTestContext (String requestId, String commandId) |
abstract TestEnvironment | getTestEnvironment (String requestId) Obtenga TestEnvironment para una solicitud. |
abstract | getTestResources (String requestId) Obtenga TestResource s para una solicitud. |
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) Arrendamiento ClusterCommand para el host dado. |
abstract void | updateTestContext (String requestId, String commandId, TestContext testContext) |
constantes
ESCRIBE UN NOMBRE
public static final String TYPE_NAME
El nombre de tipo de objeto de configuración exclusivo. Se usa para recuperar la instancia de singleton de GlobalConfiguration
.
Valor constante: "cluster_client"
Métodos públicos
getCommandState
public abstract ClusterCommand.State getCommandState (String requestId,
String commandId)
Determinar el estado de un comando de clúster.
Parámetros |
---|
requestId | String : ID de solicitud de clúster |
commandId | String : ID de comando de clúster |
getCommandStatus
public ClusterCommandStatus getCommandStatus (String requestId,
String commandId)
Obtenga el estado del comando de un comando de clúster (el estado y el motivo de cancelación si se cancela).
Parámetros |
---|
requestId | String : ID de solicitud de clúster |
commandId | String : ID de comando de clúster |
getTestContext
public abstract TestContext getTestContext (String requestId,
String commandId)
Parámetros |
---|
requestId | String |
commandId | String |
getTestEnvironment
public abstract TestEnvironment getTestEnvironment (String requestId)
Obtenga TestEnvironment
para una solicitud.
Lanza |
---|
| IOException |
| org.json.JSONExcepción |
JSONException | |
obtener recursos de prueba
public abstract getTestResources (String requestId)
Obtenga TestResource
s para una solicitud.
Lanza |
---|
| IOException |
| org.json.JSONExcepción |
JSONException | |
arrendamientoHostCommands
public abstract leaseHostCommands (String clusterId,
String hostname,
devices,
nextClusterIds,
int maxTasksTolease)
Arrendamiento ClusterCommand
para el host dado.
Parámetros |
---|
clusterId | String : ID de clúster para el host |
hostname | String : nombre de host |
devices | : deviceInfos que tiene el host |
nextClusterIds | : una lista de los siguientes ID de clúster para arrendar comandos. |
maxTasksTolease | int : el número máximo de tareas que se pueden arrendar actualmente |
Lanza |
---|
| org.json.JSONExcepción |
JSONException | |
actualizaciónTestContext
public abstract void updateTestContext (String requestId,
String commandId,
TestContext testContext)
Parámetros |
---|
requestId | String |
commandId | String |
testContext | TestContext |