LastShardDetector

public final class LastShardDetector
extends Object implements ITestInvocationListener

java.lang.Object
   ↳ com.android.tradefed.invoker.shard.LastShardDetector


Khi chạy tính năng phân đoạn cục bộ, đôi khi chúng ta chỉ muốn thực thi một số hành động khi phân đoạn cuối cùng đạt đến invocationEnded(long). Trình báo cáo này cho phép phát hiện lỗi đó.

Tóm tắt

Hàm khởi tạo công khai

LastShardDetector()

Phương thức công khai

void invocationEnded(long elapsedTime)
boolean isLastShardDone()

Trả về True nếu mảnh cuối cùng đã gọi invocationEnded(long).

Hàm khởi tạo công khai

LastShardDetector

public LastShardDetector ()

Phương thức công khai

invocationEnded

public void invocationEnded (long elapsedTime)

Tham số
elapsedTime long

isLastShardDone

public boolean isLastShardDone ()

Trả về True nếu mảnh cuối cùng đã gọi invocationEnded(long).

Giá trị trả về
boolean