IFuseDriverProfile
public
interface
IFuseDriverProfile
| com.android.tradefed.build.IFuseDriverProfile |
Defines the specific behavior of a particular FUSE driver, allowing the MountManager to be generic.
Summary
Public methods | |
|---|---|
abstract
|
buildMountCommand(Path sourceDataPath, Path mountPoint)
Creates the command line to execute the mount command. |
abstract
String
|
getDriverName()
A descriptive name for this driver type. |
default
long
|
getMountTimeoutInMs()
The default timeout to wait for the mount point to be ready. |
default
boolean
|
isMountPointReady(Path mountPoint)
Checks if the mount point is ready to be used. |
abstract
void
|
validateSourceDataPath(Path sourceDataPath)
Validates that the source data path is suitable for this specific FUSE driver. |
Public methods
buildMountCommand
public abstractbuildMountCommand (Path sourceDataPath, Path mountPoint)
Creates the command line to execute the mount command.
| Parameters | |
|---|---|
sourceDataPath |
Path: The source data path. |
mountPoint |
Path: The target mount point. |
| Returns | |
|---|---|
|
A list of string representing the command line to execute. |
getDriverName
public abstract String getDriverName ()
A descriptive name for this driver type.
| Returns | |
|---|---|
String |
The driver's name (e.g., "FastCDC", "sshfs"). |
getMountTimeoutInMs
public long getMountTimeoutInMs ()
The default timeout to wait for the mount point to be ready.
| Returns | |
|---|---|
long |
The default timeout in milliseconds. |
isMountPointReady
public boolean isMountPointReady (Path mountPoint)
Checks if the mount point is ready to be used.
| Parameters | |
|---|---|
mountPoint |
Path: The mount point to check. |
| Returns | |
|---|---|
boolean |
True if the mount point is ready, false otherwise. |
validateSourceDataPath
public abstract void validateSourceDataPath (Path sourceDataPath)
Validates that the source data path is suitable for this specific FUSE driver.
| Parameters | |
|---|---|
sourceDataPath |
Path: The source data path to check. |
| Throws | |
|---|---|
|
If the source data path is not valid. |