public abstract class AbstractBaseCommandExecutor extends Object
Constructor and Description |
---|
AbstractBaseCommandExecutor() |
Modifier and Type | Method and Description |
---|---|
protected int |
calculateAndPrintElapsedTime(Date start,
Date stop,
String startStopMsgTkn,
String processingEndAfterMsgTkn,
String processingEndAfterLongMsgTkn,
String processingEndAfterLongerMsgTkn,
String processingEndAfterLongestMsgTkn) |
protected String[] |
convert(Map<String,String> map) |
org.pentaho.metastore.stores.delegate.DelegatingMetaStore |
createDefaultMetastore() |
File |
decodeBase64ToZipFile(Serializable base64Zip,
boolean deleteOnJvmExit)
Decodes the provided base64String into a default path.
|
File |
decodeBase64ToZipFile(Serializable base64Zip,
String filePath)
Decodes the provided base64String into the specified filePath.
|
Repository |
establishRepositoryConnection(RepositoryMeta repositoryMeta,
String username,
String password,
RepositoryOperation... operations) |
protected Result |
exitWithStatus(int exitStatus) |
SimpleDateFormat |
getDateFormat() |
LogChannelInterface |
getLog() |
org.pentaho.metastore.stores.delegate.DelegatingMetaStore |
getMetaStore() |
Class<?> |
getPkgClazz() |
Result |
getResult() |
boolean |
isEnabled(String value) |
RepositoryMeta |
loadRepositoryConnection(String repoName,
String loadingAvailableRepMsgTkn,
String noRepsDefinedMsgTkn,
String findingRepMsgTkn) |
RepositoryDirectoryInterface |
loadRepositoryDirectory(Repository repository,
String dirName,
String noRepoProvidedMsgTkn,
String allocateAndConnectRepoMsgTkn,
String cannotFindDirMsgTkn) |
RepositoriesMeta |
loadRepositoryInfo(String loadingAvailableRepMsgTkn,
String noRepsDefinedMsgTkn) |
protected void |
logDebug(String messageKey) |
protected void |
logDebug(String messageKey,
String... messageTokens) |
protected void |
printParameter(String name,
String value,
String defaultValue,
String description) |
void |
printRepositoryDirectories(Repository repository,
RepositoryDirectoryInterface directory) |
protected void |
printVersion(String kettleVersionMsgTkn) |
void |
setDateFormat(SimpleDateFormat dateFormat) |
void |
setLog(LogChannelInterface log) |
void |
setMetaStore(org.pentaho.metastore.stores.delegate.DelegatingMetaStore metaStore) |
void |
setPkgClazz(Class<?> pkgClazz) |
void |
setResult(Result result) |
public static final String YES
protected Result exitWithStatus(int exitStatus)
public org.pentaho.metastore.stores.delegate.DelegatingMetaStore createDefaultMetastore() throws org.pentaho.metastore.api.exceptions.MetaStoreException
org.pentaho.metastore.api.exceptions.MetaStoreException
protected void logDebug(String messageKey)
protected int calculateAndPrintElapsedTime(Date start, Date stop, String startStopMsgTkn, String processingEndAfterMsgTkn, String processingEndAfterLongMsgTkn, String processingEndAfterLongerMsgTkn, String processingEndAfterLongestMsgTkn)
protected void printVersion(String kettleVersionMsgTkn)
public RepositoryMeta loadRepositoryConnection(String repoName, String loadingAvailableRepMsgTkn, String noRepsDefinedMsgTkn, String findingRepMsgTkn) throws KettleException
KettleException
public RepositoriesMeta loadRepositoryInfo(String loadingAvailableRepMsgTkn, String noRepsDefinedMsgTkn) throws KettleException
KettleException
public RepositoryDirectoryInterface loadRepositoryDirectory(Repository repository, String dirName, String noRepoProvidedMsgTkn, String allocateAndConnectRepoMsgTkn, String cannotFindDirMsgTkn) throws KettleException
KettleException
public Repository establishRepositoryConnection(RepositoryMeta repositoryMeta, String username, String password, RepositoryOperation... operations) throws KettleException
KettleException
public void printRepositoryDirectories(Repository repository, RepositoryDirectoryInterface directory) throws KettleException
KettleException
protected void printParameter(String name, String value, String defaultValue, String description)
public boolean isEnabled(String value)
public File decodeBase64ToZipFile(Serializable base64Zip, boolean deleteOnJvmExit) throws IOException
base64Zip
- BASE64 representation of a filedeleteOnJvmExit
- true if we want this newly generated file to be marked for deletion on JVM termination, false otherwiseIOException
public File decodeBase64ToZipFile(Serializable base64Zip, String filePath) throws IOException
base64Zip
- BASE64 representation of a filefilePath
- String The path to which the base64String is to be decodedIOException
public LogChannelInterface getLog()
public void setLog(LogChannelInterface log)
public Class<?> getPkgClazz()
public void setPkgClazz(Class<?> pkgClazz)
public org.pentaho.metastore.stores.delegate.DelegatingMetaStore getMetaStore()
public void setMetaStore(org.pentaho.metastore.stores.delegate.DelegatingMetaStore metaStore)
public SimpleDateFormat getDateFormat()
public void setDateFormat(SimpleDateFormat dateFormat)
public Result getResult()
public void setResult(Result result)
Copyright © 2020 Hitachi Vantara. All rights reserved.