use of org.pentaho.di.core.logging.ChannelLogTable in project pentaho-kettle by pentaho.
the class Spoon method saveJobAsXmlFile.
private boolean saveJobAsXmlFile(JobMeta jobMeta, boolean export) {
JobLogTable origJobLogTable = jobMeta.getJobLogTable();
JobEntryLogTable originEntryLogTable = jobMeta.getJobEntryLogTable();
ChannelLogTable originChannelLogTable = jobMeta.getChannelLogTable();
List<LogTableInterface> originExtraLogTables = jobMeta.getExtraLogTables();
try {
XmlExportHelper.swapTables(jobMeta);
return saveXMLFile(jobMeta, export);
} finally {
jobMeta.setJobLogTable(origJobLogTable);
jobMeta.setJobEntryLogTable(originEntryLogTable);
jobMeta.setChannelLogTable(originChannelLogTable);
jobMeta.setExtraLogTables(originExtraLogTables);
}
}
use of org.pentaho.di.core.logging.ChannelLogTable in project pentaho-kettle by pentaho.
the class Spoon method saveTransAsXmlFile.
private boolean saveTransAsXmlFile(TransMeta transMeta, boolean export) {
TransLogTable origTransLogTable = transMeta.getTransLogTable();
StepLogTable origStepLogTable = transMeta.getStepLogTable();
PerformanceLogTable origPerformanceLogTable = transMeta.getPerformanceLogTable();
ChannelLogTable origChannelLogTable = transMeta.getChannelLogTable();
MetricsLogTable origMetricsLogTable = transMeta.getMetricsLogTable();
try {
XmlExportHelper.swapTables(transMeta);
return saveXMLFile(transMeta, export);
} finally {
transMeta.setTransLogTable(origTransLogTable);
transMeta.setStepLogTable(origStepLogTable);
transMeta.setPerformanceLogTable(origPerformanceLogTable);
transMeta.setChannelLogTable(origChannelLogTable);
transMeta.setMetricsLogTable(origMetricsLogTable);
}
}
Aggregations