com.exoftware.exactor
Interface ExecutionSetListener


public interface ExecutionSetListener

A listener for script execution events.

Author:
Brian Swan

Method Summary
 void commandEnded(Command c, java.lang.Throwable t)
          Notify the listener that a command has ended, possibly in error.
 void commandStarted(Command c)
          Notify the listener that a command has started.
 void executionSetEnded(ExecutionSet es)
          Notify the listener that the executionSet has ended.
 void executionSetStarted(ExecutionSet es)
          Notify the listener that the executionSet has started.
 void scriptEnded(Script s)
          Notify the listener that a script has ended.
 void scriptStarted(Script s)
          Notify the listener that a script has started.
 

Method Detail

executionSetStarted

public void executionSetStarted(ExecutionSet es)
Notify the listener that the executionSet has started.

Parameters:
es - the started execution set.

executionSetEnded

public void executionSetEnded(ExecutionSet es)
Notify the listener that the executionSet has ended.

Parameters:
es - the ended execution set.

scriptStarted

public void scriptStarted(Script s)
Notify the listener that a script has started.

Parameters:
s - the started script.

scriptEnded

public void scriptEnded(Script s)
Notify the listener that a script has ended.

Parameters:
s - the ended script.

commandStarted

public void commandStarted(Command c)
Notify the listener that a command has started.

Parameters:
c - the started command.

commandEnded

public void commandEnded(Command c,
                         java.lang.Throwable t)
Notify the listener that a command has ended, possibly in error. If the command ended in error the supplied Throwable will be non null. If t is an instance of AssertionFailedError it indicates that the command perfomed as expected but a check was unsuccessful, otherwise t indicates the reason the command ended.

Parameters:
c - the ended command
t - the reason the command ended, or null.