GCSDownloaderHelper

public class GCSDownloaderHelper
extends Object

java.lang.Object
com.android.tradefed.build.gcs.GCSDownloaderHelper


ตัวดาวน์โหลดสำหรับ Bucket ของ GCS ที่ดูแลการแคชและแก้ไขการกำหนดค่าส่วนกลาง

สรุป

เครื่องมือสร้างสาธารณะ

GCSDownloaderHelper()

เมธอดสาธารณะ

File fetchTestResource(String gsPath)

ดึงข้อมูลทรัพยากรจากเส้นทาง GS

void fetchTestResource(File destFile, String gsPath)

ดึงข้อมูลทรัพยากรจากเส้นทาง GS

เครื่องมือสร้างสาธารณะ

GCSDownloaderHelper

public GCSDownloaderHelper ()

เมธอดสาธารณะ

fetchTestResource

public File fetchTestResource (String gsPath)

ดึงข้อมูลทรัพยากรจากเส้นทาง GS

พารามิเตอร์
gsPath String: เส้นทางที่ทรัพยากรอยู่ เช่น gs://bucket/path/file

การคืนสินค้า
File File ที่ชี้ไปยังทรัพยากรที่ดึงข้อมูล

ส่ง
com.android.tradefed.build.BuildRetrievalError
BuildRetrievalError

fetchTestResource

public void fetchTestResource (File destFile, 
                String gsPath)

ดึงข้อมูลทรัพยากรจากเส้นทาง GS

พารามิเตอร์
destFile File: File ที่ชี้ไปยังทรัพยากรที่ดึงข้อมูล

gsPath String: เส้นทางที่ทรัพยากรอยู่ เช่น gs://bucket/path/file

ส่ง
com.android.tradefed.build.BuildRetrievalError
BuildRetrievalError