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, long mountTimeoutInMs)
使用给定的驱动程序路径和装载超时创建新的 CasFuseDriverProfile。 |
|
公共方法 | |
|---|---|
List<String>
|
buildMountCommand(Path sourceDataPath, Path mountPoint)
创建用于执行装载命令的命令行。 |
List<String>
|
buildMountCommand(Path sourceDataPath, Path mountPoint, Path logDir)
创建用于执行装载命令并记录到给定目录的命令行。 |
String
|
getDriverName()
此驱动程序类型的描述性名称。 |
long
|
getMountTimeoutInMs()
等待装载点准备就绪的默认超时。 |
boolean
|
isMountPointReady(Path mountPoint)
检查装载点是否已准备就绪,可供使用。 |
void
|
validateSourceDataPath(Path sourceDataPath)
验证给定的源数据路径是否适合 CAS FUSE 装载。 |
公共构造函数
CasFuseDriverProfile
public CasFuseDriverProfile (Path driverPath)
使用给定的驱动程序路径创建新的 CasFuseDriverProfile。
| 参数 | |
|---|---|
driverPath |
Path:驱动程序二进制文件的路径。 |
CasFuseDriverProfile
public CasFuseDriverProfile (Path driverPath,
long mountTimeoutInMs)使用给定的驱动程序路径和装载超时创建新的 CasFuseDriverProfile。
| 参数 | |
|---|---|
driverPath |
Path:驱动程序二进制文件的路径。 |
mountTimeoutInMs |
long:等待装载点准备就绪的超时(以毫秒为单位)。 |
公共方法
buildMountCommand
public List<String> buildMountCommand (Path sourceDataPath,
Path mountPoint)创建用于执行装载命令的命令行。
| 参数 | |
|---|---|
sourceDataPath |
Path:源数据路径。 |
mountPoint |
Path:目标装载点。 |
| 返回 | |
|---|---|
List<String> |
表示要执行的命令行的字符串列表。 |
buildMountCommand
public List<String> buildMountCommand (Path sourceDataPath,
Path mountPoint,
Path logDir)创建用于执行装载命令并记录到给定目录的命令行。
| 参数 | |
|---|---|
sourceDataPath |
Path:源数据路径。 |
mountPoint |
Path:目标装载点。 |
logDir |
Path:用于存储日志文件的目录。 |
| 返回 | |
|---|---|
List<String> |
表示要执行的命令行的字符串列表。 |
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)
验证给定的源数据路径是否适合 CAS FUSE 装载。这些路径的结构如下:
| 参数 | |
|---|---|
sourceDataPath |
Path:源数据的路径。 |
| 抛出 | |
|---|---|
IOException |
如果源数据路径无效。 |