ConfigUtil

public class ConfigUtil
extends Object

java.lang.Object
   ↳ com.android.tradefed.util.statsd.ConfigUtil


Dienstprogrammklasse zum Erstellen, Interagieren mit und Pushen von StatsD-Konfigurationsdateien.

TODO(b/118635164): Zusammenführen mit geräteseitigen Konfigurationstools.

Zusammenfassung

Öffentliche Konstruktoren

ConfigUtil()

Öffentliche Methoden

static long pushBinaryStatsConfig(ITestDevice device, File configFile)

Eine binäre StatsD-Konfigurationsdatei zum Erfassen von Messwerten wird gesendet.

static long pushStatsConfig(ITestDevice device, eventAtomIds, logSources)

Eine ereignisbasierte Konfigurationsdatei wird gesendet, um in eventAtomIds bereitgestellte Atome aus logSources zu erfassen.

static long pushStatsConfig(ITestDevice device, eventAtomIds)

Es wird eine ereignisbasierte Konfigurationsdatei gesendet, um in eventAtomIds bereitgestellte Atome zu erfassen.

static void removeConfig(ITestDevice device, long configId)

Entfernt eine StatsD-Konfigurationsdatei anhand ihrer ID configId.

Öffentliche Konstruktoren

ConfigUtil

public ConfigUtil ()

Öffentliche Methoden

pushBinaryStatsConfig

public static long pushBinaryStatsConfig (ITestDevice device, 
                File configFile)

Eine binäre StatsD-Konfigurationsdatei zum Erfassen von Messwerten wird gesendet.

Parameter
device ITestDevice: Testgerät, an das die binäre StatsD-Konfiguration gepusht wird

configFile File: Die statsd-Konfigurationsdatei

Returns
long ID der neu gepushten Konfigurationsdatei

Ausgabe
DeviceNotAvailableException

pushStatsConfig

public static long pushStatsConfig (ITestDevice device, 
                 eventAtomIds, 
                 logSources)

Eine ereignisbasierte Konfigurationsdatei wird gesendet, um in eventAtomIds bereitgestellte Atome aus logSources zu erfassen.

Parameter
device ITestDevice: wo die Konfiguration gepusht werden soll

eventAtomIds : Liste der zu erfassenden Ereignis-Atom-IDs

logSources : Liste der Protokollquellen, aus denen Atome erfasst werden können

Returns
long ID der neu gepushten Konfigurationsdatei

Ausgabe
DeviceNotAvailableException

pushStatsConfig

public static long pushStatsConfig (ITestDevice device, 
                 eventAtomIds)

Es wird eine ereignisbasierte Konfigurationsdatei gesendet, um in eventAtomIds bereitgestellte Atome zu erfassen.

Parameter
device ITestDevice: wo die Konfiguration gepusht werden soll

eventAtomIds : Liste der zu erfassenden Ereignis-Atom-IDs

Returns
long ID der neu gepushten Konfigurationsdatei

Ausgabe
DeviceNotAvailableException

removeConfig

public static void removeConfig (ITestDevice device, 
                long configId)

Entfernt eine StatsD-Konfigurationsdatei anhand ihrer ID configId.

Parameter
device ITestDevice: Speicherort, an dem die Konfiguration gelöscht werden soll

configId long: ID der zu löschenden Konfiguration

Ausgabe
DeviceNotAvailableException