IClusterClient
public interface IClusterClient
com.android.tradefed.cluster.IClusterClient |
Bekannte indirekte Unterklassen |
Eine Schnittstelle für die Interaktion mit dem TFC-Backend.
Zusammenfassung
Konstanten |
---|
String | TYPE_NAME Der eindeutige Name des Konfigurationsobjekttyps. |
Öffentliche Methoden |
---|
abstract IClusterEventUploader < ClusterCommandEvent > | getCommandEventUploader () Rufen Sie einen IClusterEventUploader ab, der zum Hochladen ClusterCommandEvent s verwendet werden kann. |
abstract ClusterCommand.State | getCommandState (String requestId, String commandId) Bestimmen Sie den Status eines Cluster-Befehls. |
default ClusterCommandStatus | getCommandStatus (String requestId, String commandId) Abrufen des Befehlsstatus eines Clusterbefehls (Status und Abbruchgrund bei Abbruch). |
abstract IClusterEventUploader < ClusterHostEvent > | getHostEventUploader () Rufen Sie einen IClusterEventUploader ab, der zum Hochladen ClusterHostEvent s verwendet werden kann. |
abstract TestContext | getTestContext (String requestId, String commandId) |
abstract TestEnvironment | getTestEnvironment (String requestId) Holen Sie sich TestEnvironment für eine Anfrage. |
abstract | getTestResources (String requestId) Holen Sie sich TestResource s für eine Anfrage. |
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) Mieten Sie ClusterCommand für den gegebenen Host. |
abstract void | updateTestContext (String requestId, String commandId, TestContext testContext) |
Konstanten
MODELLNAME
public static final String TYPE_NAME
Der eindeutige Name des Konfigurationsobjekttyps. Wird verwendet, um die Singleton-Instanz aus der GlobalConfiguration
abzurufen.
Konstanter Wert: "cluster_client"
Öffentliche Methoden
getCommandState
public abstract ClusterCommand.State getCommandState (String requestId,
String commandId)
Bestimmen Sie den Status eines Cluster-Befehls.
Parameter |
---|
requestId | String : Clusteranforderungs-ID |
commandId | String : Cluster-Befehls-ID |
getCommandStatus
public ClusterCommandStatus getCommandStatus (String requestId,
String commandId)
Abrufen des Befehlsstatus eines Clusterbefehls (Status und Abbruchgrund bei Abbruch).
Parameter |
---|
requestId | String : Clusteranforderungs-ID |
commandId | String : Cluster-Befehls-ID |
getTestContext
public abstract TestContext getTestContext (String requestId,
String commandId)
Parameter |
---|
requestId | String |
commandId | String |
getTestEnvironment
public abstract TestEnvironment getTestEnvironment (String requestId)
Holen Sie sich TestEnvironment
für eine Anfrage.
Wirft |
---|
| IOException |
| org.json.JSONException |
JSONException | |
getTestResources
public abstract getTestResources (String requestId)
Holen Sie sich TestResource
s für eine Anfrage.
Wirft |
---|
| IOException |
| org.json.JSONException |
JSONException | |
leaseHostCommands
public abstract leaseHostCommands (String clusterId,
String hostname,
devices,
nextClusterIds,
int maxTasksTolease)
Mieten Sie ClusterCommand
für den gegebenen Host.
Parameter |
---|
clusterId | String : Cluster-ID für den Host |
hostname | String : Hostname |
devices | : DeviceInfos, die der Host hat |
nextClusterIds | : eine Liste der nächsten Cluster-IDs, von denen Befehle geleast werden sollen. |
maxTasksTolease | int : Die maximale Anzahl von Tasks, die derzeit geleast werden können |
Wirft |
---|
| org.json.JSONException |
JSONException | |
updateTestContext
public abstract void updateTestContext (String requestId,
String commandId,
TestContext testContext)
Parameter |
---|
requestId | String |
commandId | String |
testContext | TestContext |