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)

타임스탬프가 current + logRetentionDays인 .retention 파일을 지정된 디렉터리에 만듭니다.

상수

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)

타임스탬프가 current + logRetentionDays인 .retention 파일을 지정된 디렉터리에 만듭니다.

매개변수
dir File

logRetentionDays int