|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.massimo.tools.scriptrunner.context.AbstractExecutionContext
public abstract class AbstractExecutionContext
Abstract base class for ExecutionContext implementations.
| Field Summary | |
|---|---|
protected Exception |
lastException
The last exception, as saved by a Task |
protected String |
runId
The current run identifier |
| Constructor Summary | |
|---|---|
protected |
AbstractExecutionContext()
Constructor |
| Method Summary | |
|---|---|
protected abstract String |
generateRunIdentifier(Map<String,String> properties)
|
Exception |
getLastException()
Exception that caused Task failure |
protected abstract org.apache.log4j.Logger |
getLogger()
|
String |
getRunIdentifier(Map<String,String> properties)
If the runId is not set, look for a run identifier in properties. |
void |
log(String taskName,
int log_code,
String message)
Log informational messages |
void |
setLastException(Exception lastException)
Exception that caused Task failure |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.massimo.tools.scriptrunner.context.ExecutionContext |
|---|
finished, isFinished, log, progress, start |
| Field Detail |
|---|
protected Exception lastException
protected String runId
| Constructor Detail |
|---|
protected AbstractExecutionContext()
| Method Detail |
|---|
protected abstract String generateRunIdentifier(Map<String,String> properties)
throws SRException
properties -
SRExceptionpublic Exception getLastException()
getLastException in interface ExecutionContextprotected abstract org.apache.log4j.Logger getLogger()
public String getRunIdentifier(Map<String,String> properties)
throws SRException
getRunIdentifier in interface ExecutionContextproperties -
SRException - if unable to find or generate a run identifier
public void log(String taskName,
int log_code,
String message)
throws SRException
log in interface ExecutionContextlog_code - The Task constants or an error code
SRExceptionpublic void setLastException(Exception lastException)
setLastException in interface ExecutionContextpublic String toString()
toString in class ObjectObject.toString()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||