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)
InfoLogger
log
in interface InfoLogger
info
- the informationpublic void setLastException(Throwable ex)
InfoLogger
setLastException
in interface InfoLogger
ex
- the new last exceptionpublic void addException(Throwable ex)
InfoLogger
addException
in interface InfoLogger
ex
- Throwablepublic Throwable getLastException()
InfoLogger
getLastException
in interface InfoLogger
public String getScenarioName()
EtlContext
getScenarioName
in interface EtlContext
public String getBlockName()
EtlContext
getBlockName
in interface EtlContext
public String getTaskName()
EtlContext
getTaskName
in interface EtlContext
public String getContext()
EtlContext
getContext
in interface EtlContext
Copyright © 2010-2020 Toolsverse. All Rights Reserved.