public class TransEngineAdapter extends Trans
Modifier and Type | Field and Description |
---|---|
static String |
ANONYMOUS_PRINCIPAL |
static Map<LogLevel,org.pentaho.di.engine.api.reporting.LogLevel> |
LEVEL_MAP |
arguments, class_nr, CONFIGURATION_IN_EXPORT_FILENAME, containerObjectId, counters, log, logCommitSize, logLevel, metaStore, REPLAY_DATE_FORMAT, repository, resultFiles, resultRows, rowsets, STRING_FINISHED, STRING_FINISHED_WITH_ERRORS, STRING_HALTING, STRING_INITIALIZING, STRING_PAUSED, STRING_PREPARING, STRING_RUNNING, STRING_STOPPED, STRING_WAITING, transMeta, TYPE_DISP_1_1, TYPE_DISP_1_N, TYPE_DISP_N_1, TYPE_DISP_N_M, TYPE_DISP_N_N
Constructor and Description |
---|
TransEngineAdapter(org.pentaho.di.engine.api.Engine engine,
TransMeta transMeta) |
Modifier and Type | Method and Description |
---|---|
RowProducer |
addRowProducer(String stepname,
int copynr)
This adds a row producer to the transformation that just got set up.
|
void |
killAll()
Attempts to stops all running steps and subtransformations.
|
void |
prepareExecution(String[] arguments)
Prepares the transformation for execution.
|
void |
setLogLevel(LogLevel logLogLevel)
Sets the log level.
|
void |
startThreads()
Starts the threads prepared by prepareThreads().
|
void |
stopAll()
Stops all steps from running, and alerts any registered listeners.
|
void |
waitUntilFinished()
Waits until all RunThreads have finished.
|
activateParameters, addActiveSubTransformation, addDelegationListener, addParameterDefinition, addStepPerformanceSnapShot, addTransListener, addTransStoppedListener, beginProcessing, calculateBatchIdAndDateRange, calculateTransactionId, cleanup, cleanupCluster, cleanupSlaveServer, clearError, clearParameters, copyParametersFrom, copyVariablesFrom, createDataBase, doTopologySortOfSteps, environmentSubstitute, environmentSubstitute, eraseParameters, execute, executeClustered, executeClustered, fieldSubstitute, findBaseSteps, findDataInterface, findMappingInput, findMappingOutput, findRowSet, findRowSet, findRunThread, findStepInterface, findStepInterfaces, fireTransFinishedListeners, fireTransStartedListeners, getActiveSubjobs, getActiveSubTransformation, getActiveSubtransformations, getArguments, getBatchId, getBooleanValueOfVariable, getClusteredTransformationResult, getClusteredTransformationResult, getContainerObjectId, getCounters, getCurrentDate, getDelegationListeners, getDepDate, getEndDate, getEnded, getErrors, getExecutingServer, getExecutingUser, getExtensionDataMap, getFilename, getJobEndDate, getJobStartDate, getLastProcessed, getLogChannel, getLogChannelId, getLogDate, getLoggingHierarchy, getLogLevel, getMappingStepName, getMetaStore, getName, getObjectCopy, getObjectId, getObjectName, getObjectRevision, getObjectType, getParameterDefault, getParameterDescription, getParameterValue, getParent, getParentJob, getParentTrans, getParentVariableSpace, getPassedBatchId, getPreviousResult, getRegistrationDate, getReplayDate, getRepository, getRepositoryDirectory, getResult, getResultFiles, getResultRows, getRowsets, getRunThread, getRunThread, getServletPrintWriter, getServletRequest, getServletResponse, getSocketRepository, getStartDate, getStatus, getStepDataInterface, getStepInterface, getStepPerformanceSnapShots, getSteps, getThreadName, getTransactionId, getTransListeners, getTransMeta, getTransStepExecutionStatusLookup, getTransStepIsRunningLookup, getTransStoppedListeners, getVariable, getVariable, hasHaltedSteps, hasStepStarted, initializeVariablesFrom, injectVariables, isFinished, isFinishedOrStopped, isForcingSeparateLogging, isGatheringMetrics, isInitializing, isMonitored, isPaused, isPreparing, isPreview, isReadyToStart, isRunning, isSafeModeEnabled, isStopped, listParameters, listVariables, logSummary, monitorClusteredTransformation, monitorClusteredTransformation, monitorRemoteTransformation, monitorRemoteTransformation, nrActiveSteps, nrSteps, pauseRunning, printStats, removeActiveSubTransformation, resumeRunning, sendToSlaveServer, setArguments, setBatchId, setContainerObjectId, setCounters, setDelegationListeners, setExecutingServer, setExecutingUser, setFinished, setForcingSeparateLogging, setGatheringMetrics, setInitializing, setInternalKettleVariables, setJobEndDate, setJobStartDate, setLog, setMappingStepName, setMetaStore, setMonitored, setParameterValue, setParent, setParentJob, setParentTrans, setParentVariableSpace, setPassedBatchId, setPaused, setPreparing, setPreview, setPreviousResult, setReadyToStart, setReplayDate, setRepository, setResultFiles, setResultRows, setRunning, setSafeModeEnabled, setServletPrintWriter, setServletReponse, setServletRequest, setSocketRepository, setStepPerformanceSnapShots, setSteps, setStopped, setThreadName, setTransactionId, setTransListeners, setTransMeta, setTransStoppedListeners, setVariable, shareVariablesWith, shutdownHeartbeat, startHeartbeat, toString, writeLogChannelInformation, writeMetricsInformation, writeStepLogInformation
public static final String ANONYMOUS_PRINCIPAL
public TransEngineAdapter(org.pentaho.di.engine.api.Engine engine, TransMeta transMeta)
public void setLogLevel(LogLevel logLogLevel)
Trans
setLogLevel
in class Trans
logLogLevel
- the new log levelpublic void killAll()
Trans
public void stopAll()
Trans
public void prepareExecution(String[] arguments) throws KettleException
Trans
prepareExecution
in class Trans
arguments
- the arguments to use for this transformationKettleException
- in case the transformation could not be prepared (initialized)public void startThreads() throws KettleException
Trans
startThreads
in class Trans
KettleException
- if there is a communication error with a remote output socket.public void waitUntilFinished()
Trans
waitUntilFinished
in class Trans
public RowProducer addRowProducer(String stepname, int copynr) throws KettleException
Trans
addRowProducer
in class Trans
stepname
- The step to produce rows forcopynr
- The copynr of the step to produce row for (normally 0 unless you have multiple copies running)KettleException
- in case the thread/step to produce rows for could not be found.Trans.execute(String[])
,
Trans.prepareExecution(String[])
Copyright © 2017 Hitachi Vantara. All rights reserved.