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)

Validates the given source data path for CAS FUSE mounting.

公用建構函式

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 如果來源資料路徑無效。