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:要檢查的來源資料路徑。