Interface MasterProcessChannelEncoder
-
public interface MasterProcessChannelEncoder
An abstraction for physical encoder of events.- Since:
- 3.0.0-M5
- Author:
- Tibor Digana (tibor17)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
acquireNextTest()
The provider acquires a new test set to run.void
bye()
Say BYE on exit.boolean
checkError()
void
consoleDebugLog(String msg)
Debug log.void
consoleErrorLog(String msg)
Error log.void
consoleErrorLog(String msg, Throwable t)
Error log.void
consoleErrorLog(Throwable t)
Error log.void
consoleErrorLog(StackTraceWriter stackTraceWriter, boolean trimStackTraces)
Error log.void
consoleInfoLog(String msg)
Info log.void
consoleWarningLog(String msg)
Warning log.void
onJvmExit()
Called on JVM exit error.void
sendExitError(StackTraceWriter stackTraceWriter, boolean trimStackTraces)
ForkedBooter tear down has failed while waiting for BYE_ACK command.void
stopOnNextTest()
The provider wants to stop the progress.void
testAssumptionFailure(ReportEntry reportEntry, boolean trimStackTraces)
The test assumption failure.void
testError(ReportEntry reportEntry, boolean trimStackTraces)
The test error.void
testFailed(ReportEntry reportEntry, boolean trimStackTraces)
The test has failed.void
testOutput(TestOutputReportEntry reportEntry)
Test output, a line or characters.void
testSetCompleted(TestSetReportEntry reportEntry, boolean trimStackTraces)
The test set has finished.void
testSetStarting(TestSetReportEntry reportEntry, boolean trimStackTraces)
The test set has started.void
testSkipped(ReportEntry reportEntry, boolean trimStackTraces)
The test is skipped.void
testStarting(ReportEntry reportEntry, boolean trimStackTraces)
The test has started.void
testSucceeded(ReportEntry reportEntry, boolean trimStackTraces)
The test has succeeded.
-
-
-
Method Detail
-
checkError
boolean checkError()
- Returns:
true
if the encoder's stream has got an error
-
onJvmExit
void onJvmExit()
Called on JVM exit error.
-
testSetStarting
void testSetStarting(TestSetReportEntry reportEntry, boolean trimStackTraces)
The test set has started.- Parameters:
reportEntry
- test set report entrytrimStackTraces
-true
if stack trace trimming
-
testSetCompleted
void testSetCompleted(TestSetReportEntry reportEntry, boolean trimStackTraces)
The test set has finished.- Parameters:
reportEntry
- test set report entrytrimStackTraces
-true
if stack trace trimming
-
testStarting
void testStarting(ReportEntry reportEntry, boolean trimStackTraces)
The test has started.- Parameters:
reportEntry
- test set report entrytrimStackTraces
-true
if stack trace trimming
-
testSucceeded
void testSucceeded(ReportEntry reportEntry, boolean trimStackTraces)
The test has succeeded.- Parameters:
reportEntry
- test set report entrytrimStackTraces
-true
if stack trace trimming
-
testFailed
void testFailed(ReportEntry reportEntry, boolean trimStackTraces)
The test has failed.- Parameters:
reportEntry
- test set report entrytrimStackTraces
-true
if stack trace trimming
-
testSkipped
void testSkipped(ReportEntry reportEntry, boolean trimStackTraces)
The test is skipped.- Parameters:
reportEntry
- test set report entrytrimStackTraces
-true
if stack trace trimming
-
testError
void testError(ReportEntry reportEntry, boolean trimStackTraces)
The test error.- Parameters:
reportEntry
- test set report entrytrimStackTraces
-true
if stack trace trimming
-
testAssumptionFailure
void testAssumptionFailure(ReportEntry reportEntry, boolean trimStackTraces)
The test assumption failure.- Parameters:
reportEntry
- test set report entrytrimStackTraces
-true
if stack trace trimming
-
testOutput
void testOutput(TestOutputReportEntry reportEntry)
Test output, a line or characters.- Parameters:
reportEntry
- std/out or std/err context
-
consoleInfoLog
void consoleInfoLog(String msg)
Info log.- Parameters:
msg
- message of info logger
-
consoleErrorLog
void consoleErrorLog(String msg)
Error log.- Parameters:
msg
- message of error logger
-
consoleErrorLog
void consoleErrorLog(Throwable t)
Error log.- Parameters:
t
- exception
-
consoleErrorLog
void consoleErrorLog(String msg, Throwable t)
Error log.- Parameters:
msg
- additional error messaget
- exception
-
consoleErrorLog
void consoleErrorLog(StackTraceWriter stackTraceWriter, boolean trimStackTraces)
Error log.- Parameters:
stackTraceWriter
- printable stack tracetrimStackTraces
-true
if selected trimmed stack trace to print into encoder channel/stream
-
consoleDebugLog
void consoleDebugLog(String msg)
Debug log.- Parameters:
msg
- message of debug logger
-
consoleWarningLog
void consoleWarningLog(String msg)
Warning log.- Parameters:
msg
- message of warning logger
-
bye
void bye()
Say BYE on exit. ForkBooter will consequently wait for BYE_ACK command which finally drains the (std/in) sink channel.
-
stopOnNextTest
void stopOnNextTest()
The provider wants to stop the progress.
-
acquireNextTest
void acquireNextTest()
The provider acquires a new test set to run.
-
sendExitError
void sendExitError(StackTraceWriter stackTraceWriter, boolean trimStackTraces)
ForkedBooter tear down has failed while waiting for BYE_ACK command.- Parameters:
stackTraceWriter
- printable stack tracetrimStackTraces
-true
if selected trimmed stack trace to print into encoder channel/stream
-
-