public class StreamExecutionListener extends java.lang.Object implements ExecutionListener
| Constructor and Description |
|---|
StreamExecutionListener()
Create a listener that sends messages to the standard output.
|
StreamExecutionListener(java.io.OutputStream out)
Create a listener that sends messages to the given output stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
executionError(Manager manager,
java.lang.Throwable throwable)
Report an execution failure by printing a message to output
stream specified to the constructor.
|
void |
executionFinished(Manager manager)
Report that the current execution finished by printing a
message to output stream specified to the constructor.
|
void |
managerStateChanged(Manager manager)
Report that the manager has changed state by printing a
message to output stream specified to the constructor.
|
public StreamExecutionListener()
public StreamExecutionListener(java.io.OutputStream out)
out - The output stream to send the messages to.public void executionError(Manager manager, java.lang.Throwable throwable)
executionError in interface ExecutionListenermanager - The manager controlling the execution.throwable - The throwable to report.public void executionFinished(Manager manager)
executionFinished in interface ExecutionListenermanager - The manager controlling the execution.public void managerStateChanged(Manager manager)
managerStateChanged in interface ExecutionListenermanager - The manager controlling the execution.Manager.getState()