TestEnvironment
public
class
TestEnvironment
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.cluster.TestEnvironment |
Classe permettant de modéliser un message TestEnvironment renvoyé par l'API TFC.
Résumé
Constructeurs publics | |
|---|---|
TestEnvironment()
|
|
Méthodes publiques | |
|---|---|
void
|
addEnvVar(String name, String value)
Ajoute une variable d'environnement. |
void
|
addExcludedFileInJavaClasspath(String s)
|
void
|
addExtraContextFile(String path)
Ajoute un chemin d'accès à un fichier à ajouter au fichier de contexte. |
void
|
addJavaProperty(String name, String value)
Ajoute une propriété Java. |
void
|
addJvmOption(String s)
Ajoute une option JVM. |
void
|
addOutputFilePattern(String s)
Ajoute un modèle de fichier de sortie. |
void
|
addSetupScripts(String s)
Ajoute une commande de script de configuration. |
static
TestEnvironment
|
fromJson(JSONObject json)
|
Map<String, String>
|
getBuildAttributes()
Renvoie un objet |
String
|
getContextFilePattern()
|
Map<String, String>
|
getEnvVars()
Renvoie un objet |
List<String>
|
getExcludedFilesInJavaClasspath()
Renvoie une liste des fichiers exclus dans le classpath Java. |
List<String>
|
getExtraContextFiles()
|
long
|
getInvocationTimeout()
|
Map<String, String>
|
getJavaProperties()
Renvoie un objet |
List<String>
|
getJvmOptions()
Renvoie une liste d'options JVM. |
String
|
getLogLevel()
|
List<String>
|
getOutputFilePatterns()
Renvoie une liste de formats de fichiers de sortie. |
String
|
getOutputFileUploadUrl()
Renvoie une URL d'importation de fichier de sortie. |
long
|
getOutputIdleTimeout()
|
String
|
getRetryCommandLine()
|
List<String>
|
getSetupScripts()
Renvoie une liste des commandes du script de configuration. |
List<TradefedConfigObject>
|
getTradefedConfigObjects()
|
void
|
setInvocationTimeout(long value)
|
void
|
setOutputFileUploadUrl(String s)
Définit une URL d'importation de fichier de sortie. |
void
|
setOutputIdleTimeout(long outputIdleTimeout)
|
void
|
setUseParallelSetup(boolean f)
|
void
|
setUseSubprocessReporting(boolean f)
|
boolean
|
useParallelSetup()
Indique s'il faut utiliser la configuration parallèle. |
boolean
|
useSubprocessReporting()
Indique s'il faut utiliser les rapports de sous-processus. |
Constructeurs publics
TestEnvironment
public TestEnvironment ()
Méthodes publiques
addEnvVar
public void addEnvVar (String name,
String value)Ajoute une variable d'environnement.
| Paramètres | |
|---|---|
name |
String : nom de variable. |
value |
String : valeur de la variable. |
addExcludedFileInJavaClasspath
public void addExcludedFileInJavaClasspath (String s)
| Paramètres | |
|---|---|
s |
String |
addExtraContextFile
public void addExtraContextFile (String path)
Ajoute un chemin d'accès à un fichier à ajouter au fichier de contexte.
| Paramètres | |
|---|---|
path |
String |
addJavaProperty
public void addJavaProperty (String name,
String value)Ajoute une propriété Java.
| Paramètres | |
|---|---|
name |
String : nom de propriété. |
value |
String : valeur de propriété. |
addJvmOption
public void addJvmOption (String s)
Ajoute une option JVM.
| Paramètres | |
|---|---|
s |
String : option JVM. |
addOutputFilePattern
public void addOutputFilePattern (String s)
Ajoute un modèle de fichier de sortie.
| Paramètres | |
|---|---|
s |
String : modèle de fichier. |
addSetupScripts
public void addSetupScripts (String s)
Ajoute une commande de script de configuration.
| Paramètres | |
|---|---|
s |
String : commande de script de configuration. |
fromJson
public static TestEnvironment fromJson (JSONObject json)
| Paramètres | |
|---|---|
json |
JSONObject |
| Renvoie | |
|---|---|
TestEnvironment |
|
| Génère | |
|---|---|
JSONException |
|
getBuildAttributes
public Map<String, String> getBuildAttributes ()
Renvoie un objet Map contenant tous les attributs de compilation.
| Renvoie | |
|---|---|
Map<String, String> |
Carte non modifiable de tous les attributs de compilation |
getContextFilePattern
public String getContextFilePattern ()
| Renvoie | |
|---|---|
String |
|
getEnvVars
public Map<String, String> getEnvVars ()
Renvoie un objet Map contenant toutes les variables d'environnement.
| Renvoie | |
|---|---|
Map<String, String> |
Carte non modifiable de toutes les variables d'environnement. |
getExcludedFilesInJavaClasspath
public List<String> getExcludedFilesInJavaClasspath ()
Renvoie une liste des fichiers exclus dans le classpath Java.
| Renvoie | |
|---|---|
List<String> |
liste non modifiable de fichiers |
getExtraContextFiles
public List<String> getExtraContextFiles ()
| Renvoie | |
|---|---|
List<String> |
Liste des chemins d'accès aux fichiers supplémentaires à ajouter au fichier de contexte |
getInvocationTimeout
public long getInvocationTimeout ()
| Renvoie | |
|---|---|
long |
Nombre maximal de millisecondes d'attente pour un appel |
getJavaProperties
public Map<String, String> getJavaProperties ()
Renvoie un objet Map contenant toutes les propriétés Java.
| Renvoie | |
|---|---|
Map<String, String> |
Carte non modifiable de toutes les propriétés du coureur. |
getJvmOptions
public List<String> getJvmOptions ()
Renvoie une liste d'options JVM.
| Renvoie | |
|---|---|
List<String> |
liste d'options non modifiable |
getLogLevel
public String getLogLevel ()
| Renvoie | |
|---|---|
String |
|
getOutputFilePatterns
public List<String> getOutputFilePatterns ()
Renvoie une liste de formats de fichiers de sortie.
| Renvoie | |
|---|---|
List<String> |
Liste non modifiable de formats de fichiers. |
getOutputFileUploadUrl
public String getOutputFileUploadUrl ()
Renvoie une URL d'importation de fichier de sortie.
| Renvoie | |
|---|---|
String |
une URL. |
getOutputIdleTimeout
public long getOutputIdleTimeout ()
| Renvoie | |
|---|---|
long |
Nombre maximal de millisecondes d'attente pour un sous-processus inactif |
getRetryCommandLine
public String getRetryCommandLine ()
| Renvoie | |
|---|---|
String |
|
getSetupScripts
public List<String> getSetupScripts ()
Renvoie une liste des commandes du script de configuration.
| Renvoie | |
|---|---|
List<String> |
liste de commandes non modifiable |
getTradefedConfigObjects
public List<TradefedConfigObject> getTradefedConfigObjects ()
| Renvoie | |
|---|---|
List<TradefedConfigObject> |
|
setInvocationTimeout
public void setInvocationTimeout (long value)
| Paramètres | |
|---|---|
value |
long |
setOutputFileUploadUrl
public void setOutputFileUploadUrl (String s)
Définit une URL d'importation de fichier de sortie.
| Paramètres | |
|---|---|
s |
String : URL. |
setOutputIdleTimeout
public void setOutputIdleTimeout (long outputIdleTimeout)
| Paramètres | |
|---|---|
outputIdleTimeout |
long |
setUseParallelSetup
public void setUseParallelSetup (boolean f)
| Paramètres | |
|---|---|
f |
boolean |
setUseSubprocessReporting
public void setUseSubprocessReporting (boolean f)
| Paramètres | |
|---|---|
f |
boolean |
useParallelSetup
public boolean useParallelSetup ()
Indique s'il faut utiliser la configuration parallèle.
| Renvoie | |
|---|---|
boolean |
Valeur booléenne. |
useSubprocessReporting
public boolean useSubprocessReporting ()
Indique s'il faut utiliser les rapports de sous-processus.
| Renvoie | |
|---|---|
boolean |
Valeur booléenne. |