GCSConfigurationFactory
public
class
GCSConfigurationFactory
extends ConfigurationFactory
java.lang.Object | ||
↳ | com.android.tradefed.config.ConfigurationFactory | |
↳ | com.android.tradefed.config.gcs.GCSConfigurationFactory |
ConfigurationFactory
는 Google Cloud Storage에서 구성을 로드합니다.
요약
중첩된 클래스 | |
---|---|
class |
GCSConfigurationFactory.GCSConfigLoader
GCS에서 구성을 로드하고, 하나의 루트 구성에서 포함된 구성을 추적하며, 순환 포함 시 예외를 발생시키는 |
공개 메서드 | |
---|---|
static
IConfigurationFactory
|
getInstance(IConfigurationServer configServer)
싱글톤 |
File
|
getLatestDownloadedFile()
|
보호된 메서드 | |
---|---|
BufferedInputStream
|
getConfigStream(String name)
Google Cloud Storage(GCS)에서 지정된 구성 이름의 InputStream을 로드합니다. |
ConfigurationDef
|
getConfigurationDef(String name, boolean isGlobal,
지정된 이름의 |
공개 메서드
getInstance
public static IConfigurationFactory getInstance (IConfigurationServer configServer)
싱글톤 IConfigurationFactory
인스턴스를 가져옵니다.
매개변수 | |
---|---|
configServer |
IConfigurationServer |
반환 값 | |
---|---|
IConfigurationFactory |
getLatestDownloadedFile
public File getLatestDownloadedFile ()
반환 값 | |
---|---|
File |
보호된 메서드
getConfigStream
protected BufferedInputStream getConfigStream (String name)
Google Cloud Storage(GCS)에서 지정된 구성 이름의 InputStream을 로드합니다.
매개변수 | |
---|---|
name |
String : 로드할 구성 이름 |
반환 값 | |
---|---|
BufferedInputStream |
구성 콘텐츠를 읽기 위한 ERROR(/BufferedInputStream) |
생성 값 | |
---|---|
ConfigurationException |
구성을 찾을 수 없는 경우 |
getConfigurationDef
protected ConfigurationDef getConfigurationDef (String name, boolean isGlobal,templateMap)
지정된 이름의 ConfigurationDef
가져오기
매개변수 | |
---|---|
name |
String : 로드할 내장 구성의 이름 또는 로드할 구성 파일의 파일 경로입니다. |
isGlobal |
boolean |
templateMap |
|
반환 값 | |
---|---|
ConfigurationDef |
ConfigurationDef |
생성 값 | |
---|---|
ConfigurationException |