Package org.pentaho.di.pan
Class PanCommandExecutor
- java.lang.Object
-
- org.pentaho.di.base.AbstractBaseCommandExecutor
-
- org.pentaho.di.pan.PanCommandExecutor
-
public class PanCommandExecutor extends AbstractBaseCommandExecutor
-
-
Field Summary
-
Fields inherited from class org.pentaho.di.base.AbstractBaseCommandExecutor
YES
-
-
Constructor Summary
Constructors Constructor Description PanCommandExecutor(Class<?> pkgClazz)
PanCommandExecutor(Class<?> pkgClazz, org.pentaho.di.core.logging.LogChannelInterface log)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static void
configureParameters(Trans trans, org.pentaho.di.core.parameters.NamedParams optionParams, TransMeta transMeta)
Configures the transformation with the given parameters and their valuesorg.pentaho.di.core.Result
execute(Params params)
org.pentaho.di.core.Result
execute(Params params, String[] arguments)
protected void
executeRepositoryBasedCommand(Repository repository, String dirName, String listTrans, String listDirs, String exportRepo)
protected org.pentaho.di.core.Result
exitWithStatus(int exitStatus, Trans trans)
Trans
loadTransFromFilesystem(String initialDir, String filename, String jarFilename, Serializable base64Zip)
Trans
loadTransFromRepository(Repository repository, String dirName, String transName)
protected void
printRepositories(RepositoriesMeta repositoriesMeta)
protected void
printRepositoryStoredTransformations(Repository repository, org.pentaho.di.repository.RepositoryDirectoryInterface directory)
protected void
printTransformationParameters(Trans trans)
int
printVersion()
-
Methods inherited from class org.pentaho.di.base.AbstractBaseCommandExecutor
calculateAndPrintElapsedTime, convert, createDefaultMetastore, decodeBase64ToZipFile, decodeBase64ToZipFile, establishRepositoryConnection, exitWithStatus, getDateFormat, getLog, getMetaStore, getPkgClazz, getResult, isEnabled, loadRepositoryConnection, loadRepositoryDirectory, loadRepositoryInfo, logDebug, logDebug, printParameter, printRepositoryDirectories, printVersion, setDateFormat, setLog, setMetaStore, setPkgClazz, setResult
-
-
-
-
Method Detail
-
execute
public org.pentaho.di.core.Result execute(Params params) throws Throwable
- Throws:
Throwable
-
execute
public org.pentaho.di.core.Result execute(Params params, String[] arguments) throws Throwable
- Throws:
Throwable
-
exitWithStatus
protected org.pentaho.di.core.Result exitWithStatus(int exitStatus, Trans trans)
-
printVersion
public int printVersion()
-
executeRepositoryBasedCommand
protected void executeRepositoryBasedCommand(Repository repository, String dirName, String listTrans, String listDirs, String exportRepo) throws Exception
- Throws:
Exception
-
loadTransFromRepository
public Trans loadTransFromRepository(Repository repository, String dirName, String transName) throws Exception
- Throws:
Exception
-
loadTransFromFilesystem
public Trans loadTransFromFilesystem(String initialDir, String filename, String jarFilename, Serializable base64Zip) throws Exception
- Throws:
Exception
-
configureParameters
protected static void configureParameters(Trans trans, org.pentaho.di.core.parameters.NamedParams optionParams, TransMeta transMeta) throws org.pentaho.di.core.parameters.UnknownParamException
Configures the transformation with the given parameters and their values- Parameters:
trans
- the executable transformation objectoptionParams
- the list of parameters to set for the transformationtransMeta
- the transformation metadata- Throws:
org.pentaho.di.core.parameters.UnknownParamException
-
printTransformationParameters
protected void printTransformationParameters(Trans trans) throws org.pentaho.di.core.parameters.UnknownParamException
- Throws:
org.pentaho.di.core.parameters.UnknownParamException
-
printRepositoryStoredTransformations
protected void printRepositoryStoredTransformations(Repository repository, org.pentaho.di.repository.RepositoryDirectoryInterface directory) throws org.pentaho.di.core.exception.KettleException
- Throws:
org.pentaho.di.core.exception.KettleException
-
printRepositories
protected void printRepositories(RepositoriesMeta repositoriesMeta)
-
-