public void executeTransformation() { executeTransformation( getActiveTransformation(), true, false, false, false, false, transExecutionConfiguration.getReplayDate(), false, transExecutionConfiguration.getLogLevel() ); }
public void previewTransformation() { executeTransformation( getActiveTransformation(), true, false, false, true, false, transDebugExecutionConfiguration .getReplayDate(), true, transDebugExecutionConfiguration.getLogLevel() ); }
public void debugTransformation() { executeTransformation( getActiveTransformation(), true, false, false, false, true, transPreviewExecutionConfiguration .getReplayDate(), true, transPreviewExecutionConfiguration.getLogLevel() ); }
/** * Public for XUL. */ public void replayHistory() { TransHistoryLogTab model = models[tabFolder.getSelectionIndex()]; int idx = model.logDisplayTableView.getSelectionIndex(); if ( idx >= 0 ) { String[] fields = model.logDisplayTableView.getItem( idx ); String dateString = fields[13]; Date replayDate = XMLHandler.stringToDate( dateString ); spoon.executeTransformation( transGraph.getManagedObject(), true, false, false, false, false, replayDate, false, spoon.getTransExecutionConfiguration().getLogLevel() ); } }
public void executeFile( boolean local, boolean remote, boolean cluster, boolean preview, boolean debug, Date replayDate, boolean safe, boolean show ) { TransMeta transMeta = getActiveTransformation(); if ( transMeta != null ) { transMeta.setShowDialog( show || transMeta.isAlwaysShowRunOptions() ); executeTransformation( transMeta, local, remote, cluster, preview, debug, replayDate, safe, transExecutionConfiguration.getLogLevel() ); } JobMeta jobMeta = getActiveJob(); if ( jobMeta != null ) { jobMeta.setShowDialog( show || jobMeta.isAlwaysShowRunOptions() ); executeJob( jobMeta, local, remote, replayDate, safe, null, 0 ); } }
TransMeta transMeta = transConfiguration.getTransMeta(); transExecutionConfiguration = transConfiguration.getTransExecutionConfiguration(); transMeta.setLogLevel( transExecutionConfiguration.getLogLevel() ); if ( log.isDetailed() ) { logDetailed( "Logging level set to " + log.getLogLevel().getDescription() ); new SimpleLoggingObject( CONTEXT_PATH, LoggingObjectType.CARTE, null ); servletLoggingObject.setContainerObjectId( carteObjectId ); servletLoggingObject.setLogLevel( transExecutionConfiguration.getLogLevel() );
TransExecutionConfiguration transExecutionConfiguration = transConfiguration.getTransExecutionConfiguration(); transMeta.setLogLevel( transExecutionConfiguration.getLogLevel() ); LogChannelInterface log = CarteSingleton.getInstance().getLog(); if ( log.isDetailed() ) { new SimpleLoggingObject( getClass().getName(), LoggingObjectType.CARTE, null ); servletLoggingObject.setContainerObjectId( carteObjectId ); servletLoggingObject.setLogLevel( executionConfiguration.getLogLevel() );
servletLoggingObject.setLogLevel( executionConfiguration.getLogLevel() );
slaveServer.injectVariables( executionConfiguration.getVariables() ); slaveServer.getLogChannel().setLogLevel( executionConfiguration.getLogLevel() );
DefaultLogLevel.setLogLevel( executionConfiguration.getLogLevel() ); SimpleLoggingObject spoonLoggingObject = new SimpleLoggingObject( "SPOON", LoggingObjectType.SPOON, null ); spoonLoggingObject.setContainerObjectId( spoonLogObjectId ); spoonLoggingObject.setLogLevel( executionConfiguration.getLogLevel() ); trans.setParent( spoonLoggingObject ); trans.setLogLevel( executionConfiguration.getLogLevel() ); trans.setReplayDate( executionConfiguration.getReplayDate() ); trans.setRepository( executionConfiguration.getRepository() );
protected Trans createTrans( TransConfiguration transConfiguration ) throws UnknownParamException { TransMeta transMeta = transConfiguration.getTransMeta(); TransExecutionConfiguration transExecutionConfiguration = transConfiguration.getTransExecutionConfiguration(); transMeta.setLogLevel( transExecutionConfiguration.getLogLevel() ); transMeta.injectVariables( transExecutionConfiguration.getVariables() ); getServletLogging( carteObjectId, transExecutionConfiguration.getLogLevel() );
if ( executionConfiguration.getLogLevel() != null ) { transMeta.setLogLevel( executionConfiguration.getLogLevel() );
this.lastTransDebugMeta = transDebugMeta; log.setLogLevel( executionConfiguration.getLogLevel() ); if ( log.isDetailed() ) { log.logDetailed( BaseMessages.getString( PKG, "TransLog.Log.DoPreview" ) );
public static Trans getTrans( final Configuration conf, final String transXml, boolean singleThreaded ) throws KettleException { initKettleEnvironment( conf ); TransConfiguration transConfiguration = TransConfiguration.fromXML( transXml ); TransMeta transMeta = transConfiguration.getTransMeta(); String carteObjectId = UUID.randomUUID().toString(); SimpleLoggingObject servletLoggingObject = new SimpleLoggingObject( "HADOOP_MAPPER", LoggingObjectType.CARTE, null ); //$NON-NLS-1$ servletLoggingObject.setContainerObjectId( carteObjectId ); TransExecutionConfiguration executionConfiguration = transConfiguration.getTransExecutionConfiguration(); servletLoggingObject.setLogLevel( executionConfiguration.getLogLevel() ); if ( singleThreaded ) { // Set the type to single threaded in case the user forgot... // transMeta.setTransformationType( TransformationType.SingleThreaded ); // Disable thread priority management as it will slow things down needlessly. // The single threaded engine doesn't use threads and doesn't need row locking. // transMeta.setUsingThreadPriorityManagment( false ); } else { transMeta.setTransformationType( TransformationType.Normal ); } return new Trans( transMeta, servletLoggingObject ); }