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, Map<String, String> 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 कॉन्फ़िगरेशन के कॉन्टेंट को पढ़ने के लिए BufferedInputStream

थ्रो
ConfigurationException अगर कॉन्फ़िगरेशन नहीं मिला

getConfigurationDef

protected ConfigurationDef getConfigurationDef (String name, 
                boolean isGlobal, 
                Map<String, String> templateMap)

दिए गए नाम के लिए ConfigurationDef वापस पाएं

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

isGlobal boolean

templateMap Map

रिटर्न
ConfigurationDef ConfigurationDef

थ्रो
ConfigurationException