ShardMainResultForwarder
public
class
ShardMainResultForwarder
extends ResultForwarder
implements
ILogSaverListener
| java.lang.Object | ||
| ↳ | com.android.tradefed.result.ResultForwarder | |
| ↳ | com.android.tradefed.invoker.ShardMainResultForwarder | |
샤딩된 테스트 호출의 결과를 결합하는 ResultForwarder입니다. 모든 샤딩된 호출이 완료된 후에만 리스너에게 호출 완료를 보고합니다.
이 클래스는 스레드로부터 안전하지 않습니다. 호출 콜백이 순서에 맞게 호출되지 않도록 하려면 클라이언트가 테스트 결과를 전송할 때 이 클래스를 잠그는 것이 좋습니다.
요약
공개 생성자 | |
|---|---|
ShardMainResultForwarder(
|
|
공개 메서드 | |
|---|---|
void
|
invocationEnded(long elapsedTime)
|
void
|
invocationEnded(long elapsedTime, IInvocationContext context)
완료된 샤드를 구분하는 더 자세한 콜백입니다. |
void
|
invocationFailed(FailureDescription failure)
|
void
|
invocationFailed(Throwable cause)
|
void
|
invocationStarted(IInvocationContext context)
|
void
|
logAssociation(String dataName, LogFile logFile)
|
void
|
testLogForward(String dataName, LogDataType dataType, InputStreamSource dataStream)
먼저 로그를 저장하는 대신 testLog만 전달합니다. |
void
|
testLogSaved(String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile)
|
공개 생성자
ShardMainResultForwarder
public ShardMainResultForwarder (listeners, int expectedShards)
ShardMainResultForwarder를 만듭니다.
| 매개변수 | |
|---|---|
listeners |
: 모든 샤드가 완료될 때 결과를 전달할 ITestInvocationListener 목록입니다. |
expectedShards |
int: 샤드 수
|
공개 메서드
invocationEnded
public void invocationEnded (long elapsedTime)
| 매개변수 | |
|---|---|
elapsedTime |
long |
invocationEnded
public void invocationEnded (long elapsedTime,
IInvocationContext context)완료된 샤드를 구분하는 더 자세한 콜백입니다.
| 매개변수 | |
|---|---|
elapsedTime |
long |
context |
IInvocationContext |
invocationFailed
public void invocationFailed (FailureDescription failure)
| 매개변수 | |
|---|---|
failure |
FailureDescription |
invocationFailed
public void invocationFailed (Throwable cause)
| 매개변수 | |
|---|---|
cause |
Throwable |
invocationStarted
public void invocationStarted (IInvocationContext context)
| 매개변수 | |
|---|---|
context |
IInvocationContext |
logAssociation
public void logAssociation (String dataName,
LogFile logFile)
| 매개변수 | |
|---|---|
dataName |
String |
logFile |
LogFile |
testLogForward
public void testLogForward (String dataName,
LogDataType dataType,
InputStreamSource dataStream)먼저 로그를 저장하는 대신 testLog만 전달합니다.
| 매개변수 | |
|---|---|
dataName |
String |
dataType |
LogDataType |
dataStream |
InputStreamSource |
testLogSaved
public void testLogSaved (String dataName,
LogDataType dataType,
InputStreamSource dataStream,
LogFile logFile)
| 매개변수 | |
|---|---|
dataName |
String |
dataType |
LogDataType |
dataStream |
InputStreamSource |
logFile |
LogFile |