RetentionFileSaver

public class RetentionFileSaver
extends Object

java.lang.Object
   ↳ com.android.tradefed.result.RetentionFileSaver


這個輔助類別可在目錄中建立 .retention 檔案。 外部工具可使用這項屬性,判斷目錄何時可刪除。

摘要

常數

String RETENTION_DATE_FORMAT

String RETENTION_FILE_NAME

公用建構函式

RetentionFileSaver()

公用方法

boolean shouldDelete(File retentionFile)
void writeRetentionFile(File dir, int logRetentionDays)

在指定目錄中建立 .retention 檔案,時間戳記為 current + logRetentionDays

常數

RETENTION_DATE_FORMAT

public static final String RETENTION_DATE_FORMAT

常數值: "yyyy-MM-dd HH:mm:ss zzz"

RETENTION_FILE_NAME

public static final String RETENTION_FILE_NAME

常數值: ".retention"

公用建構函式

RetentionFileSaver

public RetentionFileSaver ()

公用方法

shouldDelete

public boolean shouldDelete (File retentionFile)

參數
retentionFile File

傳回
boolean

writeRetentionFile

public void writeRetentionFile (File dir, 
                int logRetentionDays)

在指定目錄中建立 .retention 檔案,時間戳記為 current + logRetentionDays

參數
dir File

logRetentionDays int