trans.setReplayDate( executionConfiguration.getReplayDate() ); trans.setSafeModeEnabled( executionConfiguration.isSafeModeEnabled() ); trans.setGatheringMetrics( executionConfiguration.isGatheringMetrics() ); trans.injectVariables( executionConfiguration.getVariables() ); trans.setPreviousResult( executionConfiguration.getPreviousResult() );
trans.setReplayDate( executionConfiguration.getReplayDate() ); trans.setSafeModeEnabled( executionConfiguration.isSafeModeEnabled() ); trans.setGatheringMetrics( executionConfiguration.isGatheringMetrics() ); trans.injectVariables( executionConfiguration.getVariables() ); trans.setPreviousResult( executionConfiguration.getPreviousResult() );
@GET @Path( "/prepare/{id : .+}" ) @Produces( { MediaType.APPLICATION_JSON } ) public TransformationStatus prepareTransformation( @PathParam( "id" ) String id ) { Trans trans = CarteResource.getTransformation( id ); try { CarteObjectEntry entry = CarteResource.getCarteObjectEntry( id ); TransConfiguration transConfiguration = CarteSingleton.getInstance().getTransformationMap().getConfiguration( entry ); TransExecutionConfiguration executionConfiguration = transConfiguration.getTransExecutionConfiguration(); // Set the appropriate logging, variables, arguments, replay date, ... // etc. trans.setArguments( executionConfiguration.getArgumentStrings() ); trans.setReplayDate( executionConfiguration.getReplayDate() ); trans.setSafeModeEnabled( executionConfiguration.isSafeModeEnabled() ); trans.setGatheringMetrics( executionConfiguration.isGatheringMetrics() ); trans.injectVariables( executionConfiguration.getVariables() ); trans.setPreviousResult( executionConfiguration.getPreviousResult() ); trans.prepareExecution( null ); } catch ( KettleException e ) { e.printStackTrace(); } return getTransformationStatus( id ); }
trans.setGatheringMetrics( isEnabled( metrics ) ); // enable kettle metric gathering if requested
trans.setSafeModeEnabled( executionConfiguration.isSafeModeEnabled() ); trans.setPreview( true ); trans.setGatheringMetrics( executionConfiguration.isGatheringMetrics() ); trans.setMetaStore( spoon.getMetaStore() ); trans.prepareExecution( args );
trans.setGatheringMetrics( executionConfiguration.isGatheringMetrics() );
simpleMappingData.mappingTrans.setGatheringMetrics( getTrans().isGatheringMetrics() );
void initTransFromMeta() throws KettleException { // Create the transformation from meta-data... // getData().setMappingTrans( new Trans( getData().mappingTransMeta, this ) ); if ( getData().mappingTransMeta.getTransformationType() != TransformationType.Normal ) { getData().getMappingTrans().getTransMeta().setUsingThreadPriorityManagment( false ); } // Leave a path up so that we can set variables in sub-transformations... // getData().getMappingTrans().setParentTrans( getTrans() ); // Pass down the safe mode flag to the mapping... // getData().getMappingTrans().setSafeModeEnabled( getTrans().isSafeModeEnabled() ); // Pass down the metrics gathering flag: // getData().getMappingTrans().setGatheringMetrics( getTrans().isGatheringMetrics() ); // Also set the name of this step in the mapping transformation for logging // purposes // getData().getMappingTrans().setMappingStepName( getStepname() ); initServletConfig(); // Set the parameters values in the mapping. // MappingParameters mappingParameters = meta.getMappingParameters(); if ( mappingParameters != null ) { StepWithMappingMeta .activateParams( data.mappingTrans, data.mappingTrans, this, data.mappingTransMeta.listParameters(), mappingParameters.getVariable(), mappingParameters.getInputField() ); } }
singleThreaderData.mappingTrans.setGatheringMetrics( getTrans().isGatheringMetrics() );