AcloudConfigParser
public class AcloudConfigParser
extends Object
java.lang.Object | |
↳ | com.android.tradefed.device.cloud.AcloudConfigParser |
解析Acloud配置的辅助类(用于启动Cloud设备实例)。
概括
嵌套类 | |
---|---|
enum | AcloudConfigParser.AcloudKeys 可以从配置中搜索的密钥集。 |
公开方法 | |
---|---|
String | getValueForKey ( AcloudConfigParser.AcloudKeys key) 返回与Acloud密钥关联的值,如果没有值,则返回null。 |
static AcloudConfigParser | parseConfig (File configFile) 解析acloud配置文件并返回一个已填充的 |
公开方法
getValueForKey
public String getValueForKey (AcloudConfigParser.AcloudKeys key)
返回与Acloud密钥关联的值,如果没有值,则返回null。
参数 | |
---|---|
key | AcloudConfigParser.AcloudKeys |
退货 | |
---|---|
String |
parseConfig
public static AcloudConfigParser parseConfig (File configFile)
解析acloud配置文件,并返回可查询其值的已填充AcloudConfigParser
。发生错误时返回null。
参数 | |
---|---|
configFile | File |
退货 | |
---|---|
AcloudConfigParser |
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 2019-10-02 UTC.
[]
[]