GCSConfigurationFactory

public class GCSConfigurationFactory
extends ConfigurationFactory

java.lang.Nesne
com.android.tradefed.config.ConfigurationFactory
com.android.tradefed.config.gcs.GCSConfigurationFactory


Bir ConfigurationFactory , yapılandırmaları Google Cloud Storage'dan yükler.

Özet

iç içe sınıflar

class GCSConfigurationFactory.GCSConfigLoader

ConfigurationFactory.ConfigLoader GCS'den yükleyen, dahil edilen yapılandırmaları tek bir kök yapılandırmadan izleyen ve dairesel içermelere bir istisna atan ConfigurationFactory.ConfigLoader uzantısı.

Genel yöntemler

static IConfigurationFactory getInstance ( IConfigurationServer configServer)

Singleton IConfigurationFactory örneğini alın.

File getLatestDownloadedFile ()

Korumalı yöntemler

BufferedInputStream getConfigStream (String name)

Google Cloud Storage'dan (GCS) verilen yapılandırma adı için bir InputStream yükler.

ConfigurationDef getConfigurationDef (String name, boolean isGlobal, templateMap) getConfigurationDef (String name, boolean isGlobal, templateMap)

Verilen ad için ConfigurationDef alın

Genel yöntemler

getInstance

public static IConfigurationFactory getInstance (IConfigurationServer configServer)

Singleton IConfigurationFactory örneğini alın.

parametreler
configServer IConfigurationServer

İadeler
IConfigurationFactory

getLatestİndirilenDosya

public File getLatestDownloadedFile ()

İadeler
File

Korumalı yöntemler

getConfigStream

protected BufferedInputStream getConfigStream (String name)

Google Cloud Storage'dan (GCS) verilen yapılandırma adı için bir InputStream yükler.

parametreler
name String : yüklenecek yapılandırma adı

İadeler
BufferedInputStream yapılandırma içeriğini okumak için bir ERROR(/BufferedInputStream)

atar
ConfigurationException yapılandırma bulunamadıysa

getConfigurationDef

protected ConfigurationDef getConfigurationDef (String name, 
                boolean isGlobal, 
                 templateMap)

Verilen ad için ConfigurationDef alın

parametreler
name String : yüklenecek yerleşik yapılandırmanın adı veya yüklenecek yapılandırma dosyasına giden dosya yolu

isGlobal boolean

templateMap

İadeler
ConfigurationDef ConfigurationDef

atar
ConfigurationException