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
प्राप्त करें।
फेंकता |
---|
| आईओ अपवाद |
| org.json.JSONException |
JSONException | |
getTestResources
public abstract getTestResources (String requestId)
अनुरोध के लिए TestResource
प्राप्त करें।
फेंकता |
---|
| आईओ अपवाद |
| 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 | |
अपडेट टेस्ट कॉन्टेक्स्ट
public abstract void updateTestContext (String requestId,
String commandId,
TestContext testContext)
पैरामीटर |
---|
requestId | String |
commandId | String |
testContext | TestContext |