आईक्लस्टरक्लाइंट
public interface IClusterClient
com.android.tradefed.cluster.IClusterClient |
टीएफसी बैकएंड के साथ इंटरैक्ट करने के लिए एक इंटरफ़ेस।
सारांश
स्थिरांक |
---|
String | TYPE_NAME अद्वितीय कॉन्फ़िगरेशन ऑब्जेक्ट प्रकार का नाम. |
सार्वजनिक तरीके |
---|
abstract IClusterEventUploader < ClusterCommandEvent > | getCommandEventUploader () एक IClusterEventUploader प्राप्त करें जिसका उपयोग ClusterCommandEvent अपलोड करने के लिए किया जा सकता है। |
abstract ClusterCommand.State | getCommandState (String requestId, String commandId) क्लस्टर कमांड की स्थिति निर्धारित करें। |
default ClusterCommandStatus | getCommandStatus (String requestId, String commandId) क्लस्टर कमांड की कमांड स्थिति प्राप्त करें (रद्द होने पर स्थिति और रद्द करने का कारण)। |
abstract IClusterEventUploader < ClusterHostEvent > | getHostEventUploader () एक IClusterEventUploader प्राप्त करें जिसका उपयोग ClusterHostEvent अपलोड करने के लिए किया जा सकता है। |
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
से सिंगलटन इंस्टेंस को पुनः प्राप्त करने के लिए उपयोग किया जाता है।
स्थिर मान: "क्लस्टर_क्लाइंट"
सार्वजनिक तरीके
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 | |
परीक्षणसंसाधन प्राप्त करें
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 | : डिवाइसइन्फो होस्ट के पास है |
nextClusterIds | : कमांड लीज़ करने के लिए अगले क्लस्टर आईडी की एक सूची। |
maxTasksTolease | int : वर्तमान में पट्टे पर दिए जा सकने वाले कार्यों की अधिकतम संख्या |
फेंकता |
---|
| org.json.JSONException |
JSONException | |
updateTestContext
public abstract void updateTestContext (String requestId,
String commandId,
TestContext testContext)
पैरामीटर |
---|
requestId | String |
commandId | String |
testContext | TestContext |