CasFuseDriverProfile
public
class
CasFuseDriverProfile
extends Object
implements
IFuseDriverProfile
| java.lang.Object | |
| ↳ | com.android.tradefed.build.CasFuseDriverProfile |
CasDriverProfile は、FastCDC でチャンク化されたディレクトリであるデバイス イメージ用の IFuseDriverProfile の特定の実装です。
概要
パブリック コンストラクタ | |
|---|---|
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 |
ソースデータ パスが無効な場合。 |