public class JobEntryTrans extends JobEntryBase implements Cloneable, JobEntryInterface, HasRepositoryDirectories, JobEntryRunConfigurableInterface
| 限定符和类型 | 字段和说明 |
|---|---|
boolean |
addDate |
boolean |
addTime |
boolean |
argFromPrevious |
String[] |
arguments |
boolean |
clearResultFiles |
boolean |
clearResultRows |
boolean |
createParentFolder |
boolean |
execPerRow |
boolean |
followingAbortRemotely |
static int |
IS_PENTAHO |
String |
logext |
String |
logfile |
org.pentaho.di.core.logging.LogLevel |
logFileLevel |
String[] |
parameterFieldNames |
String[] |
parameters |
String[] |
parameterValues |
boolean |
paramsFromPrevious |
boolean |
setAppendLogfile |
boolean |
setLogfile |
boolean |
waitingToFinish |
attributesMap, containerObjectId, entryStepSetVariablesMap, extensionDataMap, log, metaStore, parentJob, parentJobMeta, rep, variables| 构造器和说明 |
|---|
JobEntryTrans() |
JobEntryTrans(String name) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
check(List<org.pentaho.di.core.CheckResultInterface> remarks,
JobMeta jobMeta,
org.pentaho.di.core.variables.VariableSpace space,
Repository repository,
org.pentaho.metastore.api.IMetaStore metaStore)
Allows JobEntry objects to check themselves for consistency
|
void |
clear()
Clears all variable values
|
Object |
clone()
This method is called when a job entry is duplicated in Spoon.
|
boolean |
evaluates()
This method must return true if the job entry supports the true/false outgoing hops.
|
org.pentaho.di.core.Result |
execute(org.pentaho.di.core.Result result,
int nr)
Execute this job entry and return the result.
|
String |
exportResources(org.pentaho.di.core.variables.VariableSpace space,
Map<String,ResourceDefinition> definitions,
ResourceNamingInterface namingInterface,
Repository repository,
org.pentaho.metastore.api.IMetaStore metaStore)
We're going to load the transformation meta data referenced here.
|
String[] |
getDirectories()
If step has reference(s) to another transformation(s)/job(s) returns an array of repository directories.
|
String |
getDirectory() |
String |
getDirectoryPath() |
String |
getFilename()
Gets the filename of the job entry.
|
String |
getFileName()
已过时。
use getFilename() instead
|
protected String |
getLogfile() |
String |
getLogFilename() |
String |
getRealFilename()
Gets the real filename of the job entry, by substituting any environment variables present in the filename.
|
String[] |
getReferencedObjectDescriptions() |
String |
getRemoteSlaveServerName() |
List<ResourceReference> |
getResourceDependencies(JobMeta jobMeta)
Gets a list of all the resource dependencies that the step is depending on.
|
String |
getRunConfiguration() |
org.pentaho.di.core.ObjectLocationSpecificationMethod |
getSpecificationMethod() |
org.pentaho.di.core.ObjectLocationSpecificationMethod[] |
getSpecificationMethods()
If step has reference(s) to another transformation(s)/job(s) returns an array of specification method(s)
defining the type of an access to a referenced file.
|
List<org.pentaho.di.core.SQLStatement> |
getSQLStatements(Repository repository,
org.pentaho.metastore.api.IMetaStore metaStore,
org.pentaho.di.core.variables.VariableSpace space)
Gets the SQL statements needed by this job entry to execute successfully, given a set of variables.
|
Trans |
getTrans() |
TransMeta |
getTransMeta(Repository rep,
org.pentaho.metastore.api.IMetaStore metaStore,
org.pentaho.di.core.variables.VariableSpace space) |
TransMeta |
getTransMeta(Repository rep,
org.pentaho.di.core.variables.VariableSpace space)
|
String |
getTransname() |
org.pentaho.di.repository.ObjectId |
getTransObjectId() |
String |
getXML()
This method is called by PDI whenever a job entry needs to serialize its settings to XML.
|
boolean |
hasRepositoryReferences()
Checks whether the job entry has repository references.
|
boolean |
isClustering() |
boolean |
isFollowingAbortRemotely() |
boolean |
isLoggingRemoteWork() |
boolean |
isPassingAllParameters() |
boolean[] |
isReferencedObjectEnabled() |
boolean |
isUnconditional()
This method must return true if the job entry supports the unconditional outgoing hop.
|
boolean |
isWaitingToFinish() |
Object |
loadReferencedObject(int index,
Repository rep,
org.pentaho.metastore.api.IMetaStore metaStore,
org.pentaho.di.core.variables.VariableSpace space)
Load the referenced object
|
void |
loadRep(Repository rep,
org.pentaho.metastore.api.IMetaStore metaStore,
org.pentaho.di.repository.ObjectId id_jobentry,
List<org.pentaho.di.core.database.DatabaseMeta> databases,
List<SlaveServer> slaveServers)
This method is called by PDI whenever a job entry needs to read its configuration from a PDI repository.
|
void |
loadXML(Node entrynode,
List<org.pentaho.di.core.database.DatabaseMeta> databases,
List<SlaveServer> slaveServers,
Repository rep,
org.pentaho.metastore.api.IMetaStore metaStore)
This method is called by PDI whenever a job entry needs to read its settings from XML.
|
void |
lookupRepositoryReferences(Repository repository)
Look up the references after import
|
void |
prepareFieldNamesParameters(String[] parameters,
String[] parameterFieldNames,
String[] parameterValues,
org.pentaho.di.core.parameters.NamedParams namedParam,
JobEntryTrans jobEntryTrans) |
void |
saveRep(Repository rep,
org.pentaho.metastore.api.IMetaStore metaStore,
org.pentaho.di.repository.ObjectId id_job)
This method is called by PDI whenever a job entry needs to save its settings to a PDI repository.
|
void |
setClustering(boolean clustering) |
void |
setDirectories(String[] directories)
If step has reference(s) to another transformation(s)/job(s) sets updated repository directories from
incoming String array.
|
void |
setDirectory(String directory) |
void |
setDirectoryPath(String directoryPath) |
void |
setFileName(String n) |
void |
setFollowingAbortRemotely(boolean followingAbortRemotely) |
void |
setLoggingRemoteWork(boolean loggingRemoteWork) |
void |
setParentJobMeta(JobMeta parentJobMeta)
At save and run time, the system will attempt to set the jobMeta so that it can be accessed by the jobEntries
if necessary.
|
void |
setPassingAllParameters(boolean passingAllParameters) |
void |
setRemoteSlaveServerName(String remoteSlaveServerName) |
void |
setRunConfiguration(String runConfiguration) |
void |
setSpecificationMethod(org.pentaho.di.core.ObjectLocationSpecificationMethod specificationMethod) |
void |
setTransname(String transname) |
void |
setTransObjectId(org.pentaho.di.repository.ObjectId transObjectId) |
void |
setWaitingToFinish(boolean waitingToFinish) |
protected void |
updateResult(org.pentaho.di.core.Result result) |
check, copyVariablesFrom, environmentSubstitute, environmentSubstitute, equals, exportResources, fieldSubstitute, getAttribute, getAttributes, getAttributesMap, getBooleanValueOfVariable, getContainerObjectId, getDescription, getDialogClassName, getEntryStepSetVariable, getEntryStepSetVariablesMap, getExtensionDataMap, getHolderType, getLogChannel, getLogChannelId, getLogLevel, getMetaStore, getName, getObjectCopy, getObjectId, getObjectName, getObjectRevision, getObjectType, getParent, getParentJob, getParentJobMeta, getParentVariableSpace, getPluginId, getRegistrationDate, getRepository, getRepositoryDirectory, getSQLStatements, getSQLStatements, getTypeDesc, getTypeId, getUsedDatabaseConnections, getVariable, getVariable, getVariables, hasChanged, hashCode, initializeVariablesFrom, injectVariables, isBasic, isDebug, isDetailed, isDummy, isEvaluation, isForcingSeparateLogging, isFTP, isGatheringMetrics, isHTTP, isJob, isMail, isRowlevel, isSFTP, isShell, isSpecial, isStart, isTransformation, listVariables, loadReferencedObject, loadRep, loadXML, loadXML, logBasic, logBasic, logDebug, logDebug, logDetailed, logDetailed, logError, logError, logError, logMinimal, logMinimal, logRowlevel, logRowlevel, parseRepositoryObjects, resetErrorsBeforeExecution, saveRep, setAttribute, setAttributes, setAttributesMap, setChanged, setChanged, setContainerObjectId, setDescription, setEntryStepSetVariable, setForcingSeparateLogging, setGatheringMetrics, setID, setLogLevel, setMetaStore, setName, setObjectId, setParentJob, setParentVariableSpace, setPluginId, setRepository, setTypeId, setVariable, shareVariablesWith, toStringcheck, exportResources, getDescription, getDialogClassName, getLogChannel, getName, getObjectId, getParentJob, getParentJobMeta, getPluginId, getSQLStatements, getSQLStatements, getTypeId, getUsedDatabaseConnections, hasChanged, isDummy, isEvaluation, isJob, isMail, isShell, isSpecial, isStart, isTransformation, loadReferencedObject, loadRep, loadXML, resetErrorsBeforeExecution, saveRep, setChanged, setChanged, setDescription, setMetaStore, setName, setObjectId, setParentJob, setPluginId, setRepositorysetChangedpublic static final int IS_PENTAHO
public String[] arguments
public boolean argFromPrevious
public boolean paramsFromPrevious
public boolean execPerRow
public String[] parameters
public String[] parameterFieldNames
public String[] parameterValues
public boolean clearResultRows
public boolean clearResultFiles
public boolean createParentFolder
public boolean setLogfile
public boolean setAppendLogfile
public String logfile
public String logext
public boolean addDate
public boolean addTime
public org.pentaho.di.core.logging.LogLevel logFileLevel
public boolean waitingToFinish
public boolean followingAbortRemotely
public JobEntryTrans(String name)
public JobEntryTrans()
public Object clone()
JobEntryBaseclone 在接口中 JobEntryInterfaceclone 在类中 JobEntryBasepublic void setFileName(String n)
@Deprecated public String getFileName()
public String getFilename()
JobEntryBasegetFilename 在接口中 org.pentaho.di.core.logging.LoggingObjectInterfacegetFilename 在接口中 JobEntryInterfacegetFilename 在类中 JobEntryBaseLoggingObjectInterface.getFilename()public String getRealFilename()
JobEntryBasegetRealFilename 在接口中 JobEntryInterfacegetRealFilename 在类中 JobEntryBasepublic void setTransname(String transname)
public String getTransname()
public String getDirectory()
public void setDirectory(String directory)
public String[] getDirectories()
HasRepositoryDirectoriesgetDirectories 在接口中 HasRepositoryDirectoriespublic void setDirectories(String[] directories)
HasRepositoryDirectoriessetDirectories 在接口中 HasRepositoryDirectoriesdirectories - Array of updated rep directories to setpublic String getLogFilename()
public String getXML()
JobEntryBasegetXML 在接口中 JobEntryInterfacegetXML 在类中 JobEntryBasepublic void loadXML(Node entrynode, List<org.pentaho.di.core.database.DatabaseMeta> databases, List<SlaveServer> slaveServers, Repository rep, org.pentaho.metastore.api.IMetaStore metaStore) throws org.pentaho.di.core.exception.KettleXMLException
JobEntryInterfaceloadXML 在接口中 JobEntryInterfaceloadXML 在类中 JobEntryBaseentrynode - the top-level XML nodedatabases - the list of databasesslaveServers - the list of slave serversrep - the repository objectmetaStore - The metaStore to optionally load from.org.pentaho.di.core.exception.KettleXMLException - if any errors occur during the loading of the XMLpublic void loadRep(Repository rep, org.pentaho.metastore.api.IMetaStore metaStore, org.pentaho.di.repository.ObjectId id_jobentry, List<org.pentaho.di.core.database.DatabaseMeta> databases, List<SlaveServer> slaveServers) throws org.pentaho.di.core.exception.KettleException
JobEntryInterfaceloadRep 在接口中 JobEntryInterfaceloadRep 在类中 JobEntryBaserep - the repository objectmetaStore - the MetaStore to useid_jobentry - the id of the job entrydatabases - the list of databasesslaveServers - the list of slave serversorg.pentaho.di.core.exception.KettleException - if any errors occur during the loadpublic void saveRep(Repository rep, org.pentaho.metastore.api.IMetaStore metaStore, org.pentaho.di.repository.ObjectId id_job) throws org.pentaho.di.core.exception.KettleException
JobEntryInterfacesaveRep 在接口中 JobEntryInterfacesaveRep 在类中 JobEntryBaserep - the repositorymetaStore - the MetaStore to useid_job - the id_joborg.pentaho.di.core.exception.KettleException - if any errors occur during the savepublic void clear()
JobEntryBaseclear 在接口中 JobEntryInterfaceclear 在类中 JobEntryBasepublic org.pentaho.di.core.Result execute(org.pentaho.di.core.Result result,
int nr)
throws org.pentaho.di.core.exception.KettleException
execute 在接口中 JobEntryInterfaceresult - The result of the previous executionnr - the job entry numberorg.pentaho.di.core.exception.KettleException - if any Kettle exceptions occurprotected void updateResult(org.pentaho.di.core.Result result)
@Deprecated public TransMeta getTransMeta(Repository rep, org.pentaho.di.core.variables.VariableSpace space) throws org.pentaho.di.core.exception.KettleException
rep - space - org.pentaho.di.core.exception.KettleExceptionpublic TransMeta getTransMeta(Repository rep, org.pentaho.metastore.api.IMetaStore metaStore, org.pentaho.di.core.variables.VariableSpace space) throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleExceptionpublic boolean evaluates()
JobEntryBaseevaluates 在接口中 JobEntryInterfaceevaluates 在类中 JobEntryBasepublic boolean isUnconditional()
JobEntryBaseisUnconditional 在接口中 JobEntryInterfaceisUnconditional 在类中 JobEntryBasepublic List<org.pentaho.di.core.SQLStatement> getSQLStatements(Repository repository, org.pentaho.metastore.api.IMetaStore metaStore, org.pentaho.di.core.variables.VariableSpace space) throws org.pentaho.di.core.exception.KettleException
JobEntryBasegetSQLStatements 在接口中 JobEntryInterfacegetSQLStatements 在类中 JobEntryBaserepository - the repository objectmetaStore - the MetaStore to usespace - a variable space object containing variable bindingsorg.pentaho.di.core.exception.KettleException - if any errors occur during the generation of SQL statementspublic String getDirectoryPath()
public void setDirectoryPath(String directoryPath)
directoryPath - The directoryPath to set.public boolean isClustering()
public void setClustering(boolean clustering)
clustering - the clustering to setpublic void check(List<org.pentaho.di.core.CheckResultInterface> remarks, JobMeta jobMeta, org.pentaho.di.core.variables.VariableSpace space, Repository repository, org.pentaho.metastore.api.IMetaStore metaStore)
JobEntryBasecheck 在接口中 JobEntryInterfacecheck 在类中 JobEntryBaseremarks - List of CheckResult objects indicating consistency statusjobMeta - the metadata object for the job entryspace - the variable space to resolve string expressions with variables withrepository - the repository to load Kettle objects frommetaStore - the MetaStore to load common elements frompublic List<ResourceReference> getResourceDependencies(JobMeta jobMeta)
JobEntryBasegetResourceDependencies 在接口中 JobEntryInterfacegetResourceDependencies 在类中 JobEntryBaseResourceReferencepublic String exportResources(org.pentaho.di.core.variables.VariableSpace space, Map<String,ResourceDefinition> definitions, ResourceNamingInterface namingInterface, Repository repository, org.pentaho.metastore.api.IMetaStore metaStore) throws org.pentaho.di.core.exception.KettleException
exportResources 在接口中 JobEntryInterfaceexportResources 在类中 JobEntryBasespace - The variable space to resolve (environment) variables with.definitions - The map containing the filenames and contentnamingInterface - The resource naming interface allows the object to be named appropriatelyrepository - The repository to load resources frommetaStore - the metaStore to load external metadata fromorg.pentaho.di.core.exception.KettleException - in case something goes wrong during the exportprotected String getLogfile()
public String getRemoteSlaveServerName()
public void setRemoteSlaveServerName(String remoteSlaveServerName)
setRemoteSlaveServerName 在接口中 JobEntryRunConfigurableInterfaceremoteSlaveServerName - the remote slave server name to setpublic boolean isWaitingToFinish()
public void setWaitingToFinish(boolean waitingToFinish)
waitingToFinish - the waitingToFinish to setpublic boolean isFollowingAbortRemotely()
public void setFollowingAbortRemotely(boolean followingAbortRemotely)
followingAbortRemotely - the followingAbortRemotely to setpublic boolean isLoggingRemoteWork()
public void setLoggingRemoteWork(boolean loggingRemoteWork)
public boolean isPassingAllParameters()
public void setPassingAllParameters(boolean passingAllParameters)
passingAllParameters - the passingAllParameters to setpublic String getRunConfiguration()
public void setRunConfiguration(String runConfiguration)
public Trans getTrans()
public org.pentaho.di.repository.ObjectId getTransObjectId()
public void setTransObjectId(org.pentaho.di.repository.ObjectId transObjectId)
transObjectId - the transObjectId to setpublic org.pentaho.di.core.ObjectLocationSpecificationMethod getSpecificationMethod()
public org.pentaho.di.core.ObjectLocationSpecificationMethod[] getSpecificationMethods()
HasRepositoryDirectoriesgetSpecificationMethods 在接口中 HasRepositoryDirectoriespublic void setSpecificationMethod(org.pentaho.di.core.ObjectLocationSpecificationMethod specificationMethod)
specificationMethod - the specificationMethod to setpublic boolean hasRepositoryReferences()
JobEntryBasehasRepositoryReferences 在接口中 JobEntryInterfacehasRepositoryReferences 在类中 JobEntryBasepublic void lookupRepositoryReferences(Repository repository) throws org.pentaho.di.core.exception.KettleException
lookupRepositoryReferences 在接口中 JobEntryInterfacelookupRepositoryReferences 在类中 JobEntryBaserepository - the repository to reference.org.pentaho.di.core.exception.KettleException - if any errors occur during the lookuppublic String[] getReferencedObjectDescriptions()
getReferencedObjectDescriptions 在接口中 JobEntryInterfacegetReferencedObjectDescriptions 在类中 JobEntryBasepublic boolean[] isReferencedObjectEnabled()
isReferencedObjectEnabled 在接口中 JobEntryInterfaceisReferencedObjectEnabled 在类中 JobEntryBasepublic Object loadReferencedObject(int index, Repository rep, org.pentaho.metastore.api.IMetaStore metaStore, org.pentaho.di.core.variables.VariableSpace space) throws org.pentaho.di.core.exception.KettleException
loadReferencedObject 在接口中 JobEntryInterfaceloadReferencedObject 在类中 JobEntryBaseindex - the referenced object index to load (in case there are multiple references)rep - the repositorymetaStore - metaStorespace - the variable space to useorg.pentaho.di.core.exception.KettleExceptionpublic void setParentJobMeta(JobMeta parentJobMeta)
JobEntryBasesetParentJobMeta 在接口中 JobEntryInterfacesetParentJobMeta 在类中 JobEntryBaseparentJobMeta - the JobMeta to which this JobEntryInterface belongspublic void prepareFieldNamesParameters(String[] parameters, String[] parameterFieldNames, String[] parameterValues, org.pentaho.di.core.parameters.NamedParams namedParam, JobEntryTrans jobEntryTrans) throws org.pentaho.di.core.parameters.UnknownParamException
org.pentaho.di.core.parameters.UnknownParamExceptionCopyright © 2024 Hitachi Vantara. All rights reserved.