public interface JobEntryInterface
Object clone()
String getXML()
void loadXML(...)
This method is called by PDI whenever a job entry needs to read its
settings from XML. The XML node containing the job entry's settings is passed in as an argument. Again, the helper
class org.pentaho.di.core.xml.XMLHandler is typically used to conveniently read the settings from the XML node.void saveRep(...)
void loadRep(...)
Hint: When developing plugins, make sure the serialization code is in synch with the settings available from the job entry dialog. When testing a plugin in Spoon, PDI will internally first save and load a copy of the job.
boolean evaluates()
boolean isUnconditional()
Result execute(..)
prev_result.setNrErrors(..)
prev_result.setResult(..)
Modifier and Type | Method and Description |
---|---|
void |
check(List<CheckResultInterface> remarks,
JobMeta jobMeta)
Deprecated.
|
void |
check(List<CheckResultInterface> remarks,
JobMeta jobMeta,
VariableSpace space,
Repository repository,
org.pentaho.metastore.api.IMetaStore metaStore)
Allows JobEntry objects to check themselves for consistency
|
void |
clear()
This method should clear out any variables, objects, etc.
|
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.
|
Result |
execute(Result prev_result,
int nr)
Execute the job entry.
|
String |
exportResources(VariableSpace space,
Map<String,ResourceDefinition> definitions,
ResourceNamingInterface namingInterface,
Repository repository)
|
String |
exportResources(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 |
getDescription()
Gets the description of this job entry
|
String |
getDialogClassName()
Deprecated.
As of release 8.1, use annotated-based dialog instead
PluginDialog |
String |
getFilename()
Gets the filename of the job entry.
|
LogChannelInterface |
getLogChannel()
Gets the log channel.
|
String |
getName()
Gets the name of this job entry.
|
ObjectId |
getObjectId()
Gets the object id.
|
Job |
getParentJob()
Gets the parent job.
|
default JobMeta |
getParentJobMeta()
Return Gets the parent jobMeta.
|
String |
getPluginId()
Gets the plugin id.
|
String |
getRealFilename()
Gets the real filename of the job entry, by substituting any environment variables present in the filename.
|
String[] |
getReferencedObjectDescriptions() |
List<ResourceReference> |
getResourceDependencies(JobMeta jobMeta)
Get a list of all the resource dependencies that the step is depending on.
|
List<SQLStatement> |
getSQLStatements(Repository repository)
Deprecated.
|
List<SQLStatement> |
getSQLStatements(Repository repository,
org.pentaho.metastore.api.IMetaStore metaStore,
VariableSpace space)
Gets the SQL statements needed by this job entry to execute successfully, given a set of variables.
|
List<SQLStatement> |
getSQLStatements(Repository repository,
VariableSpace space)
Deprecated.
|
String |
getTypeId()
Deprecated.
|
DatabaseMeta[] |
getUsedDatabaseConnections()
This method returns all the database connections that are used by the job entry.
|
String |
getXML()
This method is called by PDI whenever a job entry needs to serialize its settings to XML.
|
boolean |
hasChanged()
Checks whether the job entry has changed
|
boolean |
hasRepositoryReferences()
Checks whether the job entry defines one or more references to a repository object
|
boolean |
isDummy()
Checks if this job entry is a dummy entry
|
boolean |
isEvaluation()
Checks if the job entry is an evaluation
|
boolean |
isJob()
Checks if the job entry executes a job
|
boolean |
isMail()
Checks if the job entry sends email
|
boolean[] |
isReferencedObjectEnabled() |
boolean |
isShell()
Checks if the job entry executes a shell program
|
boolean |
isSpecial()
Checks if the job entry is of a special type (Start, Dummy, etc.)
|
boolean |
isStart()
Checks if the job entry has started
|
boolean |
isTransformation()
Checks if this job entry executes a transformation
|
boolean |
isUnconditional()
This method must return true if the job entry supports the unconditional outgoing hop.
|
Object |
loadReferencedObject(int index,
Repository rep,
org.pentaho.metastore.api.IMetaStore metaStore,
VariableSpace space)
Load the referenced object
|
Object |
loadReferencedObject(int index,
Repository rep,
VariableSpace space)
Deprecated.
|
void |
loadRep(Repository rep,
org.pentaho.metastore.api.IMetaStore metaStore,
ObjectId id_jobentry,
List<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 |
loadRep(Repository rep,
ObjectId id_jobentry,
List<DatabaseMeta> databases,
List<SlaveServer> slaveServers)
Deprecated.
|
void |
loadXML(Node entrynode,
List<DatabaseMeta> databases,
List<SlaveServer> slaveServers,
Repository rep)
Deprecated.
|
void |
loadXML(Node entrynode,
List<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
|
boolean |
resetErrorsBeforeExecution()
Checks whether a reset of the number of errors is required before execution.
|
void |
saveRep(Repository rep,
org.pentaho.metastore.api.IMetaStore metaStore,
ObjectId id_job)
This method is called by PDI whenever a job entry needs to save its settings to a PDI repository.
|
void |
saveRep(Repository rep,
ObjectId id_job)
Deprecated.
|
void |
setChanged()
Sets whether the job entry has changed
|
void |
setChanged(boolean ch)
Sets whether the job entry has changed
|
void |
setDescription(String description)
Sets the description of this job entry
|
void |
setMetaStore(org.pentaho.metastore.api.IMetaStore metaStore)
Sets the MetaStore
|
void |
setName(String name)
Sets the name for this job entry.
|
void |
setObjectId(ObjectId id)
Sets the object id.
|
void |
setParentJob(Job job)
Sets the parent job.
|
default void |
setParentJobMeta(JobMeta jobMeta)
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 |
setPluginId(String pluginId)
Sets the plugin id.
|
void |
setRepository(Repository repository)
Sets the repository.
|
Result execute(Result prev_result, int nr) throws KettleException
prev_result
- the previous resultnr
- the number of rowsKettleException
- if any Kettle exceptions occurvoid setParentJob(Job job)
job
- the parent jobJob getParentJob()
LogChannelInterface getLogChannel()
void setRepository(Repository repository)
repository
- the new repositoryvoid setMetaStore(org.pentaho.metastore.api.IMetaStore metaStore)
metaStore
- The new MetaStore to usevoid clear()
ObjectId getObjectId()
void setObjectId(ObjectId id)
id
- the new object idString getName()
void setName(String name)
name
- the new name@Deprecated String getTypeId()
getPluginId()
String getPluginId()
void setPluginId(String pluginId)
pluginId
- the new plugin idString getDescription()
void setDescription(String description)
description
- the new descriptionvoid setChanged()
void setChanged(boolean ch)
ch
- true if the job entry has changed, false otherwiseboolean hasChanged()
@Deprecated void loadXML(Node entrynode, List<DatabaseMeta> databases, List<SlaveServer> slaveServers, Repository rep) throws KettleXMLException
loadXML(Node, List, List, Repository, IMetaStore)
entrynode
- the top-level XML nodedatabases
- the list of databasesslaveServers
- the list of slave serversrep
- the repository objectKettleXMLException
- if any errors occur during the loading of the XMLvoid loadXML(Node entrynode, List<DatabaseMeta> databases, List<SlaveServer> slaveServers, Repository rep, org.pentaho.metastore.api.IMetaStore metaStore) throws KettleXMLException
entrynode
- the top-level XML nodedatabases
- the list of databasesslaveServers
- the list of slave serversrep
- the repository objectmetaStore
- The metaStore to optionally load from.KettleXMLException
- if any errors occur during the loading of the XMLString getXML()
@Deprecated void saveRep(Repository rep, ObjectId id_job) throws KettleException
saveRep(Repository, IMetaStore, ObjectId)
rep
- the repository objectid_job
- the id_jobKettleException
- if any errors occur during the savevoid saveRep(Repository rep, org.pentaho.metastore.api.IMetaStore metaStore, ObjectId id_job) throws KettleException
rep
- the repositorymetaStore
- the MetaStore to useid_job
- the id_jobKettleException
- if any errors occur during the save@Deprecated void loadRep(Repository rep, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers) throws KettleException
loadRep(Repository, IMetaStore, ObjectId, List, List)
rep
- the repository objectid_jobentry
- the id of the job entrydatabases
- the list of databasesslaveServers
- the list of slave serversKettleException
- if any errors occur during the loadvoid loadRep(Repository rep, org.pentaho.metastore.api.IMetaStore metaStore, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers) throws KettleException
rep
- the repository objectmetaStore
- the MetaStore to useid_jobentry
- the id of the job entrydatabases
- the list of databasesslaveServers
- the list of slave serversKettleException
- if any errors occur during the loadboolean isStart()
boolean isDummy()
Object clone()
boolean resetErrorsBeforeExecution()
boolean evaluates()
boolean isUnconditional()
boolean isEvaluation()
boolean isTransformation()
boolean isJob()
boolean isShell()
boolean isMail()
boolean isSpecial()
@Deprecated List<SQLStatement> getSQLStatements(Repository repository) throws KettleException
getSQLStatements(Repository, IMetaStore, VariableSpace)
repository
- the repositoryKettleException
- if any errors occur during the generation of SQL statements@Deprecated List<SQLStatement> getSQLStatements(Repository repository, VariableSpace space) throws KettleException
getSQLStatements(Repository, IMetaStore, VariableSpace)
repository
- the repository objectspace
- a variable space object containing variable bindingsKettleException
- if any errors occur during the generation of SQL statementsList<SQLStatement> getSQLStatements(Repository repository, org.pentaho.metastore.api.IMetaStore metaStore, VariableSpace space) throws KettleException
repository
- the repository objectmetaStore
- the MetaStore to usespace
- a variable space object containing variable bindingsKettleException
- if any errors occur during the generation of SQL statements@Deprecated String getDialogClassName()
PluginDialog
String getFilename()
String getRealFilename()
DatabaseMeta[] getUsedDatabaseConnections()
@Deprecated void check(List<CheckResultInterface> remarks, JobMeta jobMeta)
check(List, JobMeta, VariableSpace, Repository, IMetaStore)
remarks
- List of CheckResult objects indicating consistency statusjobMeta
- the metadata object for the job entryvoid check(List<CheckResultInterface> remarks, JobMeta jobMeta, VariableSpace space, Repository repository, org.pentaho.metastore.api.IMetaStore metaStore)
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 fromList<ResourceReference> getResourceDependencies(JobMeta jobMeta)
@Deprecated String exportResources(VariableSpace space, Map<String,ResourceDefinition> definitions, ResourceNamingInterface namingInterface, Repository repository) throws KettleException
exportResources(VariableSpace, Map, ResourceNamingInterface, Repository, IMetaStore)
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 fromKettleException
- in case something goes wrong during the exportString exportResources(VariableSpace space, Map<String,ResourceDefinition> definitions, ResourceNamingInterface namingInterface, Repository repository, org.pentaho.metastore.api.IMetaStore metaStore) throws KettleException
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 fromKettleException
- in case something goes wrong during the exportboolean hasRepositoryReferences()
void lookupRepositoryReferences(Repository repository) throws KettleException
repository
- the repository to reference.KettleException
- if any errors occur during the lookupString[] getReferencedObjectDescriptions()
boolean[] isReferencedObjectEnabled()
@Deprecated Object loadReferencedObject(int index, Repository rep, VariableSpace space) throws KettleException
loadReferencedObject(int, Repository, IMetaStore, VariableSpace)
index
- the referenced object index to load (in case there are multiple references)rep
- the repositoryspace
- the variable space to useKettleException
Object loadReferencedObject(int index, Repository rep, org.pentaho.metastore.api.IMetaStore metaStore, VariableSpace space) throws KettleException
index
- the referenced object index to load (in case there are multiple references)rep
- the repositorymetaStore
- the metaStorespace
- the variable space to useKettleException
default void setParentJobMeta(JobMeta jobMeta)
jobMeta
- the JobMeta to which this JobEntryInterface belongsdefault JobMeta getParentJobMeta()
Copyright © 2018 Hitachi Vantara. All rights reserved.