public interface ExecutionContext
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getAttribute(java.lang.String name)
Returns the execution context attribute with the given name, or null if there is no attribute by that name.
|
InspectionContext |
getInspectionContext() |
Repository |
getRepository()
Returns the repository where all the ConfigurationItems known in XL Deploy are stored.
|
ITask |
getTask()
Returns the task of the current execution context.
|
void |
logError(java.lang.String error)
Logs a line of error output.
|
void |
logError(java.lang.String error,
java.lang.Throwable t)
Logs a line and an exception to the error output .
|
void |
logOutput(java.lang.String output)
Logs a line of output.
|
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Stores an attribute in the execution context.
|
void logOutput(java.lang.String output)
standard output stream
.output
- the log line to be written.void logError(java.lang.String error)
standard error stream
.error
- the error line to be written.void logError(java.lang.String error, java.lang.Throwable t)
error
- the error to be written.t
- the exception to be logged toojava.lang.Object getAttribute(java.lang.String name)
name
- the name of the attributevoid setAttribute(java.lang.String name, java.lang.Object value)
name
- the name of the attributevalue
- the value of the attributeRepository getRepository()
InspectionContext getInspectionContext()
ITask getTask()