ShardMainResultForwarder
public class ShardMainResultForwarder
extends ResultForwarder
implements ILogSaverListener
ResultForwarder
kết quả kết hợp các kết quả của lệnh gọi thử nghiệm được phân chia. Nó chỉ báo cáo việc hoàn thành lệnh gọi cho người nghe sau khi tất cả các lệnh gọi phân đoạn đã hoàn tất.
Lớp này không an toàn cho luồng. Dự kiến các máy khách sẽ khóa lớp này khi gửi kết quả kiểm tra, để ngăn chặn việc gọi lại lệnh gọi không theo thứ tự.
Bản tóm tắt
Phương pháp công khai |
---|
void | invocationEnded (long elapsedTime) |
void | invocationEnded (long elapsedTime, IInvocationContext context) Gọi lại chi tiết hơn để phân biệt phân đoạn nào đã hoàn thành. |
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) Chỉ chuyển tiếp testLog thay vì lưu nhật ký trước. |
void | testLogSaved (String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile) |
Nhà thầu xây dựng công cộng
ShardMainResultForwarder
public ShardMainResultForwarder ( listeners,
int expectedShards)
Tạo ShardMainResultForwarder
.
Thông số |
---|
listeners | : danh sách ITestInvocationListener để chuyển tiếp kết quả khi tất cả các phân đoạn được hoàn thành |
expectedShards | int : số lượng mảnh vỡ |
Phương pháp công khai
lời mờiĐã kết thúc
public void invocationEnded (long elapsedTime)
Thông số |
---|
elapsedTime | long |
lời mờiĐã kết thúc
public void invocationEnded (long elapsedTime,
IInvocationContext context)
Gọi lại chi tiết hơn để phân biệt phân đoạn nào đã hoàn thành.
Thông số |
---|
elapsedTime | long |
context | IInvocationContext |
lời gọi không thành công
public void invocationFailed (FailureDescription failure)
Thông số |
---|
failure | FailureDescription |
lời gọi không thành công
public void invocationFailed (Throwable cause)
lời gọiBắt đầu
public void invocationStarted (IInvocationContext context)
Thông số |
---|
context | IInvocationContext |
logHiệp hội
public void logAssociation (String dataName,
LogFile logFile)
Thông số |
---|
dataName | String |
logFile | LogFile |
public void testLogForward (String dataName,
LogDataType dataType,
InputStreamSource dataStream)
Chỉ chuyển tiếp testLog thay vì lưu nhật ký trước.
Thông số |
---|
dataName | String |
dataType | LogDataType |
dataStream | InputStreamSource |
public void testLogSaved (String dataName,
LogDataType dataType,
InputStreamSource dataStream,
LogFile logFile)
Thông số |
---|
dataName | String |
dataType | LogDataType |
dataStream | InputStreamSource |
logFile | LogFile |