use of org.pentaho.di.trans.TransExecutionConfiguration in project pentaho-kettle by pentaho.
the class PartitioningIT method testClusteringWithPartitioningOnMaster.
/**
* See PDI-12766
*
* @throws Exception
*/
public void testClusteringWithPartitioningOnMaster() throws Exception {
init();
ClusterGenerator clusterGenerator = new ClusterGenerator();
LogChannel log = new LogChannel("cluster unit test <test-partitioning-on-master-and-clustering>");
try {
clusterGenerator.launchSlaveServers();
TransMeta transMeta = loadAndModifyTestTransformation(clusterGenerator, "src/it/resources/org/pentaho/di/cluster/test-partitioning-on-master-and-clustering.ktr");
TransExecutionConfiguration config = createClusteredTransExecutionConfiguration();
TransSplitter transSplitter = Trans.executeClustered(transMeta, config);
long nrErrors = Trans.monitorClusteredTransformation(log, transSplitter, null);
assertEquals(0L, nrErrors);
} catch (Exception e) {
e.printStackTrace();
fail(e.toString());
} finally {
try {
clusterGenerator.stopSlaveServers();
} catch (Exception e) {
e.printStackTrace();
fail(e.toString());
}
}
}
use of org.pentaho.di.trans.TransExecutionConfiguration in project pdi-dataservice-server-plugin by pentaho.
the class TransDataServlet method monitorTransformation.
private void monitorTransformation(Trans trans) {
TransMeta transMeta = trans.getTransMeta();
TransExecutionConfiguration executionConfiguration = new TransExecutionConfiguration();
TransConfiguration config = new TransConfiguration(transMeta, executionConfiguration);
transformationMap.addTransformation(transMeta.getName(), trans.getContainerObjectId(), trans, config);
}
Aggregations