public TransConfiguration( Node configNode ) throws KettleException { Node trecNode = XMLHandler.getSubNode( configNode, TransExecutionConfiguration.XML_TAG ); transExecutionConfiguration = new TransExecutionConfiguration( trecNode ); Node transNode = XMLHandler.getSubNode( configNode, TransMeta.XML_TAG ); transMeta = new TransMeta( transNode, transExecutionConfiguration.getRepository() ); }
getConfigNodeFromZIP( archiveUrl, Trans.CONFIGURATION_IN_EXPORT_FILENAME, TransExecutionConfiguration.XML_TAG ); TransExecutionConfiguration transExecutionConfiguration = new TransExecutionConfiguration( node );
@Test public void testDefaultPassedBatchId() { TransExecutionConfiguration tec = new TransExecutionConfiguration(); assertEquals( "default passedBatchId value must be null", null, tec.getPassedBatchId() ); }
TransExecutionConfiguration transExecutionConfiguration = new TransExecutionConfiguration(); LogLevel logLevel = LogLevel.getLogLevelForCode( levelOption ); transExecutionConfiguration.setLogLevel( logLevel );
Document configDoc = XMLHandler.loadXMLFile( configUrl ); TransExecutionConfiguration executionConfiguration = new TransExecutionConfiguration( XMLHandler.getSubNode( configDoc, TransExecutionConfiguration.XML_TAG ) );
@Test public void testConnectRepository() throws KettleException { TransExecutionConfiguration transExecConf = new TransExecutionConfiguration(); final RepositoriesMeta repositoriesMeta = mock( RepositoriesMeta.class ); final RepositoryMeta repositoryMeta = mock( RepositoryMeta.class );
jet.setFollowingAbortRemotely( wFollowingAbortRemotely.getSelection() ); TransExecutionConfiguration executionConfiguration = new TransExecutionConfiguration(); executionConfiguration.setRunConfiguration( jet.getRunConfiguration() ); try {
TransExecutionConfiguration transExecutionConfiguration = new TransExecutionConfiguration(); LogLevel logLevel = LogLevel.getLogLevelForCode( levelOption ); transExecutionConfiguration.setLogLevel( logLevel );
@Test public void testCopyXml() throws Exception { TransExecutionConfiguration tec = new TransExecutionConfiguration(); final Long passedBatchId0 = null; final long passedBatchId1 = 0L; Document doc = XMLHandler.loadXMLString( xml ); Node node = XMLHandler.getSubNode( doc, TransExecutionConfiguration.XML_TAG ); TransExecutionConfiguration tecCopy = new TransExecutionConfiguration( node ); assertEquals( "xml-copy", tec.getPassedBatchId(), tecCopy.getPassedBatchId() ); Document doc = XMLHandler.loadXMLString( xml ); Node node = XMLHandler.getSubNode( doc, TransExecutionConfiguration.XML_TAG ); TransExecutionConfiguration tecCopy = new TransExecutionConfiguration( node ); assertEquals( "xml-copy", tec.getPassedBatchId(), tecCopy.getPassedBatchId() ); Document doc = XMLHandler.loadXMLString( xml ); Node node = XMLHandler.getSubNode( doc, TransExecutionConfiguration.XML_TAG ); TransExecutionConfiguration tecCopy = new TransExecutionConfiguration( node ); assertEquals( "xml-copy", tec.getPassedBatchId(), tecCopy.getPassedBatchId() );
delegationListener.transformationDelegationStarted( executorTrans, new TransExecutionConfiguration() );
transExecutionConfiguration = new TransExecutionConfiguration(); transExecutionConfiguration.setGatheringMetrics( true ); transPreviewExecutionConfiguration = new TransExecutionConfiguration(); transPreviewExecutionConfiguration.setGatheringMetrics( true ); transDebugExecutionConfiguration = new TransExecutionConfiguration(); transDebugExecutionConfiguration.setGatheringMetrics( true );
@Test public void testCopy() { TransExecutionConfiguration tec = new TransExecutionConfiguration(); tec.setPassedBatchId( null ); //CHECKSTYLE IGNORE AvoidNestedBlocks FOR NEXT 3 LINES { TransExecutionConfiguration tecCopy = (TransExecutionConfiguration) tec.clone(); assertEquals( "clone-copy", tec.getPassedBatchId(), tecCopy.getPassedBatchId() ); } tec.setPassedBatchId( 0L ); //CHECKSTYLE IGNORE AvoidNestedBlocks FOR NEXT 3 LINES { TransExecutionConfiguration tecCopy = (TransExecutionConfiguration) tec.clone(); assertEquals( "clone-copy", tec.getPassedBatchId(), tecCopy.getPassedBatchId() ); } tec.setPassedBatchId( 5L ); //CHECKSTYLE IGNORE AvoidNestedBlocks FOR NEXT 3 LINES { TransExecutionConfiguration tecCopy = (TransExecutionConfiguration) tec.clone(); assertEquals( "clone-copy", tec.getPassedBatchId(), tecCopy.getPassedBatchId() ); } }
boolean doFallback = true; SlaveServer remoteSlaveServer = null; TransExecutionConfiguration executionConfiguration = new TransExecutionConfiguration(); if ( !Utils.isEmpty( runConfiguration ) ) { runConfiguration = environmentSubstitute( runConfiguration ); delegationListener.transformationDelegationStarted( trans, new TransExecutionConfiguration() );
public static String buildTransConfig( String transname ) throws Exception { String xml = null; KettleEnvironment.init(); TransMeta tm = new TransMeta( transname ); TransConfiguration tc = new TransConfiguration( tm, new TransExecutionConfiguration() ); xml = tc.getXML(); return xml; }
TransExecutionConfiguration transExecConfig = new TransExecutionConfiguration(); TransMeta transMeta = loadTransMeta( this, rep, mapTrans, mapRepositoryReference, mapRepositoryDir, mapRepositoryFile );