Package org.pentaho.di.base
Class AbstractBaseCommandExecutor
java.lang.Object
org.pentaho.di.base.AbstractBaseCommandExecutor
- Direct Known Subclasses:
KitchenCommandExecutor,PanCommandExecutor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intcalculateAndPrintElapsedTime(Date start, Date stop, String startStopMsgTkn, String processingEndAfterMsgTkn, String processingEndAfterLongMsgTkn, String processingEndAfterLongerMsgTkn, String processingEndAfterLongestMsgTkn) protected String[]decodeBase64ToZipFile(Serializable base64Zip, boolean deleteOnJvmExit) Decodes the provided base64String into a default path.decodeBase64ToZipFile(Serializable base64Zip, String filePath) Decodes the provided base64String into the specified filePath.establishRepositoryConnection(RepositoryMeta repositoryMeta, String username, String password, RepositoryOperation... operations) protected org.pentaho.di.core.ResultexitWithStatus(int exitStatus) org.pentaho.di.core.logging.LogChannelInterfacegetLog()org.pentaho.metastore.api.IMetaStoreClass<?>org.pentaho.di.core.ResultbooleanloadRepositoryConnection(String repoName, String loadingAvailableRepMsgTkn, String noRepsDefinedMsgTkn, String findingRepMsgTkn) org.pentaho.di.repository.RepositoryDirectoryInterfaceloadRepositoryDirectory(Repository repository, String dirName, String noRepoProvidedMsgTkn, String allocateAndConnectRepoMsgTkn, String cannotFindDirMsgTkn) loadRepositoryInfo(String loadingAvailableRepMsgTkn, String noRepsDefinedMsgTkn) protected voidprotected voidprotected voidprintParameter(String name, String value, String defaultValue, String description) voidprintRepositoryDirectories(Repository repository, org.pentaho.di.repository.RepositoryDirectoryInterface directory) protected voidprintVersion(String kettleVersionMsgTkn) voidsetDateFormat(SimpleDateFormat dateFormat) voidsetLog(org.pentaho.di.core.logging.LogChannelInterface log) voidsetMetaStore(org.pentaho.metastore.api.IMetaStore metaStore) voidsetPkgClazz(Class<?> pkgClazz) voidsetResult(org.pentaho.di.core.Result result)
-
Field Details
-
YES
- See Also:
-
-
Constructor Details
-
AbstractBaseCommandExecutor
public AbstractBaseCommandExecutor()
-
-
Method Details
-
exitWithStatus
protected org.pentaho.di.core.Result exitWithStatus(int exitStatus) -
logDebug
-
logDebug
-
calculateAndPrintElapsedTime
-
printVersion
-
loadRepositoryConnection
public RepositoryMeta loadRepositoryConnection(String repoName, String loadingAvailableRepMsgTkn, String noRepsDefinedMsgTkn, String findingRepMsgTkn) throws org.pentaho.di.core.exception.KettleException - Throws:
org.pentaho.di.core.exception.KettleException
-
loadRepositoryInfo
public RepositoriesMeta loadRepositoryInfo(String loadingAvailableRepMsgTkn, String noRepsDefinedMsgTkn) throws org.pentaho.di.core.exception.KettleException - Throws:
org.pentaho.di.core.exception.KettleException
-
loadRepositoryDirectory
public org.pentaho.di.repository.RepositoryDirectoryInterface loadRepositoryDirectory(Repository repository, String dirName, String noRepoProvidedMsgTkn, String allocateAndConnectRepoMsgTkn, String cannotFindDirMsgTkn) throws org.pentaho.di.core.exception.KettleException - Throws:
org.pentaho.di.core.exception.KettleException
-
establishRepositoryConnection
public Repository establishRepositoryConnection(RepositoryMeta repositoryMeta, String username, String password, RepositoryOperation... operations) throws org.pentaho.di.core.exception.KettleException - Throws:
org.pentaho.di.core.exception.KettleException
-
printRepositoryDirectories
public void printRepositoryDirectories(Repository repository, org.pentaho.di.repository.RepositoryDirectoryInterface directory) throws org.pentaho.di.core.exception.KettleException - Throws:
org.pentaho.di.core.exception.KettleException
-
printParameter
-
convert
-
isEnabled
-
decodeBase64ToZipFile
public File decodeBase64ToZipFile(Serializable base64Zip, boolean deleteOnJvmExit) throws IOException Decodes the provided base64String into a default path. Resulting zip file is UUID-named for concurrency sake.- Parameters:
base64Zip- BASE64 representation of a filedeleteOnJvmExit- true if we want this newly generated file to be marked for deletion on JVM termination, false otherwise- Returns:
- File the newly created File
- Throws:
IOException
-
decodeBase64ToZipFile
Decodes the provided base64String into the specified filePath. Parent directories must already exist.- Parameters:
base64Zip- BASE64 representation of a filefilePath- String The path to which the base64String is to be decoded- Returns:
- File the newly created File
- Throws:
IOException
-
getLog
public org.pentaho.di.core.logging.LogChannelInterface getLog() -
setLog
public void setLog(org.pentaho.di.core.logging.LogChannelInterface log) -
getPkgClazz
-
setPkgClazz
-
getMetaStore
public org.pentaho.metastore.api.IMetaStore getMetaStore() -
setMetaStore
public void setMetaStore(org.pentaho.metastore.api.IMetaStore metaStore) -
getDateFormat
-
setDateFormat
-
getResult
public org.pentaho.di.core.Result getResult() -
setResult
public void setResult(org.pentaho.di.core.Result result)
-