CasFuseDriverProfile

public class CasFuseDriverProfile
extends Object implements IFuseDriverProfile

java.lang.Object
   ↳ com.android.tradefed.build.CasFuseDriverProfile


CasDriverProfile 是 IFuseDriverProfile 的一种特定实现,适用于 FastCDC 分块目录的设备映像。

摘要

公共构造函数

CasFuseDriverProfile(Path driverPath)

使用给定的驱动程序路径创建新的 CasFuseDriverProfile。

CasFuseDriverProfile(Path driverPath, int mountTimeoutInMs)

使用给定的驱动程序路径和装载超时时间创建新的 CasFuseDriverProfile。

公共方法

buildMountCommand(Path sourceDataPath, Path mountPoint)

创建用于执行装载命令的命令行。

String getDriverName()

相应驱动程序类型的描述性名称。

long getMountTimeoutInMs()

等待装载点准备就绪的默认超时时间。

boolean isMountPointReady(Path mountPoint)

检查装载点是否已准备就绪,可供使用。

void validateSourceDataPath(Path sourceDataPath)

验证源数据路径是否适合此特定 FUSE 驱动程序。

公共构造函数

CasFuseDriverProfile

public CasFuseDriverProfile (Path driverPath)

使用给定的驱动程序路径创建新的 CasFuseDriverProfile。

参数
driverPath Path:驱动程序二进制文件的路径。

CasFuseDriverProfile

public CasFuseDriverProfile (Path driverPath, 
                int mountTimeoutInMs)

使用给定的驱动程序路径和装载超时时间创建新的 CasFuseDriverProfile。

参数
driverPath Path:驱动程序二进制文件的路径。

mountTimeoutInMs int:等待装载点就绪的超时时间(以毫秒为单位)。

公共方法

buildMountCommand

public  buildMountCommand (Path sourceDataPath, 
                Path mountPoint)

创建用于执行装载命令的命令行。

参数
sourceDataPath Path:源数据路径。

mountPoint Path:目标装载点。

返回
表示要执行的命令行的字符串列表。

getDriverName

public String getDriverName ()

相应驱动程序类型的描述性名称。

返回
String 司机的姓名(例如“FastCDC”“sshfs”)。

getMountTimeoutInMs

public long getMountTimeoutInMs ()

等待装载点准备就绪的默认超时时间。

返回
long 默认超时时间(以毫秒为单位)。

isMountPointReady

public boolean isMountPointReady (Path mountPoint)

检查装载点是否已准备就绪,可供使用。

参数
mountPoint Path:要检查的挂载点。

返回
boolean 如果装载点已就绪,则返回 True;否则返回 False。

validateSourceDataPath

public void validateSourceDataPath (Path sourceDataPath)

验证源数据路径是否适合此特定 FUSE 驱动程序。

参数
sourceDataPath Path:要检查的源数据路径。