ShardMainResultForwarder
public class ShardMainResultForwarder
extends ResultForwarder
implements ILogSaverListener
ResultForwarder
이 결합하게 분산됩니다 테스트 호출의 결과. 모든 샤딩된 호출이 완료된 후에만 리스너에게 호출 완료를 보고합니다.
이 클래스는 스레드로부터 안전하지 않습니다. 호출 콜백이 순서 없이 호출되는 것을 방지하기 위해 테스트 결과를 보낼 때 클라이언트가 이 클래스를 잠글 것으로 예상됩니다.
요약
공개 생성자
ShardMainResultForwarder
public ShardMainResultForwarder ( listeners,
int expectedShards)
크리에이트 ShardMainResultForwarder
.
공개 메서드
호출종료
public void invocationEnded (long elapsedTime)
호출종료
public void invocationEnded (long elapsedTime,
IInvocationContext context)
어떤 샤드가 완료되었는지 구별하기 위한 더 자세한 콜백.
매개변수 |
---|
elapsedTime | long |
context | IInvocationContext |
호출 실패
public void invocationFailed (FailureDescription failure)
매개변수 |
---|
failure | FailureDescription |
호출 실패
public void invocationFailed (Throwable cause)
호출 시작됨
public void invocationStarted (IInvocationContext context)
매개변수 |
---|
context | IInvocationContext |
로그 협회
public void logAssociation (String dataName,
LogFile logFile)
매개변수 |
---|
dataName | String |
logFile | LogFile |
public void testLogForward (String dataName,
LogDataType dataType,
InputStreamSource dataStream)
먼저 로그를 저장하는 대신 testLog만 전달하십시오.
매개변수 |
---|
dataName | String |
dataType | LogDataType |
dataStream | InputStreamSource |
public void testLogSaved (String dataName,
LogDataType dataType,
InputStreamSource dataStream,
LogFile logFile)
매개변수 |
---|
dataName | String |
dataType | LogDataType |
dataStream | InputStreamSource |
logFile | LogFile |