CasFuseDriverProfile

public class CasFuseDriverProfile
extends Object implements IFuseDriverProfile

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


CasDriverProfile, डिवाइस की उन इमेज के लिए IFuseDriverProfile का एक खास वर्शन है जो FastCDC chunked directories हैं.

खास जानकारी

सार्वजनिक कंस्ट्रक्टर

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 अगर सोर्स डेटा का पाथ अमान्य है.