Search in sources :

Example 16 with ChannelLogTable

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);
    }
}
Also used : LogTableInterface(org.pentaho.di.core.logging.LogTableInterface) JobLogTable(org.pentaho.di.core.logging.JobLogTable) ChannelLogTable(org.pentaho.di.core.logging.ChannelLogTable) JobEntryLogTable(org.pentaho.di.core.logging.JobEntryLogTable)

Example 17 with ChannelLogTable

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);
    }
}
Also used : PerformanceLogTable(org.pentaho.di.core.logging.PerformanceLogTable) MetricsLogTable(org.pentaho.di.core.logging.MetricsLogTable) ChannelLogTable(org.pentaho.di.core.logging.ChannelLogTable) StepLogTable(org.pentaho.di.core.logging.StepLogTable) TransLogTable(org.pentaho.di.core.logging.TransLogTable)

Aggregations

ChannelLogTable (org.pentaho.di.core.logging.ChannelLogTable)17 JobEntryLogTable (org.pentaho.di.core.logging.JobEntryLogTable)8 JobLogTable (org.pentaho.di.core.logging.JobLogTable)8 PerformanceLogTable (org.pentaho.di.core.logging.PerformanceLogTable)6 StepLogTable (org.pentaho.di.core.logging.StepLogTable)6 TransLogTable (org.pentaho.di.core.logging.TransLogTable)6 KettleDatabaseException (org.pentaho.di.core.exception.KettleDatabaseException)4 KettleException (org.pentaho.di.core.exception.KettleException)4 KettleValueException (org.pentaho.di.core.exception.KettleValueException)4 LogTableInterface (org.pentaho.di.core.logging.LogTableInterface)4 MetricsLogTable (org.pentaho.di.core.logging.MetricsLogTable)4 DuplicateParamException (org.pentaho.di.core.parameters.DuplicateParamException)4 UnknownParamException (org.pentaho.di.core.parameters.UnknownParamException)4 Test (org.junit.Test)3 Database (org.pentaho.di.core.database.Database)3 DatabaseMeta (org.pentaho.di.core.database.DatabaseMeta)3 UnsupportedEncodingException (java.io.UnsupportedEncodingException)2 Timer (java.util.Timer)2 TimerTask (java.util.TimerTask)2 KettleFileException (org.pentaho.di.core.exception.KettleFileException)2