public class JobEntryJob extends JobEntryBase implements Cloneable, JobEntryInterface
Modifier and Type | Field and Description |
---|---|
boolean |
addDate |
boolean |
addTime |
boolean |
argFromPrevious |
String[] |
arguments |
boolean |
createParentFolder |
static org.pentaho.di.core.logging.LogLevel |
DEFAULT_LOG_LEVEL |
boolean |
execPerRow |
boolean |
expandingRemoteJob |
boolean |
followingAbortRemotely |
String |
logext |
String |
logfile |
org.pentaho.di.core.logging.LogLevel |
logFileLevel |
boolean |
parallel |
String[] |
parameterFieldNames |
String[] |
parameters |
String[] |
parameterValues |
boolean |
paramsFromPrevious |
boolean |
passingAllParameters |
boolean |
setAppendLogfile |
boolean |
setLogfile |
boolean |
waitingToFinish |
Constructor and Description |
---|
JobEntryJob() |
JobEntryJob(String name) |
Modifier and Type | Method and Description |
---|---|
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 the job entry.
|
String |
exportResources(org.pentaho.di.core.variables.VariableSpace space,
Map<String,ResourceDefinition> definitions,
ResourceNamingInterface namingInterface,
Repository repository,
org.pentaho.metastore.api.IMetaStore metaStore)
Exports the object to a flat-file system, adding content with filename keys to a set of definitions.
|
String |
getDirectory() |
String |
getFilename()
Gets the filename of the job entry.
|
String |
getFileName()
Deprecated.
use getFilename() instead.
|
Job |
getJob() |
JobMeta |
getJobMeta(Repository rep,
org.pentaho.metastore.api.IMetaStore metaStore,
org.pentaho.di.core.variables.VariableSpace space) |
JobMeta |
getJobMeta(Repository rep,
org.pentaho.di.core.variables.VariableSpace space)
Deprecated.
|
String |
getJobName() |
org.pentaho.di.repository.ObjectId |
getJobObjectId() |
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.
|
org.pentaho.di.core.ObjectLocationSpecificationMethod |
getSpecificationMethod() |
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.
|
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 |
isExecPerRow() |
boolean |
isExpandingRemoteJob() |
boolean |
isFollowingAbortRemotely() |
boolean |
isPassingAllParameters() |
boolean |
isPassingExport() |
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)
Load the jobentry from 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
|
static void |
main(String[] args) |
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 |
setDirectory(String directory) |
void |
setExecPerRow(boolean runEveryResultRow) |
void |
setExpandingRemoteJob(boolean expandingRemoteJob) |
void |
setFileName(String n) |
void |
setFollowingAbortRemotely(boolean followingAbortRemotely) |
void |
setJobName(String jobname) |
void |
setJobObjectId(org.pentaho.di.repository.ObjectId jobObjectId) |
void |
setPassingAllParameters(boolean passingAllParameters) |
void |
setPassingExport(boolean passingExport) |
void |
setRemoteSlaveServerName(String remoteSlaveServerName) |
void |
setSpecificationMethod(org.pentaho.di.core.ObjectLocationSpecificationMethod specificationMethod) |
void |
setWaitingToFinish(boolean waitingToFinish) |
check, copyVariablesFrom, environmentSubstitute, environmentSubstitute, equals, exportResources, fieldSubstitute, getAttribute, getAttributes, getAttributesMap, getBooleanValueOfVariable, getContainerObjectId, getDescription, getDialogClassName, getExtensionDataMap, getHolderType, getLogChannel, getLogChannelId, getLogLevel, getMetaStore, getName, getObjectCopy, getObjectId, getObjectName, getObjectRevision, getObjectType, getParent, getParentJob, getParentVariableSpace, getPluginId, getRegistrationDate, getRepository, getRepositoryDirectory, getSQLStatements, getSQLStatements, getTypeDesc, getTypeId, getUsedDatabaseConnections, getVariable, getVariable, hasChanged, 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, setForcingSeparateLogging, setGatheringMetrics, setID, setLogLevel, setMetaStore, setName, setObjectId, setParentJob, setParentVariableSpace, setPluginId, setRepository, setTypeId, setVariable, shareVariablesWith, toString
getClass, hashCode, notify, notifyAll, wait, wait, wait
check, exportResources, getDescription, getDialogClassName, getLogChannel, getName, getObjectId, getParentJob, 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, setRepository
public String[] arguments
public boolean argFromPrevious
public boolean paramsFromPrevious
public boolean execPerRow
public String[] parameters
public String[] parameterFieldNames
public String[] parameterValues
public boolean setLogfile
public String logfile
public String logext
public boolean addDate
public boolean addTime
public org.pentaho.di.core.logging.LogLevel logFileLevel
public boolean parallel
public boolean setAppendLogfile
public boolean createParentFolder
public boolean waitingToFinish
public boolean followingAbortRemotely
public boolean expandingRemoteJob
public boolean passingAllParameters
public static final org.pentaho.di.core.logging.LogLevel DEFAULT_LOG_LEVEL
public JobEntryJob(String name)
public JobEntryJob()
public Object clone()
JobEntryBase
clone
in interface JobEntryInterface
clone
in class JobEntryBase
public void setFileName(String n)
@Deprecated public String getFileName()
public String getFilename()
JobEntryBase
getFilename
in interface org.pentaho.di.core.logging.LoggingObjectInterface
getFilename
in interface JobEntryInterface
getFilename
in class JobEntryBase
LoggingObjectInterface.getFilename()
public String getRealFilename()
JobEntryBase
getRealFilename
in interface JobEntryInterface
getRealFilename
in class JobEntryBase
public void setJobName(String jobname)
public String getJobName()
public String getDirectory()
public void setDirectory(String directory)
public boolean isPassingExport()
public void setPassingExport(boolean passingExport)
public String getLogFilename()
public String getXML()
JobEntryBase
getXML
in interface JobEntryInterface
getXML
in class JobEntryBase
public 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
JobEntryInterface
loadXML
in interface JobEntryInterface
loadXML
in class JobEntryBase
entrynode
- 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
loadRep
in interface JobEntryInterface
loadRep
in class JobEntryBase
rep
- 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
JobEntryInterface
saveRep
in interface JobEntryInterface
saveRep
in class JobEntryBase
rep
- the repositorymetaStore
- the MetaStore to useid_job
- the id_joborg.pentaho.di.core.exception.KettleException
- if any errors occur during the savepublic org.pentaho.di.core.Result execute(org.pentaho.di.core.Result result, int nr) throws org.pentaho.di.core.exception.KettleException
JobEntryInterface
execute
in interface JobEntryInterface
result
- the previous resultnr
- the number of rowsorg.pentaho.di.core.exception.KettleException
- if any Kettle exceptions occurpublic void clear()
JobEntryBase
clear
in interface JobEntryInterface
clear
in class JobEntryBase
public boolean evaluates()
JobEntryBase
evaluates
in interface JobEntryInterface
evaluates
in class JobEntryBase
public boolean isUnconditional()
JobEntryBase
isUnconditional
in interface JobEntryInterface
isUnconditional
in class JobEntryBase
public 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
JobEntryBase
getSQLStatements
in interface JobEntryInterface
getSQLStatements
in class JobEntryBase
repository
- 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 statements@Deprecated public JobMeta getJobMeta(Repository rep, org.pentaho.di.core.variables.VariableSpace space) throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleException
public JobMeta getJobMeta(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.KettleException
public boolean isExecPerRow()
public void setExecPerRow(boolean runEveryResultRow)
runEveryResultRow
- The runEveryResultRow to set.public List<ResourceReference> getResourceDependencies(JobMeta jobMeta)
JobEntryBase
getResourceDependencies
in interface JobEntryInterface
getResourceDependencies
in class JobEntryBase
ResourceReference
public 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
in interface JobEntryInterface
exportResources
in class JobEntryBase
space
- 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 exportpublic 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)
JobEntryBase
check
in interface JobEntryInterface
check
in class JobEntryBase
remarks
- 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 static void main(String[] args)
public String getRemoteSlaveServerName()
public void setRemoteSlaveServerName(String remoteSlaveServerName)
remoteSlaveServerName
- the remoteSlaveServer 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 isPassingAllParameters()
public void setPassingAllParameters(boolean passingAllParameters)
passingAllParameters
- the passingAllParameters to setpublic Job getJob()
public org.pentaho.di.repository.ObjectId getJobObjectId()
public void setJobObjectId(org.pentaho.di.repository.ObjectId jobObjectId)
jobObjectId
- the jobObjectId to setpublic org.pentaho.di.core.ObjectLocationSpecificationMethod getSpecificationMethod()
public void setSpecificationMethod(org.pentaho.di.core.ObjectLocationSpecificationMethod specificationMethod)
specificationMethod
- the specificationMethod to setpublic boolean hasRepositoryReferences()
JobEntryBase
hasRepositoryReferences
in interface JobEntryInterface
hasRepositoryReferences
in class JobEntryBase
public void lookupRepositoryReferences(Repository repository) throws org.pentaho.di.core.exception.KettleException
lookupRepositoryReferences
in interface JobEntryInterface
lookupRepositoryReferences
in class JobEntryBase
repository
- the repository to reference.org.pentaho.di.core.exception.KettleException
- if any errors occur during the lookuppublic boolean[] isReferencedObjectEnabled()
isReferencedObjectEnabled
in interface JobEntryInterface
isReferencedObjectEnabled
in class JobEntryBase
public String[] getReferencedObjectDescriptions()
getReferencedObjectDescriptions
in interface JobEntryInterface
getReferencedObjectDescriptions
in class JobEntryBase
public 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
in interface JobEntryInterface
loadReferencedObject
in class JobEntryBase
index
- the referenced object index to load (in case there are multiple references)rep
- the repositorymetaStore
- the metaStorespace
- the variable space to useorg.pentaho.di.core.exception.KettleException
public boolean isExpandingRemoteJob()
public void setExpandingRemoteJob(boolean expandingRemoteJob)