CommonLogRemoteFileUtil
  public
  
  
  
  class
  CommonLogRemoteFileUtil
  
    extends Object
  
  
  
  
  
  
| java.lang.Object | |
| ↳ | com.android.tradefed.device.cloud.CommonLogRemoteFileUtil | 
Tiện ích này cho phép tránh trùng lặp mã trên các bản trình bày thiết bị từ xa khác nhau cho logic tìm nạp nhật ký từ xa của các tệp phổ biến.
Tóm tắt
| Lớp lồng ghép | |
|---|---|
| 
        
        
        
        
        class | CommonLogRemoteFileUtil.KnownLogFileEntryBiểu thị một mục nhập nhật ký đã biết cho các thiết bị từ xa. | 
| Trường | |
|---|---|
| 
    public
    static
    final
    String | EMULATOR_REMOTE_LOG_DIRThư mục chứa nhật ký gỡ lỗi cho một thực thể trình mô phỏng. | 
| 
    public
    static
    final
    MultiMap<TestDeviceOptions.InstanceType, CommonLogRemoteFileUtil.KnownLogFileEntry> | KNOWN_FILES_TO_FETCH
 | 
| 
    public
    static
    final
    String | NESTED_REMOTE_LOG_DIRThư mục chứa nhật ký gỡ lỗi cho một thực thể từ xa lồng nhau. | 
| 
    public
    static
    final
    String | OXYGEN_EMULATOR_LOG_DIRThư mục chứa nhật ký trình mô phỏng từ dịch vụ Oxygen. | 
| 
    public
    static
    final
     | OXYGEN_LOG_FILES
 | 
| 
    public
    static
    final
    String | OXYGEN_RUNTIME_LOG_DIRThư mục chứa nhật ký thời gian chạy của thiết bị Oxygen. | 
| 
    public
    static
    final
    String | TOMBSTONES_ZIP_NAME
 | 
| Hàm khởi tạo công khai | |
|---|---|
| 
      CommonLogRemoteFileUtil()
       | |
| Phương thức công khai | |
|---|---|
| 
        
        
        static
        
        
        void | 
      fetchCommonFiles(ITestLogger testLogger, GceAvdInfo gceAvd, TestDeviceOptions options, IRunUtil runUtil)
      Tìm nạp và ghi nhật ký các tệp phổ biến từ các phiên bản từ xa. | 
| 
        
        
        static
        
        
        void | 
      fetchTombstones(ITestLogger testLogger, GceAvdInfo gceAvd, TestDeviceOptions options, IRunUtil runUtil)
      Tìm nạp và ghi nhật ký các mốc thời gian từ thực thể từ xa. | 
Trường
EMULATOR_REMOTE_LOG_DIR
public static final String EMULATOR_REMOTE_LOG_DIR
Thư mục chứa nhật ký gỡ lỗi cho một thực thể trình mô phỏng.
KNOWN_FILES_TO_FETCH
public static final MultiMap<TestDeviceOptions.InstanceType, CommonLogRemoteFileUtil.KnownLogFileEntry> KNOWN_FILES_TO_FETCH
NESTED_REMOTE_LOG_DIR
public static final String NESTED_REMOTE_LOG_DIR
Thư mục chứa nhật ký gỡ lỗi cho một thực thể từ xa lồng nhau.
OXYGEN_EMULATOR_LOG_DIR
public static final String OXYGEN_EMULATOR_LOG_DIR
Thư mục chứa nhật ký trình mô phỏng từ dịch vụ Oxygen.
OXYGEN_LOG_FILES
public static finalOXYGEN_LOG_FILES 
OXYGEN_RUNTIME_LOG_DIR
public static final String OXYGEN_RUNTIME_LOG_DIR
Thư mục chứa nhật ký thời gian chạy của thiết bị Oxygen.
TOMBSTONES_ZIP_NAME
public static final String TOMBSTONES_ZIP_NAME
Hàm khởi tạo công khai
CommonLogRemoteFileUtil
public CommonLogRemoteFileUtil ()
Phương thức công khai
fetchCommonFiles
public static void fetchCommonFiles (ITestLogger testLogger, 
                GceAvdInfo gceAvd, 
                TestDeviceOptions options, 
                IRunUtil runUtil)Tìm nạp và ghi nhật ký các tệp phổ biến từ các phiên bản từ xa.
| Tham số | |
|---|---|
| testLogger | ITestLogger:ITestLoggernơi ghi nhật ký các tệp. | 
| gceAvd | GceAvdInfo: Chỉ số mô tả của thực thể từ xa. | 
| options | TestDeviceOptions:TestDeviceOptionsmô tả các tuỳ chọn thiết bị | 
| runUtil | IRunUtil:IRunUtilđể thực thi các lệnh. | 
fetchTombstones
public static void fetchTombstones (ITestLogger testLogger, 
                GceAvdInfo gceAvd, 
                TestDeviceOptions options, 
                IRunUtil runUtil)Tìm nạp và ghi nhật ký các mốc thời gian từ thực thể từ xa.
| Tham số | |
|---|---|
| testLogger | ITestLogger:ITestLoggernơi ghi nhật ký các tệp. | 
| gceAvd | GceAvdInfo: Chỉ số mô tả của thực thể từ xa. | 
| options | TestDeviceOptions:TestDeviceOptionsmô tả các tuỳ chọn thiết bị | 
| runUtil | IRunUtil:IRunUtilđể thực thi các lệnh. | 
