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

ConfigurationFactory.ConfigLoader का एक्सटेंशन, जो GCS से कॉन्फ़िगरेशन लोड करता है. साथ ही, एक रूट कॉन्फ़िगरेशन से शामिल कॉन्फ़िगरेशन को ट्रैक करता है और सर्कुलर शामिल करने पर अपवाद दिखाता है. 

सार्वजनिक तरीके

static IConfigurationFactory getInstance(IConfigurationServer configServer)

सिंगलटन IConfigurationFactory इंस्टेंस पाएं.

File getLatestDownloadedFile()

सुरक्षित तरीके

BufferedInputStream getConfigStream(String name)

Google Cloud Storage(GCS) से दिए गए कॉन्फ़िगरेशन के नाम के लिए, InputStream लोड करता है.

ConfigurationDef getConfigurationDef(String name, boolean isGlobal, templateMap)

दिए गए नाम के लिए ConfigurationDef फ़ंक्शन का इस्तेमाल करना

सार्वजनिक तरीके

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 if config could not be found

getConfigurationDef

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

दिए गए नाम के लिए ConfigurationDef फ़ंक्शन का इस्तेमाल करना

पैरामीटर
name String: लोड करने के लिए, पहले से मौजूद कॉन्फ़िगरेशन का नाम या कॉन्फ़िगरेशन फ़ाइल का फ़ाइल पाथ

isGlobal boolean

templateMap

रिटर्न
ConfigurationDef ConfigurationDef

थ्रो
ConfigurationException