public class EventChannelEncoder extends EventEncoder implements MasterProcessChannelEncoder
Constructor and Description |
---|
EventChannelEncoder(WritableBufferedByteChannel out)
The encoder for events.
|
Modifier and Type | Method and Description |
---|---|
void |
acquireNextTest() |
void |
bye() |
boolean |
checkError() |
void |
consoleDebugLog(String message) |
void |
consoleErrorLog(StackTraceWriter stackTraceWriter,
boolean trimStackTraces) |
void |
consoleErrorLog(String message) |
void |
consoleErrorLog(String message,
Throwable t) |
void |
consoleErrorLog(Throwable t) |
void |
consoleInfoLog(String message) |
void |
consoleWarningLog(String message) |
void |
onJvmExit() |
void |
sendExitError(StackTraceWriter stackTraceWriter,
boolean trimStackTraces) |
void |
stopOnNextTest() |
void |
testAssumptionFailure(ReportEntry reportEntry,
boolean trimStackTraces) |
void |
testError(ReportEntry reportEntry,
boolean trimStackTraces) |
void |
testFailed(ReportEntry reportEntry,
boolean trimStackTraces) |
void |
testOutput(TestOutputReportEntry reportEntry) |
void |
testSetCompleted(TestSetReportEntry reportEntry,
boolean trimStackTraces) |
void |
testSetStarting(TestSetReportEntry reportEntry,
boolean trimStackTraces) |
void |
testSkipped(ReportEntry reportEntry,
boolean trimStackTraces) |
void |
testStarting(ReportEntry reportEntry,
boolean trimStackTraces) |
void |
testSucceeded(ReportEntry reportEntry,
boolean trimStackTraces) |
protected void |
write(ByteBuffer frame,
boolean sync) |
enumToByteArray, getCharset, getEncodedCharsetName, getEncodedMagicNumber, newCharsetEncoder
encode, encode, encodeCharset, encodeHeader, encodeHeader, encodeInteger, encodeString, estimateBufferLength
public EventChannelEncoder(@Nonnull WritableBufferedByteChannel out)
out
- the channel available for writing the eventspublic boolean checkError()
checkError
in interface MasterProcessChannelEncoder
public void onJvmExit()
onJvmExit
in interface MasterProcessChannelEncoder
public void testSetStarting(TestSetReportEntry reportEntry, boolean trimStackTraces)
testSetStarting
in interface MasterProcessChannelEncoder
public void testSetCompleted(TestSetReportEntry reportEntry, boolean trimStackTraces)
testSetCompleted
in interface MasterProcessChannelEncoder
public void testStarting(ReportEntry reportEntry, boolean trimStackTraces)
testStarting
in interface MasterProcessChannelEncoder
public void testSucceeded(ReportEntry reportEntry, boolean trimStackTraces)
testSucceeded
in interface MasterProcessChannelEncoder
public void testFailed(ReportEntry reportEntry, boolean trimStackTraces)
testFailed
in interface MasterProcessChannelEncoder
public void testSkipped(ReportEntry reportEntry, boolean trimStackTraces)
testSkipped
in interface MasterProcessChannelEncoder
public void testError(ReportEntry reportEntry, boolean trimStackTraces)
testError
in interface MasterProcessChannelEncoder
public void testAssumptionFailure(ReportEntry reportEntry, boolean trimStackTraces)
testAssumptionFailure
in interface MasterProcessChannelEncoder
public void testOutput(TestOutputReportEntry reportEntry)
testOutput
in interface MasterProcessChannelEncoder
public void consoleInfoLog(String message)
consoleInfoLog
in interface MasterProcessChannelEncoder
public void consoleErrorLog(String message)
consoleErrorLog
in interface MasterProcessChannelEncoder
public void consoleErrorLog(Throwable t)
consoleErrorLog
in interface MasterProcessChannelEncoder
public void consoleErrorLog(String message, Throwable t)
consoleErrorLog
in interface MasterProcessChannelEncoder
public void consoleErrorLog(StackTraceWriter stackTraceWriter, boolean trimStackTraces)
consoleErrorLog
in interface MasterProcessChannelEncoder
public void consoleDebugLog(String message)
consoleDebugLog
in interface MasterProcessChannelEncoder
public void consoleWarningLog(String message)
consoleWarningLog
in interface MasterProcessChannelEncoder
public void bye()
bye
in interface MasterProcessChannelEncoder
public void stopOnNextTest()
stopOnNextTest
in interface MasterProcessChannelEncoder
public void acquireNextTest()
acquireNextTest
in interface MasterProcessChannelEncoder
public void sendExitError(StackTraceWriter stackTraceWriter, boolean trimStackTraces)
sendExitError
in interface MasterProcessChannelEncoder
protected void write(ByteBuffer frame, boolean sync)
write
in class AbstractStreamEncoder<ForkedProcessEventType>
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.