public class EtlContextImpl extends Object implements EtlContext
| Constructor and Description |
|---|
EtlContextImpl(InfoLogger infoLogger,
String scenarioName,
String blockName,
String taskName)
Instantiates a new etl context.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addException(Throwable ex)
Adds the exception to the log of all hanlded exceptions.
|
String |
getBlockName()
Gets the block name.
|
String |
getContext()
Gets the context.
|
Throwable |
getLastException()
Gets the last exception.
|
String |
getScenarioName()
Gets the scenario name.
|
String |
getTaskName()
Gets the task name.
|
void |
log(String info)
Log the information.
|
void |
setLastException(Throwable ex)
Sets the last exception.
|
public EtlContextImpl(InfoLogger infoLogger, String scenarioName, String blockName, String taskName)
infoLogger - the info loggerscenarioName - the scenario nameblockName - the block nametaskName - the task namepublic void log(String info)
InfoLoggerlog in interface InfoLoggerinfo - the informationpublic void setLastException(Throwable ex)
InfoLoggersetLastException in interface InfoLoggerex - the new last exceptionpublic void addException(Throwable ex)
InfoLoggeraddException in interface InfoLoggerex - Throwablepublic Throwable getLastException()
InfoLoggergetLastException in interface InfoLoggerpublic String getScenarioName()
EtlContextgetScenarioName in interface EtlContextpublic String getBlockName()
EtlContextgetBlockName in interface EtlContextpublic String getTaskName()
EtlContextgetTaskName in interface EtlContextpublic String getContext()
EtlContextgetContext in interface EtlContextCopyright © 2010-2020 Toolsverse. All Rights Reserved.