CommonLogRemoteFileUtil

public class CommonLogRemoteFileUtil
extends Object

java.lang.Object
   ↳ com.android.tradefed.device.cloud.CommonLogRemoteFileUtil


ยูทิลิตีนี้ช่วยให้หลีกเลี่ยงการทำซ้ำโค้ดในการแสดงอุปกรณ์ระยะไกลที่แตกต่างกันสำหรับตรรกะการดึงข้อมูลบันทึกระยะไกลของไฟล์ทั่วไป

สรุป

ชั้นเรียนที่ซ้อนกัน

class CommonLogRemoteFileUtil.KnownLogFileEntry

การนําเสนอรายการบันทึกที่ทราบสําหรับอุปกรณ์ระยะไกล 

ช่อง

public static final String EMULATOR_REMOTE_LOG_DIR

ไดเรกทอรีที่จะพบบันทึกการแก้ไขข้อบกพร่องสําหรับอินสแตนซ์โปรแกรมจําลอง

public static final MultiMap<TestDeviceOptions.InstanceTypeCommonLogRemoteFileUtil.KnownLogFileEntry> KNOWN_FILES_TO_FETCH

public static final String NESTED_REMOTE_LOG_DIR

ไดเรกทอรีที่จะค้นหาบันทึกการแก้ไขข้อบกพร่องสําหรับอินสแตนซ์ระยะไกลที่ฝังอยู่

public static final String NETSIM_LOG_DIR

ไดเรกทอรีที่พบบันทึก netsim จากบริการ Oxygen

public static final NETSIM_LOG_FILES

public static final String NETSIM_USER_LOG_DIR

public static final String OXYGEN_CUTTLEFISH_FETCH_LOG

บันทึกการดึงข้อมูล cvd

public static final String OXYGEN_CUTTLEFISH_LOG_DIR

ไดเรกทอรีที่จะพบบันทึกของอุปกรณ์ Oxygen

public static final String OXYGEN_EMULATOR_LOG_DIR

ไดเรกทอรีสำหรับค้นหาบันทึกของโปรแกรมจำลองจากบริการ Oxygen

public static final String OXYGEN_GOLDFISH_LOG_DIR

ไดเรกทอรีที่จะพบบันทึก Goldfish จากบริการ Oxygen

public static final OXYGEN_LOG_FILES

public static final OXYGEN_LOG_FILES_FALLBACK

สำหรับ Cuttlefish เวอร์ชันเก่า ไฟล์บันทึกจะอยู่ในไดเรกทอรี cuttlefish_runtime เท่านั้น

public static final String OXYGEN_RUNTIME_LOG_DIR

ไดเรกทอรีที่จะพบบันทึกรันไทม์ของอุปกรณ์ Oxygen

public static final String TOMBSTONES_ZIP_NAME

ตัวสร้างแบบสาธารณะ

CommonLogRemoteFileUtil()

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

static void fetchCommonFiles(ITestLogger testLogger, GceAvdInfo gceAvd, TestDeviceOptions options, IRunUtil runUtil)

ดึงข้อมูลและบันทึกไฟล์ที่รู้จักโดยทั่วไปจากอินสแตนซ์ระยะไกล

static void fetchTombstones(ITestLogger testLogger, GceAvdInfo gceAvd, TestDeviceOptions options, IRunUtil runUtil)

ดึงข้อมูลและบันทึกรายการที่ลบไปแล้วจากอินสแตนซ์ระยะไกล

static boolean isRemoteGceReachableBySsh(GceAvdInfo gceAvd, TestDeviceOptions options, IRunUtil runUtil)

เรียกใช้คําสั่งเพื่อตรวจสอบการเชื่อมต่อ SSH กับอินสแตนซ์ GCE ระยะไกล

static void logRemoteCommandOutput(ITestLogger testLogger, GceAvdInfo gceAvd, TestDeviceOptions options, IRunUtil runUtil, String logName, String... remoteCommand)

ดำเนินการตามคําสั่งในอินสแตนซ์ระยะไกลและบันทึกเอาต์พุต

static void pullCommonCvdLogs(GceAvdInfo gceAvdInfo, HostOrchestratorUtil hoUtil, ITestLogger logger)

ดึงบันทึก CF ผ่าน Host Orchestrator

static void pullCommonCvdLogs(GceAvdInfo gceAvdInfo, HostOrchestratorUtil hOUtil, ITestLogger logger, TestDeviceOptions options)

ดึงบันทึก CF ผ่าน Host Orchestrator

ช่อง

EMULATOR_REMOTE_LOG_DIR

public static final String EMULATOR_REMOTE_LOG_DIR

ไดเรกทอรีที่จะพบบันทึกการแก้ไขข้อบกพร่องสําหรับอินสแตนซ์โปรแกรมจําลอง

KNOWN_FILES_TO_FETCH

public static final MultiMap<TestDeviceOptions.InstanceTypeCommonLogRemoteFileUtil.KnownLogFileEntry> KNOWN_FILES_TO_FETCH

NESTED_REMOTE_LOG_DIR

public static final String NESTED_REMOTE_LOG_DIR

ไดเรกทอรีที่จะค้นหาบันทึกการแก้ไขข้อบกพร่องสําหรับอินสแตนซ์ระยะไกลที่ฝังอยู่

NETSIM_LOG_DIR

public static final String NETSIM_LOG_DIR

ไดเรกทอรีที่พบบันทึก netsim จากบริการ Oxygen

NETSIM_LOG_FILES

public static final  NETSIM_LOG_FILES

NETSIM_USER_LOG_DIR

public static final String NETSIM_USER_LOG_DIR

OXYGEN_CUTTLEFISH_FETCH_LOG

public static final String OXYGEN_CUTTLEFISH_FETCH_LOG

บันทึกการดึงข้อมูล cvd

OXYGEN_CUTTLEFISH_LOG_DIR

public static final String OXYGEN_CUTTLEFISH_LOG_DIR

ไดเรกทอรีที่จะพบบันทึกของอุปกรณ์ Oxygen

OXYGEN_EMULATOR_LOG_DIR

public static final String OXYGEN_EMULATOR_LOG_DIR

ไดเรกทอรีสำหรับค้นหาบันทึกของโปรแกรมจำลองจากบริการ Oxygen

OXYGEN_GOLDFISH_LOG_DIR

public static final String OXYGEN_GOLDFISH_LOG_DIR

ไดเรกทอรีที่จะพบบันทึก Goldfish จากบริการ Oxygen

OXYGEN_LOG_FILES

public static final  OXYGEN_LOG_FILES

OXYGEN_LOG_FILES_FALLBACK

public static final  OXYGEN_LOG_FILES_FALLBACK

สำหรับ Cuttlefish เวอร์ชันเก่า ไฟล์บันทึกจะอยู่ในไดเรกทอรี cuttlefish_runtime เท่านั้น

OXYGEN_RUNTIME_LOG_DIR

public static final String OXYGEN_RUNTIME_LOG_DIR

ไดเรกทอรีที่จะพบบันทึกรันไทม์ของอุปกรณ์ Oxygen ใช้เฉพาะในกรณีที่ไม่พบ OXYGEN_CUTTLEFISH_LOG_DIR

TOMBSTONES_ZIP_NAME

public static final String TOMBSTONES_ZIP_NAME

ตัวสร้างแบบสาธารณะ

CommonLogRemoteFileUtil

public CommonLogRemoteFileUtil ()

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

fetchCommonFiles

public static void fetchCommonFiles (ITestLogger testLogger, 
                GceAvdInfo gceAvd, 
                TestDeviceOptions options, 
                IRunUtil runUtil)

ดึงข้อมูลและบันทึกไฟล์ที่รู้จักโดยทั่วไปจากอินสแตนซ์ระยะไกล

พารามิเตอร์
testLogger ITestLogger: ITestLogger สำหรับบันทึกไฟล์

gceAvd GceAvdInfo: ตัวบ่งชี้อินสแตนซ์ระยะไกล

options TestDeviceOptions: TestDeviceOptions ที่อธิบายตัวเลือกอุปกรณ์

runUtil IRunUtil: IRunUtil เพื่อดำเนินการตามคำสั่ง

fetchTombstones

public static void fetchTombstones (ITestLogger testLogger, 
                GceAvdInfo gceAvd, 
                TestDeviceOptions options, 
                IRunUtil runUtil)

ดึงข้อมูลและบันทึกรายการที่ลบไปแล้วจากอินสแตนซ์ระยะไกล

พารามิเตอร์
testLogger ITestLogger: ITestLogger สำหรับบันทึกไฟล์

gceAvd GceAvdInfo: ตัวบ่งชี้อินสแตนซ์ระยะไกล

options TestDeviceOptions: TestDeviceOptions ที่อธิบายตัวเลือกอุปกรณ์

runUtil IRunUtil: IRunUtil เพื่อดำเนินการตามคำสั่ง

isRemoteGceReachableBySsh

public static boolean isRemoteGceReachableBySsh (GceAvdInfo gceAvd, 
                TestDeviceOptions options, 
                IRunUtil runUtil)

เรียกใช้คําสั่งเพื่อตรวจสอบการเชื่อมต่อ SSH กับอินสแตนซ์ GCE ระยะไกล

พารามิเตอร์
gceAvd GceAvdInfo: GceAvdInfo ที่อธิบายอุปกรณ์

options TestDeviceOptions: TestDeviceOptions ที่อธิบายตัวเลือกอุปกรณ์ที่จะใช้สำหรับอุปกรณ์ GCE

runUtil IRunUtil: IRunUtil เพื่อเรียกใช้คําสั่ง

คิกรีเทิร์น
boolean บูลีนที่ระบุว่าเข้าถึง GCE ระยะไกลผ่าน SSH ได้หรือไม่

logRemoteCommandOutput

public static void logRemoteCommandOutput (ITestLogger testLogger, 
                GceAvdInfo gceAvd, 
                TestDeviceOptions options, 
                IRunUtil runUtil, 
                String logName, 
                String... remoteCommand)

ดำเนินการตามคําสั่งในอินสแตนซ์ระยะไกลและบันทึกเอาต์พุต

พารามิเตอร์
testLogger ITestLogger: ITestLogger สำหรับบันทึกไฟล์

gceAvd GceAvdInfo: ตัวบ่งชี้อินสแตนซ์ระยะไกล

options TestDeviceOptions: TestDeviceOptions ที่อธิบายตัวเลือกอุปกรณ์

runUtil IRunUtil: IRunUtil เพื่อดำเนินการตามคำสั่ง

logName String: ชื่อบันทึกที่จะใช้เมื่อรายงานไปยัง ITestLogger

remoteCommand String: บรรทัดคำสั่งที่จะดำเนินการบนอินสแตนซ์ระยะไกล

pullCommonCvdLogs

public static void pullCommonCvdLogs (GceAvdInfo gceAvdInfo, 
                HostOrchestratorUtil hoUtil, 
                ITestLogger logger)

ดึงบันทึก CF ผ่าน Host Orchestrator

พารามิเตอร์
gceAvdInfo GceAvdInfo: ตัวบ่งชี้อินสแตนซ์ระยะไกล

hoUtil HostOrchestratorUtil

logger ITestLogger: ITestLogger สำหรับบันทึกไฟล์

pullCommonCvdLogs

public static void pullCommonCvdLogs (GceAvdInfo gceAvdInfo, 
                HostOrchestratorUtil hOUtil, 
                ITestLogger logger, 
                TestDeviceOptions options)

ดึงบันทึก CF ผ่าน Host Orchestrator

พารามิเตอร์
gceAvdInfo GceAvdInfo: ตัวบ่งชี้อินสแตนซ์ระยะไกล

hOUtil HostOrchestratorUtil: HostOrchestratorUtil ที่ใช้ในการดึงบันทึก CF

logger ITestLogger: ITestLogger สำหรับบันทึกไฟล์

options TestDeviceOptions: TestDeviceOptions ที่อธิบายตัวเลือกอุปกรณ์