ClusterDeviceInfo
public
class
ClusterDeviceInfo
extends Object
java.lang.Object | |
↳ | com.android.tradefed.cluster.ClusterDeviceInfo |
A class to encapsulate cluster device info to be uploaded.
Summary
Nested classes | |
---|---|
class |
ClusterDeviceInfo.Builder
|
Public methods | |
---|---|
DeviceDescriptor
|
getDeviceDescriptor()
|
|
getExtraInfo()
|
String
|
getGroupName()
|
String
|
getRunTarget()
|
JSONObject
|
toJSON()
Generates the JSON Object for this device info. |
Public methods
getExtraInfo
publicgetExtraInfo ()
Returns | |
---|---|
|
getGroupName
public String getGroupName ()
Returns | |
---|---|
String |
getRunTarget
public String getRunTarget ()
Returns | |
---|---|
String |
toJSON
public JSONObject toJSON ()
Generates the JSON Object for this device info.
Returns | |
---|---|
JSONObject |
JSONObject equivalent of this device info. |
Throws | |
---|---|
|
org.json.JSONException |
JSONException |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2023-03-08 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-03-08 UTC."],[],[],null,["# ClusterDeviceInfo\n=================\n\n\n`\npublic\n\n\nclass\nClusterDeviceInfo\n`\n\n\n`\n\nextends Object\n\n\n`\n\n`\n\n\n`\n\n|---|------------------------------------------------|\n| java.lang.Object ||\n| ↳ | com.android.tradefed.cluster.ClusterDeviceInfo |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nA class to encapsulate cluster device info to be uploaded.\n\nSummary\n-------\n\n| ### Nested classes ||\n|----------|-------------------------------------------------------------------------------------------------------------------------------|\n| ` class` | [ClusterDeviceInfo.Builder](../../../../../../reference/tradefed/com/android/tradefed/cluster/ClusterDeviceInfo.Builder.html) |\n\n| ### Public methods ||\n|-----------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` `[DeviceDescriptor](../../../../../../reference/tradefed/com/android/tradefed/command/remote/DeviceDescriptor.html) | ` `[getDeviceDescriptor](../../../../../../reference/tradefed/com/android/tradefed/cluster/ClusterDeviceInfo.html#getDeviceDescriptor())`() ` |\n| ` ` | ` `[getExtraInfo](../../../../../../reference/tradefed/com/android/tradefed/cluster/ClusterDeviceInfo.html#getExtraInfo())`() ` |\n| ` String` | ` `[getGroupName](../../../../../../reference/tradefed/com/android/tradefed/cluster/ClusterDeviceInfo.html#getGroupName())`() ` |\n| ` String` | ` `[getRunTarget](../../../../../../reference/tradefed/com/android/tradefed/cluster/ClusterDeviceInfo.html#getRunTarget())`() ` |\n| ` JSONObject` | ` `[toJSON](../../../../../../reference/tradefed/com/android/tradefed/cluster/ClusterDeviceInfo.html#toJSON())`() ` Generates the JSON Object for this device info. |\n\nPublic methods\n--------------\n\n### getDeviceDescriptor\n\n```\npublic DeviceDescriptor getDeviceDescriptor ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|--------------------------------------------------------------------------------------------------------------------|--------|\n| [DeviceDescriptor](../../../../../../reference/tradefed/com/android/tradefed/command/remote/DeviceDescriptor.html) | \u003cbr /\u003e |\n\n### getExtraInfo\n\n```\npublic getExtraInfo ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|---|--------|\n| | \u003cbr /\u003e |\n\n### getGroupName\n\n```\npublic String getGroupName ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|----------|--------|\n| `String` | \u003cbr /\u003e |\n\n### getRunTarget\n\n```\npublic String getRunTarget ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|----------|--------|\n| `String` | \u003cbr /\u003e |\n\n### toJSON\n\n```\npublic JSONObject toJSON ()\n```\n\nGenerates the JSON Object for this device info.\n\n\u003cbr /\u003e\n\n| Returns ||\n|--------------|---------------------------------------------------|\n| `JSONObject` | JSONObject equivalent of this device info. \u003cbr /\u003e |\n\n| Throws ||\n|-----------------|------------------------|\n| | org.json.JSONException |\n| `JSONException` | |"]]