RemoteFileUtil
public class RemoteFileUtil
extends Object
java.lang.Object | |
เ | com.android.tradefed.device.cloud.RemoteFileUtil |
คลาสยูทิลิตี้เพื่อจัดการไฟล์จากอินสแตนซ์ระยะไกล
สรุป
ผู้สร้างสาธารณะ | |
---|---|
RemoteFileUtil () |
วิธีการสาธารณะ | |
---|---|
static boolean | doesRemoteFileExist ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remotePath) ตรวจสอบว่ามีไฟล์ (หรือไดเร็กทอรี) บนอินสแตนซ์ระยะไกลหรือไม่ |
static File | fetchRemoteDir ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteDirPath) ดึงไดเร็กทอรีระยะไกลจากรีโมตโฮสต์ |
static boolean | fetchRemoteDir ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteDirPath, File localDir) ดึงไดเร็กทอรีระยะไกลจากรีโมตโฮสต์ |
static File | fetchRemoteFile ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteFilePath) ดึงไฟล์ระยะไกลในอินสแตนซ์คอนเทนเนอร์ |
static boolean | fetchRemoteFile ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteFilePath, File localFile) ดึงไฟล์ระยะไกลในอินสแตนซ์ของอุปกรณ์หรือคอนเทนเนอร์ |
static boolean | pushFileToRemote ( GceAvdInfo remoteInstance, TestDeviceOptions options, scpArgs, IRunUtil runUtil, long timeout, String remoteFilePath, File localFile) pushFileToRemote ( GceAvdInfo remoteInstance, TestDeviceOptions options, scpArgs, IRunUtil runUtil, long timeout, String remoteFilePath, File localFile) พุช |
ผู้สร้างสาธารณะ
RemoteFileUtil
public RemoteFileUtil ()
วิธีการสาธารณะ
ไม่RemoteFileExist
public static boolean doesRemoteFileExist (GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remotePath)
ตรวจสอบว่ามีไฟล์ (หรือไดเร็กทอรี) บนอินสแตนซ์ระยะไกลหรือไม่
พารามิเตอร์ | |
---|---|
remoteInstance | GceAvdInfo : GceAvdInfo ที่อธิบายอุปกรณ์ |
options | TestDeviceOptions : TestDeviceOptions ที่อธิบายตัวเลือกอุปกรณ์ที่จะใช้สำหรับอุปกรณ์ GCE |
runUtil | IRunUtil : IRunUtil เพื่อรันคำสั่ง |
timeout | long : หน่วยเป็นมิลลิวินาทีเพื่อให้การดึงข้อมูลเสร็จสมบูรณ์ |
remotePath | String : เส้นทางระยะไกลที่จะค้นหาไฟล์ |
คืนสินค้า | |
---|---|
boolean | ไม่ว่าไฟล์นั้นจะมีอยู่หรือไม่ก็ตาม |
fetchRemoteDir
public static File fetchRemoteDir (GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteDirPath)
ดึงไดเร็กทอรีระยะไกลจากรีโมตโฮสต์
พารามิเตอร์ | |
---|---|
remoteInstance | GceAvdInfo : GceAvdInfo ที่อธิบายอุปกรณ์ |
options | TestDeviceOptions : TestDeviceOptions ที่อธิบายตัวเลือกอุปกรณ์ที่จะใช้สำหรับอุปกรณ์ GCE |
runUtil | IRunUtil : IRunUtil เพื่อรันคำสั่ง |
timeout | long : หน่วยเป็นมิลลิวินาทีเพื่อให้การดึงข้อมูลเสร็จสมบูรณ์ |
remoteDirPath | String : เส้นทางระยะไกลที่จะค้นหาไดเร็กทอรี |
คืนสินค้า | |
---|---|
File | ไดเร็กทอรีที่ดึง ERROR(/File) ถ้าสำเร็จ จะเป็น null อย่างอื่น |
fetchRemoteDir
public static boolean fetchRemoteDir (GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteDirPath, File localDir)
ดึงไดเร็กทอรีระยะไกลจากรีโมตโฮสต์
พารามิเตอร์ | |
---|---|
remoteInstance | GceAvdInfo : GceAvdInfo ที่อธิบายอุปกรณ์ |
options | TestDeviceOptions : TestDeviceOptions ที่อธิบายตัวเลือกอุปกรณ์ที่จะใช้สำหรับอุปกรณ์ GCE |
runUtil | IRunUtil : IRunUtil เพื่อรันคำสั่ง |
timeout | long : หน่วยเป็นมิลลิวินาทีเพื่อให้การดึงข้อมูลเสร็จสมบูรณ์ |
remoteDirPath | String : เส้นทางระยะไกลที่จะค้นหาไดเร็กทอรี |
localDir | File : ไดเร็กทอรีในเครื่องที่จะวางไฟล์ที่ดึงออกมา |
คืนสินค้า | |
---|---|
boolean | จริงถ้าสำเร็จ เท็จอย่างอื่น |
fetchRemoteFile
public static File fetchRemoteFile (GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteFilePath)
ดึงไฟล์ระยะไกลในอินสแตนซ์คอนเทนเนอร์
พารามิเตอร์ | |
---|---|
remoteInstance | GceAvdInfo : GceAvdInfo ที่อธิบายอุปกรณ์ |
options | TestDeviceOptions : TestDeviceOptions ที่อธิบายตัวเลือกอุปกรณ์ที่จะใช้สำหรับอุปกรณ์ GCE |
runUtil | IRunUtil : IRunUtil เพื่อรันคำสั่ง |
timeout | long : หน่วยเป็นมิลลิวินาทีเพื่อให้การดึงข้อมูลเสร็จสมบูรณ์ |
remoteFilePath | String : เส้นทางระยะไกลที่จะค้นหาไฟล์ |
คืนสินค้า | |
---|---|
File | ดึงยื่นถ้าสำเร็จ null มิฉะนั้น |
fetchRemoteFile
public static boolean fetchRemoteFile (GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteFilePath, File localFile)
ดึงไฟล์ระยะไกลในอินสแตนซ์ของอุปกรณ์หรือคอนเทนเนอร์
พารามิเตอร์ | |
---|---|
remoteInstance | GceAvdInfo : GceAvdInfo ที่อธิบายอุปกรณ์ |
options | TestDeviceOptions : TestDeviceOptions ที่อธิบายตัวเลือกอุปกรณ์ที่จะใช้สำหรับอุปกรณ์ GCE |
runUtil | IRunUtil : IRunUtil เพื่อรันคำสั่ง |
timeout | long : หน่วยเป็นมิลลิวินาทีเพื่อให้การดึงข้อมูลเสร็จสมบูรณ์ |
remoteFilePath | String : เส้นทางระยะไกลที่จะค้นหาไฟล์ |
localFile | File : ERROR(/File) ที่จะดึงไฟล์ระยะไกล |
คืนสินค้า | |
---|---|
boolean | จริงถ้าสำเร็จ เท็จอย่างอื่น |
pushFileToRemote
public static boolean pushFileToRemote (GceAvdInfo remoteInstance, TestDeviceOptions options,scpArgs, IRunUtil runUtil, long timeout, String remoteFilePath, File localFile)
พุช ERROR(/File)
จากโลคัลโฮสต์ไปยังรีโมตอินสแตนซ์
พารามิเตอร์ | |
---|---|
remoteInstance | GceAvdInfo : GceAvdInfo ที่อธิบายอุปกรณ์ |
options | TestDeviceOptions : TestDeviceOptions ที่อธิบายตัวเลือกอุปกรณ์ที่จะใช้สำหรับอุปกรณ์ GCE |
scpArgs | |
runUtil | IRunUtil : IRunUtil เพื่อรันคำสั่ง |
timeout | long : หน่วยเป็นมิลลิวินาทีเพื่อให้การดึงข้อมูลเสร็จสมบูรณ์ |
remoteFilePath | String : เส้นทางระยะไกลที่จะค้นหาไฟล์ |
localFile | File : ERROR(/File) ที่จะดึงไฟล์ระยะไกล |
คืนสินค้า | |
---|---|
boolean | จริงถ้าสำเร็จ เท็จอย่างอื่น |
RemoteFileUtil
public class RemoteFileUtil
extends Object
java.lang.Object | |
เ | com.android.tradefed.device.cloud.RemoteFileUtil |
คลาสยูทิลิตี้เพื่อจัดการไฟล์จากอินสแตนซ์ระยะไกล
สรุป
ผู้สร้างสาธารณะ | |
---|---|
RemoteFileUtil () |
วิธีการสาธารณะ | |
---|---|
static boolean | doesRemoteFileExist ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remotePath) ตรวจสอบว่ามีไฟล์ (หรือไดเร็กทอรี) บนอินสแตนซ์ระยะไกลหรือไม่ |
static File | fetchRemoteDir ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteDirPath) ดึงไดเร็กทอรีระยะไกลจากรีโมตโฮสต์ |
static boolean | fetchRemoteDir ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteDirPath, File localDir) ดึงไดเร็กทอรีระยะไกลจากรีโมตโฮสต์ |
static File | fetchRemoteFile ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteFilePath) ดึงไฟล์ระยะไกลในอินสแตนซ์คอนเทนเนอร์ |
static boolean | fetchRemoteFile ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteFilePath, File localFile) ดึงไฟล์ระยะไกลในอินสแตนซ์ของอุปกรณ์หรือคอนเทนเนอร์ |
static boolean | pushFileToRemote ( GceAvdInfo remoteInstance, TestDeviceOptions options, scpArgs, IRunUtil runUtil, long timeout, String remoteFilePath, File localFile) pushFileToRemote ( GceAvdInfo remoteInstance, TestDeviceOptions options, scpArgs, IRunUtil runUtil, long timeout, String remoteFilePath, File localFile) พุช |
ผู้สร้างสาธารณะ
RemoteFileUtil
public RemoteFileUtil ()
วิธีการสาธารณะ
ไม่RemoteFileExist
public static boolean doesRemoteFileExist (GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remotePath)
ตรวจสอบว่ามีไฟล์ (หรือไดเร็กทอรี) บนอินสแตนซ์ระยะไกลหรือไม่
พารามิเตอร์ | |
---|---|
remoteInstance | GceAvdInfo : GceAvdInfo ที่อธิบายอุปกรณ์ |
options | TestDeviceOptions : TestDeviceOptions ที่อธิบายตัวเลือกอุปกรณ์ที่จะใช้สำหรับอุปกรณ์ GCE |
runUtil | IRunUtil : IRunUtil เพื่อรันคำสั่ง |
timeout | long : หน่วยเป็นมิลลิวินาทีเพื่อให้การดึงข้อมูลเสร็จสมบูรณ์ |
remotePath | String : เส้นทางระยะไกลที่จะค้นหาไฟล์ |
คืนสินค้า | |
---|---|
boolean | ไม่ว่าไฟล์นั้นจะมีอยู่หรือไม่ก็ตาม |
fetchRemoteDir
public static File fetchRemoteDir (GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteDirPath)
ดึงไดเร็กทอรีระยะไกลจากรีโมตโฮสต์
พารามิเตอร์ | |
---|---|
remoteInstance | GceAvdInfo : GceAvdInfo ที่อธิบายอุปกรณ์ |
options | TestDeviceOptions : TestDeviceOptions ที่อธิบายตัวเลือกอุปกรณ์ที่จะใช้สำหรับอุปกรณ์ GCE |
runUtil | IRunUtil : IRunUtil เพื่อรันคำสั่ง |
timeout | long : หน่วยเป็นมิลลิวินาทีเพื่อให้การดึงข้อมูลเสร็จสมบูรณ์ |
remoteDirPath | String : เส้นทางระยะไกลที่จะค้นหาไดเร็กทอรี |
คืนสินค้า | |
---|---|
File | ไดเร็กทอรีที่ดึง ERROR(/File) ถ้าสำเร็จ จะเป็น null อย่างอื่น |
fetchRemoteDir
public static boolean fetchRemoteDir (GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteDirPath, File localDir)
ดึงไดเร็กทอรีระยะไกลจากรีโมตโฮสต์
พารามิเตอร์ | |
---|---|
remoteInstance | GceAvdInfo : GceAvdInfo ที่อธิบายอุปกรณ์ |
options | TestDeviceOptions : TestDeviceOptions ที่อธิบายตัวเลือกอุปกรณ์ที่จะใช้สำหรับอุปกรณ์ GCE |
runUtil | IRunUtil : IRunUtil เพื่อรันคำสั่ง |
timeout | long : หน่วยเป็นมิลลิวินาทีเพื่อให้การดึงข้อมูลเสร็จสมบูรณ์ |
remoteDirPath | String : เส้นทางระยะไกลที่จะค้นหาไดเร็กทอรี |
localDir | File : ไดเร็กทอรีในเครื่องที่จะวางไฟล์ที่ดึงออกมา |
คืนสินค้า | |
---|---|
boolean | จริงถ้าสำเร็จ เท็จอย่างอื่น |
fetchRemoteFile
public static File fetchRemoteFile (GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteFilePath)
ดึงไฟล์ระยะไกลในอินสแตนซ์คอนเทนเนอร์
พารามิเตอร์ | |
---|---|
remoteInstance | GceAvdInfo : GceAvdInfo ที่อธิบายอุปกรณ์ |
options | TestDeviceOptions : TestDeviceOptions ที่อธิบายตัวเลือกอุปกรณ์ที่จะใช้สำหรับอุปกรณ์ GCE |
runUtil | IRunUtil : IRunUtil เพื่อรันคำสั่ง |
timeout | long : หน่วยเป็นมิลลิวินาทีเพื่อให้การดึงข้อมูลเสร็จสมบูรณ์ |
remoteFilePath | String : เส้นทางระยะไกลที่จะค้นหาไฟล์ |
คืนสินค้า | |
---|---|
File | ดึงยื่นถ้าสำเร็จ null มิฉะนั้น |
fetchRemoteFile
public static boolean fetchRemoteFile (GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteFilePath, File localFile)
ดึงไฟล์ระยะไกลในอินสแตนซ์ของอุปกรณ์หรือคอนเทนเนอร์
พารามิเตอร์ | |
---|---|
remoteInstance | GceAvdInfo : GceAvdInfo ที่อธิบายอุปกรณ์ |
options | TestDeviceOptions : TestDeviceOptions ที่อธิบายตัวเลือกอุปกรณ์ที่จะใช้สำหรับอุปกรณ์ GCE |
runUtil | IRunUtil : IRunUtil เพื่อรันคำสั่ง |
timeout | long : หน่วยเป็นมิลลิวินาทีเพื่อให้การดึงข้อมูลเสร็จสมบูรณ์ |
remoteFilePath | String : เส้นทางระยะไกลที่จะค้นหาไฟล์ |
localFile | File : ERROR(/File) ที่จะดึงไฟล์ระยะไกล |
คืนสินค้า | |
---|---|
boolean | จริงถ้าสำเร็จ เท็จอย่างอื่น |
pushFileToRemote
public static boolean pushFileToRemote (GceAvdInfo remoteInstance, TestDeviceOptions options,scpArgs, IRunUtil runUtil, long timeout, String remoteFilePath, File localFile)
พุช ERROR(/File)
จากโลคัลโฮสต์ไปยังรีโมตอินสแตนซ์
พารามิเตอร์ | |
---|---|
remoteInstance | GceAvdInfo : GceAvdInfo ที่อธิบายอุปกรณ์ |
options | TestDeviceOptions : TestDeviceOptions ที่อธิบายตัวเลือกอุปกรณ์ที่จะใช้สำหรับอุปกรณ์ GCE |
scpArgs | |
runUtil | IRunUtil : IRunUtil เพื่อรันคำสั่ง |
timeout | long : หน่วยเป็นมิลลิวินาทีเพื่อให้การดึงข้อมูลเสร็จสมบูรณ์ |
remoteFilePath | String : เส้นทางระยะไกลที่จะค้นหาไฟล์ |
localFile | File : ERROR(/File) ที่จะดึงไฟล์ระยะไกล |
คืนสินค้า | |
---|---|
boolean | จริงถ้าสำเร็จ เท็จอย่างอื่น |