public static final TransConfiguration fromXML( String xml ) throws KettleException { Document document = XMLHandler.loadXMLString( xml ); Node configNode = XMLHandler.getSubNode( document, XML_TAG ); return new TransConfiguration( configNode ); }
@Override public synchronized void transformationDelegationStarted( Trans delegatedTrans, TransExecutionConfiguration transExecutionConfiguration ) { TransConfiguration tc = new TransConfiguration( delegatedTrans.getTransMeta(), transExecutionConfiguration ); transformationMap.registerTransformation( delegatedTrans, tc ); delegatedTrans.addDelegationListener( this ); }
TransConfiguration transConfiguration = new TransConfiguration( transMeta, transExecutionConfiguration );
(TransExecutionConfiguration) executionConfiguration.clone(); TransConfiguration transConfiguration = new TransConfiguration( slaveTrans, slaveTransExecutionConfiguration );
LogLevel logLevel = LogLevel.getLogLevelForCode( levelOption ); transExecutionConfiguration.setLogLevel( logLevel ); TransConfiguration transConfiguration = new TransConfiguration( transMeta, transExecutionConfiguration );
trans.getName(), carteObjectId, trans, new TransConfiguration( transMeta, executionConfiguration ) );
masterServer = transSplitter.getMasterServer(); if ( executionConfiguration.isClusterPosting() ) { TransConfiguration transConfiguration = new TransConfiguration( master, executionConfiguration ); Map<String, String> variables = transConfiguration.getTransExecutionConfiguration().getVariables(); variables.put( Const.INTERNAL_VARIABLE_CLUSTER_SIZE, Integer.toString( slaves.length ) );
LogLevel logLevel = LogLevel.getLogLevelForCode( levelOption ); transExecutionConfiguration.setLogLevel( logLevel ); TransConfiguration transConfiguration = new TransConfiguration( transMeta, transExecutionConfiguration );
String xml = new TransConfiguration( transMeta, executionConfiguration ).getXML(); String reply = slaveServer.sendXML( xml, RegisterTransServlet.CONTEXT_PATH + "/?xml=Y" ); WebResult webResult = WebResult.fromXMLString( reply );
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; }
TransMeta transMeta = loadTransMeta( this, rep, mapTrans, mapRepositoryReference, mapRepositoryDir, mapRepositoryFile ); TransConfiguration transConfig = new TransConfiguration( transMeta, transExecConfig ); String mapInputStepNameS = environmentSubstitute( mapInputStepName ); String mapOutputStepNameS = environmentSubstitute( mapOutputStepName ); transConfig = new TransConfiguration( transMeta, transExecConfig ); jobBuilder.setCombinerInfo( transConfig.getXML(), combinerInputStepNameS, combinerOutputStepNameS ); try { transConfig = new TransConfiguration( transMeta, transExecConfig ); jobBuilder.setReducerInfo( transConfig.getXML(), reduceInputStepNameS, reduceOutputStepNameS );