| 
 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface ExecutionContext
Task implementations use the ExecutionContext to:
| Method Summary | |
|---|---|
|  void | finished(String taskName,
         int lastStepProcessed)Audit trail: record successful finish of Task execution | 
|  Exception | getLastException()Exception that caused Task failure | 
|  String | getRunIdentifier(Map<String,String> properties)Find or create the run identifier. | 
|  boolean | isFinished(String taskName)Audit trail: check whether Task has already been executed in this run | 
|  void | log(String taskName,
    int log_code,
    String message)Log informational messages | 
|  void | log(String taskName,
    int log_code,
    String message,
    int lastStepProcessed,
    String key)Log informational messages | 
|  void | progress(String taskName,
         int lastStepProcessed,
         String key)Audit trail: Task has finished executing its lastStepProcessed step | 
|  void | setLastException(Exception lastException)Exception that caused Task failure | 
|  int | start(String taskName)Audit trail: start Task execution | 
| Method Detail | 
|---|
void finished(String taskName,
              int lastStepProcessed)
              throws SRException
taskName - lastStepProcessed - 
SRExceptionException getLastException()
String getRunIdentifier(Map<String,String> properties)
                        throws SRException
properties - 
SRException - if unable to find or generate a run identifier
boolean isFinished(String taskName)
                   throws SRException
taskName - 
SRException
void log(String taskName,
         int log_code,
         String message)
         throws SRException
taskName - log_code - The Task constants or an error codemessage - 
SRException
void log(String taskName,
         int log_code,
         String message,
         int lastStepProcessed,
         String key)
         throws SRException
taskName - log_code - The Task constants or an error codemessage - lastStepProcessed - key - A identifier for the last step, e.g. a database row's primary key value. May be empty.
SRException
void progress(String taskName,
              int lastStepProcessed,
              String key)
              throws SRException
taskName - lastStepProcessed - On re-start, this value will returned by start(String)key - A identifier for the last step, e.g. a database row's primary key value. May be empty.
SRExceptionvoid setLastException(Exception lastException)
lastException - 
int start(String taskName)
          throws SRException
taskName - 
SRException| 
 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||