IFuseDriverProfile
public
interface
IFuseDriverProfile
| com.android.tradefed.build.IFuseDriverProfile |
Définit le comportement spécifique d'un pilote FUSE particulier, ce qui permet au MountManager d'être générique.
Résumé
Méthodes publiques | |
|---|---|
abstract
List<String>
|
buildMountCommand(Path sourceDataPath, Path mountPoint)
Crée la ligne de commande pour exécuter la commande de montage. |
default
List<String>
|
buildMountCommand(Path sourceDataPath, Path mountPoint, Path logDir)
Crée la ligne de commande pour exécuter la commande de montage et se connecter au répertoire donné. |
abstract
String
|
getDriverName()
Nom descriptif de ce type de pilote. |
default
long
|
getMountTimeoutInMs()
Délai avant expiration par défaut pour attendre que le point d'installation soit prêt. |
default
boolean
|
isMountPointReady(Path mountPoint)
Vérifie si le point de montage est prêt à être utilisé. |
abstract
void
|
validateSourceDataPath(Path sourceDataPath)
Vérifie que le chemin d'accès aux données sources convient à ce pilote FUSE spécifique. |
Méthodes publiques
buildMountCommand
public abstract List<String> buildMountCommand (Path sourceDataPath,
Path mountPoint)Crée la ligne de commande pour exécuter la commande de montage.
| Paramètres | |
|---|---|
sourceDataPath |
Path : chemin d'accès aux données sources. |
mountPoint |
Path : point d'installation cible. |
| Renvoie | |
|---|---|
List<String> |
Liste de chaînes représentant la ligne de commande à exécuter. |
buildMountCommand
public List<String> buildMountCommand (Path sourceDataPath,
Path mountPoint,
Path logDir)Crée la ligne de commande pour exécuter la commande de montage et se connecter au répertoire donné.
| Paramètres | |
|---|---|
sourceDataPath |
Path : chemin d'accès aux données sources. |
mountPoint |
Path : point d'installation cible. |
logDir |
Path : répertoire dans lequel stocker les fichiers journaux. |
| Renvoie | |
|---|---|
List<String> |
Liste de chaînes représentant la ligne de commande à exécuter. |
getDriverName
public abstract String getDriverName ()
Nom descriptif de ce type de pilote.
| Renvoie | |
|---|---|
String |
Nom du pilote (par exemple, "FastCDC", "sshfs"). |
getMountTimeoutInMs
public long getMountTimeoutInMs ()
Délai avant expiration par défaut pour attendre que le point d'installation soit prêt.
| Renvoie | |
|---|---|
long |
Délai avant expiration par défaut en millisecondes. |
isMountPointReady
public boolean isMountPointReady (Path mountPoint)
Vérifie si le point de montage est prêt à être utilisé.
| Paramètres | |
|---|---|
mountPoint |
Path : point de montage à vérifier. |
| Renvoie | |
|---|---|
boolean |
True si le point de montage est prêt, false sinon. |
validateSourceDataPath
public abstract void validateSourceDataPath (Path sourceDataPath)
Vérifie que le chemin d'accès aux données sources convient à ce pilote FUSE spécifique.
| Paramètres | |
|---|---|
sourceDataPath |
Path : chemin d'accès aux données sources à vérifier. |
| Génère | |
|---|---|
IOException |
Si le chemin d'accès aux données sources n'est pas valide. |