Package org.pentaho.di.pan.executors
Class ClusteredTransExecutorService
java.lang.Object
org.pentaho.di.pan.executors.ClusteredTransExecutorService
- All Implemented Interfaces:
TransExecutorService
Service for executing transformations in clustered mode.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor that initializes the service with a new TransSplitterExecutionService instance.ClusteredTransExecutorService(TransSplitterExecutionService transSplitterExecutionService) Constructor that allows injecting a custom TransSplitterExecutionService instance. -
Method Summary
Modifier and TypeMethodDescriptionorg.pentaho.di.core.Resultexecute(org.pentaho.di.core.logging.LogChannelInterface extLog, TransMeta transMeta, Repository repository, TransExecutionConfiguration executionConfiguration, String[] arguments) Executes a transformation in clustered mode.protected org.pentaho.di.core.ResultexecuteClustered(org.pentaho.di.core.logging.LogChannelInterface extLog, TransMeta transMeta, TransSplitter transSplitter, TransExecutionConfiguration executionConfiguration) Executes a transformation in clustered mode using the provided TransSplitter and execution configuration.protected voidlogClusteredResults(org.pentaho.di.core.logging.LogChannelInterface log, TransMeta transMeta, org.pentaho.di.core.Result result) Logs the results of a clustered transformation execution.
-
Constructor Details
-
ClusteredTransExecutorService
public ClusteredTransExecutorService()Default constructor that initializes the service with a new TransSplitterExecutionService instance. -
ClusteredTransExecutorService
Constructor that allows injecting a custom TransSplitterExecutionService instance.- Parameters:
transSplitterExecutionService- the TransSplitterExecutionService to use
-
-
Method Details
-
execute
public org.pentaho.di.core.Result execute(org.pentaho.di.core.logging.LogChannelInterface extLog, TransMeta transMeta, Repository repository, TransExecutionConfiguration executionConfiguration, String[] arguments) throws org.pentaho.di.core.exception.KettleException Executes a transformation in clustered mode.- Specified by:
executein interfaceTransExecutorService- Parameters:
extLog- the log channel interface for loggingtransMeta- the transformation metadatarepository- the repository (can be null)executionConfiguration- the execution configurationarguments- the command-line arguments- Returns:
- the result of the transformation execution
- Throws:
org.pentaho.di.core.exception.KettleException- if an error occurs during execution
-
executeClustered
protected org.pentaho.di.core.Result executeClustered(org.pentaho.di.core.logging.LogChannelInterface extLog, TransMeta transMeta, TransSplitter transSplitter, TransExecutionConfiguration executionConfiguration) throws org.pentaho.di.core.exception.KettleException Executes a transformation in clustered mode using the provided TransSplitter and execution configuration.- Parameters:
extLog- the log channel interface for loggingtransMeta- the transformation metadatatransSplitter- the TransSplitter instance for splitting the transformationexecutionConfiguration- the execution configuration- Returns:
- the result of the clustered transformation execution
- Throws:
org.pentaho.di.core.exception.KettleException- if an error occurs during execution
-
logClusteredResults
protected void logClusteredResults(org.pentaho.di.core.logging.LogChannelInterface log, TransMeta transMeta, org.pentaho.di.core.Result result) Logs the results of a clustered transformation execution.- Parameters:
log- the log channel interface for loggingtransMeta- the transformation metadataresult- the result of the transformation execution
-