Search in sources :

Example 1 with DefaultTransWiring

use of org.pentaho.di.trans.dataservice.execution.DefaultTransWiring in project pdi-dataservice-server-plugin by pentaho.

the class DataServiceExecutor method prepareExecution.

protected void prepareExecution() throws KettleException {
    // Setup executor with streaming execution plan
    ImmutableMultimap.Builder<ExecutionPoint, Runnable> builder = ImmutableMultimap.builder();
    builder.putAll(ExecutionPoint.PREPARE, new CopyParameters(parameters, serviceTrans), new PrepareExecution(serviceTrans));
    if (!service.isStreaming()) {
        builder.put(ExecutionPoint.PREPARE, new PrepareExecution(genTrans));
        builder.putAll(ExecutionPoint.READY, new DefaultTransWiring(this));
        builder.putAll(ExecutionPoint.START, new TransStarter(genTrans), new TransStarter(serviceTrans));
    }
    listenerMap.putAll(builder.build());
}
Also used : CopyParameters(org.pentaho.di.trans.dataservice.execution.CopyParameters) ImmutableMultimap(com.google.common.collect.ImmutableMultimap) PrepareExecution(org.pentaho.di.trans.dataservice.execution.PrepareExecution) DefaultTransWiring(org.pentaho.di.trans.dataservice.execution.DefaultTransWiring) TransStarter(org.pentaho.di.trans.dataservice.execution.TransStarter)

Aggregations

ImmutableMultimap (com.google.common.collect.ImmutableMultimap)1 CopyParameters (org.pentaho.di.trans.dataservice.execution.CopyParameters)1 DefaultTransWiring (org.pentaho.di.trans.dataservice.execution.DefaultTransWiring)1 PrepareExecution (org.pentaho.di.trans.dataservice.execution.PrepareExecution)1 TransStarter (org.pentaho.di.trans.dataservice.execution.TransStarter)1