use of org.pentaho.di.core.logging.PerformanceLogTable in project pentaho-kettle by pentaho.
the class SpoonExportXmlTest method initTables.
private void initTables(TransMeta transMeta) {
TransLogTable transLogTable = TransLogTable.getDefault(mockedVariableSpace, mockedHasDbInterface, null);
initTableWithSampleParams(transLogTable);
transLogTable.setLogInterval(GLOBAL_PARAM);
transLogTable.setLogSizeLimit(GLOBAL_PARAM);
transMeta.setTransLogTable(transLogTable);
StepLogTable stepLogTable = StepLogTable.getDefault(mockedVariableSpace, mockedHasDbInterface);
initTableWithSampleParams(stepLogTable);
transMeta.setStepLogTable(stepLogTable);
PerformanceLogTable performanceLogTable = PerformanceLogTable.getDefault(mockedVariableSpace, mockedHasDbInterface);
initTableWithSampleParams(performanceLogTable);
performanceLogTable.setLogInterval(GLOBAL_PARAM);
transMeta.setPerformanceLogTable(performanceLogTable);
ChannelLogTable channelLogTable = ChannelLogTable.getDefault(mockedVariableSpace, mockedHasDbInterface);
initTableWithSampleParams(channelLogTable);
transMeta.setChannelLogTable(channelLogTable);
MetricsLogTable metricsLogTable = MetricsLogTable.getDefault(mockedVariableSpace, mockedHasDbInterface);
initTableWithSampleParams(metricsLogTable);
transMeta.setMetricsLogTable(metricsLogTable);
}
use of org.pentaho.di.core.logging.PerformanceLogTable 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