Package org.pentaho.di.job
Class JobMeta
- java.lang.Object
-
- org.pentaho.di.base.AbstractMeta
-
- org.pentaho.di.job.JobMeta
-
- All Implemented Interfaces:
Cloneable,Comparable<JobMeta>,org.pentaho.di.core.AttributesInterface,ChangedFlagInterface,EngineMetaInterface,UndoInterface,org.pentaho.di.core.logging.LoggingObjectInterface,org.pentaho.di.core.logging.LoggingObjectLifecycleInterface,org.pentaho.di.core.parameters.NamedParams,org.pentaho.di.core.variables.VariableSpace,org.pentaho.di.core.xml.XMLInterface,HasRepositoryInterface,org.pentaho.di.repository.RepositoryElementInterface,org.pentaho.di.repository.RepositoryObjectInterface,ResourceExportInterface,HasDatabasesInterface,HasSlaveServersInterface
public class JobMeta extends AbstractMeta implements Cloneable, Comparable<JobMeta>, org.pentaho.di.core.xml.XMLInterface, ResourceExportInterface, org.pentaho.di.repository.RepositoryElementInterface, org.pentaho.di.core.logging.LoggingObjectInterface
The definition of a PDI job is represented by a JobMeta object. It is typically loaded from a .kjb file, a PDI repository, or it is generated dynamically. The declared parameters of the job definition are then queried using listParameters() and assigned values using calls to setParameterValue(..). JobMeta provides methods to load, save, verify, etc.- Since:
- 11-08-2003
- Author:
- Matt
-
-
Field Summary
Fields Modifier and Type Field Description protected String[]argumentsprotected booleanbatchIdPassedprotected booleanchangedEntriesprotected booleanchangedHopsprotected booleanexpandingRemoteJobprotected List<LogTableInterface>extraLogTablesprotected booleangatheringMetricsprotected List<JobEntryCopy>jobcopiesprotected JobEntryLogTablejobEntryLogTableprotected List<JobHopMeta>jobhopsprotected JobLogTablejobLogTableprotected intjobStatusprotected StringjobVersionprotected org.pentaho.di.core.logging.LogChannelInterfacelogThe log channel interface.protected Map<String,Boolean>loopCacheThe loop cache.boolean[]maxList of booleans indicating whether or not to remember the size and position of the different windows...static org.pentaho.di.repository.RepositoryObjectTypeREPOSITORY_ELEMENT_TYPEA constant specifying the repository element type as a Job.protected StringstartCopyNamestatic StringSTRING_SPECIALConstant = "SPECIAL"static StringSTRING_SPECIAL_DUMMYConstant = "DUMMY"static StringSTRING_SPECIAL_ERRORConstant = "ERROR"static StringSTRING_SPECIAL_OKConstant = "OK"static StringSTRING_SPECIAL_STARTConstant = "START"static StringXML_TAGprotected static StringXML_TAG_PARAMETERSprotected static StringXML_TAG_SLAVESERVERS-
Fields inherited from class org.pentaho.di.base.AbstractMeta
attributesMap, changedDatabases, changedFlag, changedNotes, channelLogTable, containerObjectId, contentChangedListeners, createdDate, createdUser, currentDirectoryChangedListeners, databases, description, directory, embeddedMetaStore, extendedDescription, filename, filenameChangedListeners, logLevel, max_undo, metaStore, metastoreLocatorOsgi, modifiedDate, modifiedUser, name, nameChangedListeners, namedClusterEmbedManager, namedClusterServiceOsgi, namedParams, notes, objectId, objectRevision, privateDatabases, repository, runOptions, sharedObjects, sharedObjectsFile, slaveServers, TYPE_UNDO_CHANGE, TYPE_UNDO_DELETE, TYPE_UNDO_NEW, TYPE_UNDO_POSITION, undo, undo_position, variables
-
-
Constructor Summary
Constructors Constructor Description JobMeta()Instantiates a new job meta.JobMeta(InputStream inputStream, Repository rep, org.pentaho.di.core.gui.OverwritePrompter prompter)Instantiates a new job meta.JobMeta(String fname, Repository rep)Instantiates a new job meta.JobMeta(String fname, Repository rep, org.pentaho.di.core.gui.OverwritePrompter prompter)Instantiates a new job meta.JobMeta(org.pentaho.di.core.variables.VariableSpace parentSpace, String fname, Repository rep, org.pentaho.di.core.gui.OverwritePrompter prompter)Deprecated.JobMeta(org.pentaho.di.core.variables.VariableSpace parentSpace, String fname, Repository rep, org.pentaho.metastore.api.IMetaStore metaStore, org.pentaho.di.core.gui.OverwritePrompter prompter)Load the job from the XML file specified.JobMeta(Node jobnode, Repository rep, boolean ignoreRepositorySharedObjects, org.pentaho.di.core.gui.OverwritePrompter prompter)Create a new JobMeta object by loading it from a a DOM node.JobMeta(Node jobnode, Repository rep, org.pentaho.di.core.gui.OverwritePrompter prompter)Create a new JobMeta object by loading it from a a DOM node.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddDefaults()Adds the defaults.voidaddJobEntry(int p, JobEntryCopy si)Adds the job entry.voidaddJobEntry(JobEntryCopy je)Adds the job entry.voidaddJobHop(int p, JobHopMeta hi)Adds the job hop.voidaddJobHop(JobHopMeta hi)Adds the job hop.voidaddMissingEntry(MissingEntry missingEntry)voidcheckJobEntries(List<org.pentaho.di.core.CheckResultInterface> remarks, boolean only_selected, org.pentaho.di.core.ProgressMonitorListener monitor)Deprecated.voidcheckJobEntries(List<org.pentaho.di.core.CheckResultInterface> remarks, boolean only_selected, org.pentaho.di.core.ProgressMonitorListener monitor, org.pentaho.di.core.variables.VariableSpace space, Repository repository, org.pentaho.metastore.api.IMetaStore metaStore)Check all job entries within the job.voidclear()Clears or reinitializes many of the JobMeta properties.voidclearChanged()Clears the different changed flags of the job.Objectclone()Clones the job meta-data object.intcompare(JobMeta j1, JobMeta j2)Compares two job on name, filename, repository directory, etc.intcompareTo(JobMeta o)Compares this job's meta-data to the specified job's meta-data.List<JobEntryInterface>composeJobEntryInterfaceList()Create a unique list of job entry interfacesbooleancontainsJobCopy(JobEntryCopy jobCopy)intcountEntries(String name)Count entries.static JobEntryCopycreateDummyEntry()Creates the dummy entry.static JobEntryCopycreateStartEntry()Creates the start entry.booleanequals(Object obj)Checks whether this job's meta-data object is equal to the specified object.StringexportResources(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.JobEntryCopyfindJobEntry(String full_name_nr)Find job entry.JobEntryCopyfindJobEntry(String name, int nr, boolean searchHiddenToo)Find an existing JobEntryCopy by it's name and numberstatic JobEntryInterfacefindJobEntry(List<JobEntryInterface> jobentries, org.pentaho.di.repository.ObjectId id_jobentry)Find a jobentry with a certain ID in a list of job entries.static JobEntryCopyfindJobEntryCopy(List<JobEntryCopy> jobcopies, org.pentaho.di.repository.ObjectId id_jobentry_copy)Find a jobentrycopy with a certain ID in a list of job entry copies.JobHopMetafindJobHop(String name)Find job hop.JobHopMetafindJobHop(JobEntryCopy from, JobEntryCopy to)Find job hop.JobHopMetafindJobHop(JobEntryCopy from, JobEntryCopy to, boolean includeDisabled)Find job hop.JobHopMetafindJobHopFrom(JobEntryCopy jge)Find job hop from.JobHopMetafindJobHopTo(JobEntryCopy jge)Find job hop to.intfindMaxNr(String name)Find max nr.JobEntryCopyfindNextJobEntry(JobEntryCopy from, int cnt)Find next job entry.intfindNrNextJobEntries(JobEntryCopy from)Find nr next job entries.intfindNrPrevJobEntries(JobEntryCopy from)Find nr prev job entries.intfindNrPrevJobEntries(JobEntryCopy to, boolean info)Find nr prev job entries.JobEntryCopyfindPrevJobEntry(JobEntryCopy to, int nr)Find prev job entry.JobEntryCopyfindPrevJobEntry(JobEntryCopy to, int nr, boolean info)Find prev job entry.JobEntryCopyfindStart()Find start.intfindUnusedNr(String name)Find unused nr.JobEntryCopy[]getAllJobGraphEntries(String name)Gets the all job graph entries.JobHopMeta[]getAllJobHopsUsing(String name)Gets the all job hops using.StringgetAlternativeJobentryName(String entryname)Proposes an alternative job entry name when the original already exists...String[]getArguments()Deprecated.Moved to the Job classStringgetDefaultExtension()Gets the default extension for a job.JobEntryCopygetDummy()Gets the dummy.int[]getEntryIndexes(List<JobEntryCopy> entries)Gets the entry indexes.List<LogTableInterface>getExtraLogTables()StringgetFileType()Gets the file type.String[]getFilterExtensions()Gets the job filter extensions.String[]getFilterNames()Gets the job filter names.List<JobEntryCopy>getJobCopies()Gets the job copies.JobEntryCopygetJobEntry(int i)Gets the job entry.JobEntryCopygetJobEntryCopy(int x, int y, int iconsize)Gets the job entry copy.JobEntryLogTablegetJobEntryLogTable()Gets the job entry log table.JobHopMetagetJobHop(int i)Gets the job hop.List<JobHopMeta>getJobhops()Gets the jobhops.JobLogTablegetJobLogTable()Gets the job log table.intgetJobstatus()Gets the status of the job.StringgetJobversion()Gets the version of the job.org.pentaho.di.core.logging.LogChannelInterfacegetLogChannel()Gets the log channel.StringgetLogChannelId()List<LogTableInterface>getLogTables()Gets the log tables.org.pentaho.di.core.gui.PointgetMaximum()Gets the maximum.org.pentaho.di.core.gui.PointgetMinimum()Get the minimum point on the canvas of a jobList<MissingEntry>getMissingEntries()NamedClusterEmbedManagergetNamedClusterEmbedManager()org.pentaho.di.core.logging.LoggingObjectTypegetObjectType()org.pentaho.di.repository.RepositoryObjectTypegetRepositoryElementType()List<ResourceReference>getResourceDependencies()Gets the resource dependencies.List<JobEntryCopy>getSelectedEntries()Gets the selected entries.org.pentaho.di.core.gui.Point[]getSelectedLocations()Gets the selected locations.org.pentaho.di.core.gui.Point[]getSelectedNoteLocations()Get all the selected note locationsList<org.pentaho.di.core.SQLStatement>getSQLStatements(Repository repository, org.pentaho.di.core.ProgressMonitorListener monitor)List<org.pentaho.di.core.SQLStatement>getSQLStatements(Repository repository, org.pentaho.metastore.api.IMetaStore metaStore, org.pentaho.di.core.ProgressMonitorListener monitor)Builds a list of all the SQL statements that this transformation needs in order to work properly.JobEntryCopygetStart()Gets the start.StringgetStartCopyName()List<StringSearchResult>getStringList(boolean searchSteps, boolean searchDatabases, boolean searchNotes)Get a list of all the strings used in this job.List<String>getUsedVariables()Gets the used variables.StringgetXML()Gets the XML representation.booleanhasChanged()booleanhasLoop(JobEntryCopy entry)Checks for loop.booleanhasLoop(JobEntryCopy entry, JobEntryCopy lookup)Checks for loop.booleanhasLoop(JobEntryCopy entry, JobEntryCopy lookup, boolean info)Deprecated.booleanhasMissingPlugins()booleanhasRepositoryReferences()Checks whether the job has repository references.booleanhaveJobEntriesChanged()Have job entries changed.booleanhaveJobHopsChanged()Have job hops changed.intindexOfJobEntry(JobEntryCopy ge)Index of job entry.intindexOfJobHop(JobHopMeta he)Index of job hop.voidinitializeVariablesFrom(org.pentaho.di.core.variables.VariableSpace parent)booleanisBatchIdPassed()Gets the boolean value of batch id passed.booleanisDatabaseConnectionUsed(org.pentaho.di.core.database.DatabaseMeta databaseMeta)This method asks all steps in the transformation whether or not the specified database connection is used.booleanisEntryUsedInHops(JobEntryCopy jge)Checks if is entry used in hops.booleanisExpandingRemoteJob()booleanisFileReference()Checks if is file reference.static booleanisFileReference(String fileName, String transName)Checks if is file reference.booleanisForcingSeparateLogging()booleanisGatheringMetrics()Returns whether or not the job is gathering metrics.booleanisPathExist(JobEntryInterface from, JobEntryInterface to)booleanisRepReference()Checks if is rep reference.static booleanisRepReference(String fileName, String transName)Checks if is rep reference.voidloadXML(Node jobnode, String fname, Repository rep, boolean ignoreRepositorySharedObjects, org.pentaho.di.core.gui.OverwritePrompter prompter)Deprecated.voidloadXML(Node jobnode, String fname, Repository rep, org.pentaho.di.core.gui.OverwritePrompter prompter)Load xml.voidloadXML(Node jobnode, String fname, Repository rep, org.pentaho.metastore.api.IMetaStore metaStore, boolean ignoreRepositorySharedObjects, org.pentaho.di.core.gui.OverwritePrompter prompter)Load a block of XML from an DOM node.voidloadXML(Node jobnode, Repository rep, boolean ignoreRepositorySharedObjects, org.pentaho.di.core.gui.OverwritePrompter prompter)Load a block of XML from an DOM node.voidloadXML(Node jobnode, Repository rep, org.pentaho.di.core.gui.OverwritePrompter prompter)Load xml.voidlookupRepositoryReferences(Repository repository)Look up the references after importintnrJobEntries()Nr job entries.intnrJobHops()Nr job hops.ObjectrealClone(boolean doClear)Perform a real clone of the job meta-data object, including cloning all lists and copying all values.voidremoveJobEntry(int i)Removes the job entry.voidremoveJobHop(int i)Removes the job hop.voidremoveJobHop(JobHopMeta hop)Removes a hop from the transformation.voidremoveMissingEntry(MissingEntry missingEntry)voidrenameJobEntryIfNameCollides(JobEntryCopy je)See if the name of the supplied job entry copy doesn't collide with any other job entry copy in the job.voidselectAll()Select all.voidsetArguments(String[] arguments)Deprecated.moved to the job classvoidsetBatchIdPassed(boolean batchIdPassed)Sets the batch id passed.voidsetExpandingRemoteJob(boolean expandingRemoteJob)voidsetExtraLogTables(List<LogTableInterface> extraLogTables)voidsetForcingSeparateLogging(boolean forcingSeparateLogging)voidsetGatheringMetrics(boolean gatheringMetrics)Sets whether or not the job is gathering metrics.protected voidsetInternalEntryCurrentDirectory()protected voidsetInternalFilenameKettleVariables(org.pentaho.di.core.variables.VariableSpace var)Sets the internal filename kettle variables.voidsetInternalKettleVariables(org.pentaho.di.core.variables.VariableSpace var)This method sets various internal kettle variables that can be used by the transformation.protected voidsetInternalNameKettleVariable(org.pentaho.di.core.variables.VariableSpace var)Sets the internal name kettle variable.voidsetJobEntry(int idx, JobEntryCopy jec)Sets the job entry.voidsetJobEntryLogTable(JobEntryLogTable jobEntryLogTable)Sets the job entry log table.voidsetJobLogTable(JobLogTable jobLogTable)Sets the job log table.voidsetJobstatus(int jobStatus)Set the status of the job.voidsetJobversion(String jobVersion)Set the version of the job.voidsetStartCopyName(String startCopyName)StringtoString()Gets a textual representation of the job.voidunselectAll()Unselect all.protected voidupdateCurrentDir()-
Methods inherited from class org.pentaho.di.base.AbstractMeta
activateParameters, addContentChangedListener, addCurrentDirectoryChangedListener, addDatabase, addDatabase, addDatabase, addFilenameChangedListener, addNameChangedListener, addNote, addNote, addObserver, addOrReplaceDatabase, addOrReplaceSlaveServer, addParameterDefinition, addUndo, canSave, clearChangedDatabases, clearCurrentDirectoryChangedListeners, clearNameChangedListeners, clearParameters, clearUndo, compare, copyParametersFrom, copyVariablesFrom, deleteObserver, disposeEmbeddedMetastoreProvider, environmentSubstitute, environmentSubstitute, eraseParameters, fieldSubstitute, findDatabase, findSlaveServer, fireContentChangedListeners, fireContentChangedListeners, fireCurrentDirectoryChanged, fireFilenameChangedListeners, fireNameChangedListeners, getAllSharedObjects, getAttribute, getAttributes, getAttributesMap, getBooleanValueOfVariable, getChannelLogTable, getContainerObjectId, getContentChangedListeners, getCreatedDate, getCreatedUser, getDatabase, getDatabaseNames, getDatabases, getDescription, getEmbeddedMetaStore, getEmbeddedMetastoreProviderKey, getExtendedDescription, getFilename, getLogLevel, getMaxUndo, getMetaFileCache, getMetaStore, getMetastoreLocatorOsgi, getModifiedDate, getModifiedUser, getName, getNamedClusterServiceOsgi, getNote, getNote, getNoteIndexes, getNotes, getObjectCopy, getObjectId, getObjectName, getObjectRevision, getParameterDefault, getParameterDescription, getParameterValue, getParent, getParentVariableSpace, getPrivateDatabases, getRegistrationDate, getRepository, getRepositoryDirectory, getSelectedNotes, getSharedObjects, getSharedObjectsFile, getSlaveServerNames, getSlaveServers, getUndoSize, getVariable, getVariable, getVersioningEnabled, hashCode, haveConnectionsChanged, haveNotesChanged, importFromMetaStore, indexOfDatabase, indexOfNote, injectVariables, isAlwaysShowRunOptions, isClearingLog, isSafeModeEnabled, isShowDialog, listParameters, listVariables, loadSharedObject, lowerNote, mergeParametersWith, nameFromFilename, nextUndo, notifyObservers, nrDatabases, nrNotes, previousUndo, raiseNote, readSharedObjects, removeContentChangedListener, removeCurrentDirectoryChangedListener, removeDatabase, removeFilenameChangedListener, removeNameChangedListener, removeNote, saveMetaStoreObjects, saveSharedObjects, setAlwaysShowRunOptions, setAttribute, setAttributes, setAttributesMap, setCarteObjectId, setChanged, setChanged, setChannelLogTable, setClearingLog, setCreatedDate, setCreatedUser, setDatabases, setDescription, setExtendedDescription, setFilename, setInternalKettleVariables, setLogLevel, setMaxUndo, setMetaFileCache, setMetaStore, setMetastoreLocatorOsgi, setModifiedDate, setModifiedUser, setName, setNamedClusterServiceOsgi, setObjectId, setObjectRevision, setParameterValue, setParentVariableSpace, setPrivateDatabases, setRepository, setRepositoryDirectory, setSafeModeEnabled, setSharedObjects, setSharedObjectsFile, setShowDialog, setSlaveServers, setVariable, setVersioningEnabled, shareVariablesWith, shouldOverwrite, viewNextUndo, viewPreviousUndo, viewThisUndo
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.pentaho.di.core.logging.LoggingObjectInterface
getContainerObjectId, getFilename, getLogLevel, getObjectCopy, getObjectId, getObjectName, getObjectRevision, getParent, getRegistrationDate, getRepositoryDirectory
-
Methods inherited from interface org.pentaho.di.core.logging.LoggingObjectLifecycleInterface
callAfterLog, callBeforeLog
-
-
-
-
Field Detail
-
XML_TAG
public static final String XML_TAG
- See Also:
- Constant Field Values
-
XML_TAG_SLAVESERVERS
protected static final String XML_TAG_SLAVESERVERS
- See Also:
- Constant Field Values
-
REPOSITORY_ELEMENT_TYPE
public static final org.pentaho.di.repository.RepositoryObjectType REPOSITORY_ELEMENT_TYPE
A constant specifying the repository element type as a Job.
-
jobVersion
protected String jobVersion
-
jobStatus
protected int jobStatus
-
jobcopies
protected List<JobEntryCopy> jobcopies
-
jobhops
protected List<JobHopMeta> jobhops
-
arguments
protected String[] arguments
-
changedEntries
protected boolean changedEntries
-
changedHops
protected boolean changedHops
-
jobLogTable
protected JobLogTable jobLogTable
-
jobEntryLogTable
protected JobEntryLogTable jobEntryLogTable
-
extraLogTables
protected List<LogTableInterface> extraLogTables
-
startCopyName
protected String startCopyName
-
expandingRemoteJob
protected boolean expandingRemoteJob
-
gatheringMetrics
protected boolean gatheringMetrics
-
log
protected org.pentaho.di.core.logging.LogChannelInterface log
The log channel interface.
-
STRING_SPECIAL
public static final String STRING_SPECIAL
Constant = "SPECIAL"- See Also:
- Constant Field Values
-
STRING_SPECIAL_START
public static final String STRING_SPECIAL_START
Constant = "START"- See Also:
- Constant Field Values
-
STRING_SPECIAL_DUMMY
public static final String STRING_SPECIAL_DUMMY
Constant = "DUMMY"- See Also:
- Constant Field Values
-
STRING_SPECIAL_OK
public static final String STRING_SPECIAL_OK
Constant = "OK"- See Also:
- Constant Field Values
-
STRING_SPECIAL_ERROR
public static final String STRING_SPECIAL_ERROR
Constant = "ERROR"- See Also:
- Constant Field Values
-
max
public boolean[] max
List of booleans indicating whether or not to remember the size and position of the different windows...
-
batchIdPassed
protected boolean batchIdPassed
-
XML_TAG_PARAMETERS
protected static final String XML_TAG_PARAMETERS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JobMeta
public JobMeta()
Instantiates a new job meta.
-
JobMeta
public JobMeta(String fname, Repository rep) throws org.pentaho.di.core.exception.KettleXMLException
Instantiates a new job meta.- Parameters:
fname- the fnamerep- the rep- Throws:
org.pentaho.di.core.exception.KettleXMLException- the kettle xml exception
-
JobMeta
public JobMeta(String fname, Repository rep, org.pentaho.di.core.gui.OverwritePrompter prompter) throws org.pentaho.di.core.exception.KettleXMLException
Instantiates a new job meta.- Parameters:
fname- the fnamerep- the repprompter- the prompter- Throws:
org.pentaho.di.core.exception.KettleXMLException- the kettle xml exception
-
JobMeta
@Deprecated public JobMeta(org.pentaho.di.core.variables.VariableSpace parentSpace, String fname, Repository rep, org.pentaho.di.core.gui.OverwritePrompter prompter) throws org.pentaho.di.core.exception.KettleXMLException
Deprecated.Load the job from the XML file specified.- Parameters:
fname- The filename to load as a jobrep- The repository to bind againt, null if there is no repository available.- Throws:
org.pentaho.di.core.exception.KettleXMLException
-
JobMeta
public JobMeta(org.pentaho.di.core.variables.VariableSpace parentSpace, String fname, Repository rep, org.pentaho.metastore.api.IMetaStore metaStore, org.pentaho.di.core.gui.OverwritePrompter prompter) throws org.pentaho.di.core.exception.KettleXMLExceptionLoad the job from the XML file specified.- Parameters:
fname- The filename to load as a jobrep- The repository to bind againt, null if there is no repository available.- Throws:
org.pentaho.di.core.exception.KettleXMLException
-
JobMeta
public JobMeta(InputStream inputStream, Repository rep, org.pentaho.di.core.gui.OverwritePrompter prompter) throws org.pentaho.di.core.exception.KettleXMLException
Instantiates a new job meta.- Parameters:
inputStream- the input streamrep- the repprompter- the prompter- Throws:
org.pentaho.di.core.exception.KettleXMLException- the kettle xml exception
-
JobMeta
public JobMeta(Node jobnode, Repository rep, org.pentaho.di.core.gui.OverwritePrompter prompter) throws org.pentaho.di.core.exception.KettleXMLException
Create a new JobMeta object by loading it from a a DOM node.- Parameters:
jobnode- The node to load fromrep- The reference to a repository to load additional information fromprompter- The prompter to use in case a shared object gets overwritten- Throws:
org.pentaho.di.core.exception.KettleXMLException
-
JobMeta
public JobMeta(Node jobnode, Repository rep, boolean ignoreRepositorySharedObjects, org.pentaho.di.core.gui.OverwritePrompter prompter) throws org.pentaho.di.core.exception.KettleXMLException
Create a new JobMeta object by loading it from a a DOM node.- Parameters:
jobnode- The node to load fromrep- The reference to a repository to load additional information fromignoreRepositorySharedObjects- Do not load shared objects, handled separatelyprompter- The prompter to use in case a shared object gets overwritten- Throws:
org.pentaho.di.core.exception.KettleXMLException
-
-
Method Detail
-
clear
public void clear()
Clears or reinitializes many of the JobMeta properties.- Overrides:
clearin classAbstractMeta
-
addDefaults
public void addDefaults()
Adds the defaults.
-
createStartEntry
public static final JobEntryCopy createStartEntry()
Creates the start entry.- Returns:
- the job entry copy
-
createDummyEntry
public static final JobEntryCopy createDummyEntry()
Creates the dummy entry.- Returns:
- the job entry copy
-
getStart
public JobEntryCopy getStart()
Gets the start.- Returns:
- the start
-
getDummy
public JobEntryCopy getDummy()
Gets the dummy.- Returns:
- the dummy
-
compare
public int compare(JobMeta j1, JobMeta j2)
Compares two job on name, filename, repository directory, etc. The comparison algorithm is as follows:
- The first job's filename is checked first; if it has none, the job comes from a repository. If the second job does not come from a repository, -1 is returned.
- If the jobs are both from a repository, the jobs' names are compared. If the first job has no name and the second one does, a -1 is returned. If the opposite is true, a 1 is returned.
- If they both have names they are compared as strings. If the result is non-zero it is returned. Otherwise the repository directories are compared using the same technique of checking empty values and then performing a string comparison, returning any non-zero result.
- If the names and directories are equal, the object revision strings are compared using the same technique of checking empty values and then performing a string comparison, this time ultimately returning the result of the string compare.
- If the first job does not come from a repository and the second one does, a 1 is returned. Otherwise the job names and filenames are subsequently compared using the same technique of checking empty values and then performing a string comparison, ultimately returning the result of the filename string comparison.
- Parameters:
j1- the first job to comparej2- the second job to compare- Returns:
- 0 if the two jobs are equal, 1 or -1 depending on the values (see description above)
-
compareTo
public int compareTo(JobMeta o)
Compares this job's meta-data to the specified job's meta-data. This method simply calls compare(this, o)- Specified by:
compareToin interfaceComparable<JobMeta>- Parameters:
o- the o- Returns:
- the int
- See Also:
compare(JobMeta, JobMeta),Comparable.compareTo(java.lang.Object)
-
equals
public boolean equals(Object obj)
Checks whether this job's meta-data object is equal to the specified object. If the specified object is not an instance of JobMeta, false is returned. Otherwise the method returns whether a call to compare() indicates equality (i.e. compare(this, (JobMeta)obj)==0).- Overrides:
equalsin classObject- Parameters:
obj- the obj- Returns:
- true, if successful
- See Also:
compare(JobMeta, JobMeta),Object.equals(java.lang.Object)
-
clone
public Object clone()
Clones the job meta-data object.- Overrides:
clonein classObject- Returns:
- a clone of the job meta-data object
- See Also:
Object.clone()
-
realClone
public Object realClone(boolean doClear)
Perform a real clone of the job meta-data object, including cloning all lists and copying all values. If the doClear parameter is true, the clone will be cleared of ALL values before the copy. If false, only the copied fields will be cleared.- Parameters:
doClear- Whether to clear all of the clone's data before copying from the source object- Returns:
- a real clone of the calling object
-
getJobLogTable
public JobLogTable getJobLogTable()
Gets the job log table.- Returns:
- the job log table
-
setJobLogTable
public void setJobLogTable(JobLogTable jobLogTable)
Sets the job log table.- Parameters:
jobLogTable- the new job log table
-
clearChanged
public void clearChanged()
Clears the different changed flags of the job.- Specified by:
clearChangedin interfaceChangedFlagInterface- Specified by:
clearChangedin interfaceEngineMetaInterface- Overrides:
clearChangedin classAbstractMeta
-
hasChanged
public boolean hasChanged()
- Specified by:
hasChangedin interfaceChangedFlagInterface- Overrides:
hasChangedin classAbstractMeta
-
isDatabaseConnectionUsed
public boolean isDatabaseConnectionUsed(org.pentaho.di.core.database.DatabaseMeta databaseMeta)
This method asks all steps in the transformation whether or not the specified database connection is used. The connection is used in the transformation if any of the steps uses it or if it is being used to log to.- Parameters:
databaseMeta- The connection to check- Returns:
- true if the connection is used in this transformation.
-
getFileType
public String getFileType()
Description copied from interface:EngineMetaInterfaceGets the file type.- Specified by:
getFileTypein interfaceEngineMetaInterface- Returns:
- the file type
-
getFilterNames
public String[] getFilterNames()
Gets the job filter names.- Specified by:
getFilterNamesin interfaceEngineMetaInterface- Returns:
- the filter names
- See Also:
EngineMetaInterface.getFilterNames()
-
getFilterExtensions
public String[] getFilterExtensions()
Gets the job filter extensions. For JobMeta, this method returns the value ofConst.STRING_JOB_FILTER_EXT- Specified by:
getFilterExtensionsin interfaceEngineMetaInterface- Returns:
- the filter extensions
- See Also:
EngineMetaInterface.getFilterExtensions()
-
getDefaultExtension
public String getDefaultExtension()
Gets the default extension for a job. For JobMeta, this method returns the value ofConst.STRING_JOB_DEFAULT_EXT- Specified by:
getDefaultExtensionin interfaceEngineMetaInterface- Returns:
- the default extension
- See Also:
EngineMetaInterface.getDefaultExtension()
-
getXML
public String getXML()
Description copied from interface:EngineMetaInterfaceGets the XML representation.- Specified by:
getXMLin interfaceEngineMetaInterface- Specified by:
getXMLin interfaceorg.pentaho.di.core.xml.XMLInterface- Returns:
- the XML representation of this transformation
- See Also:
XMLInterface.getXML()
-
isRepReference
public boolean isRepReference()
Checks if is rep reference.- Returns:
- true, if is rep reference
-
isFileReference
public boolean isFileReference()
Checks if is file reference.- Returns:
- true, if is file reference
-
isRepReference
public static boolean isRepReference(String fileName, String transName)
Checks if is rep reference.- Parameters:
fileName- the file nametransName- the trans name- Returns:
- true, if is rep reference
-
isFileReference
public static boolean isFileReference(String fileName, String transName)
Checks if is file reference.- Parameters:
fileName- the file nametransName- the trans name- Returns:
- true, if is file reference
-
loadXML
public void loadXML(Node jobnode, Repository rep, org.pentaho.di.core.gui.OverwritePrompter prompter) throws org.pentaho.di.core.exception.KettleXMLException
Load xml.- Parameters:
jobnode- the jobnoderep- the repprompter- the prompter- Throws:
org.pentaho.di.core.exception.KettleXMLException- the kettle xml exception
-
loadXML
public void loadXML(Node jobnode, String fname, Repository rep, org.pentaho.di.core.gui.OverwritePrompter prompter) throws org.pentaho.di.core.exception.KettleXMLException
Load xml.- Parameters:
jobnode- the jobnodefname- The filenamerep- the repprompter- the prompter- Throws:
org.pentaho.di.core.exception.KettleXMLException- the kettle xml exception
-
loadXML
public void loadXML(Node jobnode, Repository rep, boolean ignoreRepositorySharedObjects, org.pentaho.di.core.gui.OverwritePrompter prompter) throws org.pentaho.di.core.exception.KettleXMLException
Load a block of XML from an DOM node.- Parameters:
jobnode- The node to load fromrep- The reference to a repository to load additional information fromignoreRepositorySharedObjects- Do not load shared objects, handled separatelyprompter- The prompter to use in case a shared object gets overwritten- Throws:
org.pentaho.di.core.exception.KettleXMLException
-
loadXML
@Deprecated public void loadXML(Node jobnode, String fname, Repository rep, boolean ignoreRepositorySharedObjects, org.pentaho.di.core.gui.OverwritePrompter prompter) throws org.pentaho.di.core.exception.KettleXMLException
Deprecated.Load a block of XML from an DOM node.- Parameters:
jobnode- The node to load fromfname- The filenamerep- The reference to a repository to load additional information fromignoreRepositorySharedObjects- Do not load shared objects, handled separatelyprompter- The prompter to use in case a shared object gets overwritten- Throws:
org.pentaho.di.core.exception.KettleXMLException
-
loadXML
public void loadXML(Node jobnode, String fname, Repository rep, org.pentaho.metastore.api.IMetaStore metaStore, boolean ignoreRepositorySharedObjects, org.pentaho.di.core.gui.OverwritePrompter prompter) throws org.pentaho.di.core.exception.KettleXMLException
Load a block of XML from an DOM node.- Parameters:
jobnode- The node to load fromfname- The filenamerep- The reference to a repository to load additional information frommetaStore- the MetaStore to useignoreRepositorySharedObjects- Do not load shared objects, handled separatelyprompter- The prompter to use in case a shared object gets overwritten- Throws:
org.pentaho.di.core.exception.KettleXMLException
-
getJobEntryCopy
public JobEntryCopy getJobEntryCopy(int x, int y, int iconsize)
Gets the job entry copy.- Parameters:
x- the xy- the yiconsize- the iconsize- Returns:
- the job entry copy
-
nrJobEntries
public int nrJobEntries()
Nr job entries.- Returns:
- the int
-
nrJobHops
public int nrJobHops()
Nr job hops.- Returns:
- the int
-
getJobHop
public JobHopMeta getJobHop(int i)
Gets the job hop.- Parameters:
i- the i- Returns:
- the job hop
-
getJobEntry
public JobEntryCopy getJobEntry(int i)
Gets the job entry.- Parameters:
i- the i- Returns:
- the job entry
-
addJobEntry
public void addJobEntry(JobEntryCopy je)
Adds the job entry.- Parameters:
je- the je
-
addJobHop
public void addJobHop(JobHopMeta hi)
Adds the job hop.- Parameters:
hi- the hi
-
addJobEntry
public void addJobEntry(int p, JobEntryCopy si)Adds the job entry.- Parameters:
p- the psi- the si
-
addJobHop
public void addJobHop(int p, JobHopMeta hi)Adds the job hop.- Parameters:
p- the phi- the hi
-
removeJobEntry
public void removeJobEntry(int i)
Removes the job entry.- Parameters:
i- the i
-
removeJobHop
public void removeJobHop(int i)
Removes the job hop.- Parameters:
i- the i
-
removeJobHop
public void removeJobHop(JobHopMeta hop)
Removes a hop from the transformation. Also marks that the transformation's hops have changed.- Parameters:
hop- The hop to remove from the list of hops
-
indexOfJobHop
public int indexOfJobHop(JobHopMeta he)
Index of job hop.- Parameters:
he- the he- Returns:
- the int
-
indexOfJobEntry
public int indexOfJobEntry(JobEntryCopy ge)
Index of job entry.- Parameters:
ge- the ge- Returns:
- the int
-
setJobEntry
public void setJobEntry(int idx, JobEntryCopy jec)Sets the job entry.- Parameters:
idx- the idxjec- the jec
-
findJobEntry
public JobEntryCopy findJobEntry(String name, int nr, boolean searchHiddenToo)
Find an existing JobEntryCopy by it's name and number- Parameters:
name- The name of the job entry copynr- The number of the job entry copy- Returns:
- The JobEntryCopy or null if nothing was found!
-
findJobEntry
public JobEntryCopy findJobEntry(String full_name_nr)
Find job entry.- Parameters:
full_name_nr- the full_name_nr- Returns:
- the job entry copy
-
findJobHop
public JobHopMeta findJobHop(String name)
Find job hop.- Parameters:
name- the name- Returns:
- the job hop meta
-
findJobHopFrom
public JobHopMeta findJobHopFrom(JobEntryCopy jge)
Find job hop from.- Parameters:
jge- the jge- Returns:
- the job hop meta
-
findJobHop
public JobHopMeta findJobHop(JobEntryCopy from, JobEntryCopy to)
Find job hop.- Parameters:
from- the fromto- the to- Returns:
- the job hop meta
-
findJobHop
public JobHopMeta findJobHop(JobEntryCopy from, JobEntryCopy to, boolean includeDisabled)
Find job hop.- Parameters:
from- the fromto- the toincludeDisabled- the include disabled- Returns:
- the job hop meta
-
findJobHopTo
public JobHopMeta findJobHopTo(JobEntryCopy jge)
Find job hop to.- Parameters:
jge- the jge- Returns:
- the job hop meta
-
findNrPrevJobEntries
public int findNrPrevJobEntries(JobEntryCopy from)
Find nr prev job entries.- Parameters:
from- the from- Returns:
- the int
-
findPrevJobEntry
public JobEntryCopy findPrevJobEntry(JobEntryCopy to, int nr)
Find prev job entry.- Parameters:
to- the tonr- the nr- Returns:
- the job entry copy
-
findNrPrevJobEntries
public int findNrPrevJobEntries(JobEntryCopy to, boolean info)
Find nr prev job entries.- Parameters:
to- the toinfo- the info- Returns:
- the int
-
findPrevJobEntry
public JobEntryCopy findPrevJobEntry(JobEntryCopy to, int nr, boolean info)
Find prev job entry.- Parameters:
to- the tonr- the nrinfo- the info- Returns:
- the job entry copy
-
findNrNextJobEntries
public int findNrNextJobEntries(JobEntryCopy from)
Find nr next job entries.- Parameters:
from- the from- Returns:
- the int
-
findNextJobEntry
public JobEntryCopy findNextJobEntry(JobEntryCopy from, int cnt)
Find next job entry.- Parameters:
from- the fromcnt- the cnt- Returns:
- the job entry copy
-
hasLoop
public boolean hasLoop(JobEntryCopy entry)
Checks for loop.- Parameters:
entry- the entry- Returns:
- true, if successful
-
hasLoop
@Deprecated public boolean hasLoop(JobEntryCopy entry, JobEntryCopy lookup, boolean info)
Deprecated.
-
hasLoop
public boolean hasLoop(JobEntryCopy entry, JobEntryCopy lookup)
Checks for loop.- Parameters:
entry- the entrylookup- the lookup- Returns:
- true, if successful
-
isEntryUsedInHops
public boolean isEntryUsedInHops(JobEntryCopy jge)
Checks if is entry used in hops.- Parameters:
jge- the jge- Returns:
- true, if is entry used in hops
-
countEntries
public int countEntries(String name)
Count entries.- Parameters:
name- the name- Returns:
- the int
-
findUnusedNr
public int findUnusedNr(String name)
Find unused nr.- Parameters:
name- the name- Returns:
- the int
-
findMaxNr
public int findMaxNr(String name)
Find max nr.- Parameters:
name- the name- Returns:
- the int
-
getAlternativeJobentryName
public String getAlternativeJobentryName(String entryname)
Proposes an alternative job entry name when the original already exists...- Parameters:
entryname- The job entry name to find an alternative for..- Returns:
- The alternative stepname.
-
getAllJobGraphEntries
public JobEntryCopy[] getAllJobGraphEntries(String name)
Gets the all job graph entries.- Parameters:
name- the name- Returns:
- the all job graph entries
-
getAllJobHopsUsing
public JobHopMeta[] getAllJobHopsUsing(String name)
Gets the all job hops using.- Parameters:
name- the name- Returns:
- the all job hops using
-
isPathExist
public boolean isPathExist(JobEntryInterface from, JobEntryInterface to)
-
selectAll
public void selectAll()
Select all.
-
unselectAll
public void unselectAll()
Unselect all.
-
getMaximum
public org.pentaho.di.core.gui.Point getMaximum()
Gets the maximum.- Returns:
- the maximum
-
getMinimum
public org.pentaho.di.core.gui.Point getMinimum()
Get the minimum point on the canvas of a job- Returns:
- Minimum coordinate of a step in the job
-
getSelectedLocations
public org.pentaho.di.core.gui.Point[] getSelectedLocations()
Gets the selected locations.- Returns:
- the selected locations
-
getSelectedNoteLocations
public org.pentaho.di.core.gui.Point[] getSelectedNoteLocations()
Get all the selected note locations- Returns:
- The selected step and notes locations.
-
getSelectedEntries
public List<JobEntryCopy> getSelectedEntries()
Gets the selected entries.- Returns:
- the selected entries
-
getEntryIndexes
public int[] getEntryIndexes(List<JobEntryCopy> entries)
Gets the entry indexes.- Parameters:
entries- the entries- Returns:
- the entry indexes
-
findStart
public JobEntryCopy findStart()
Find start.- Returns:
- the job entry copy
-
toString
public String toString()
Gets a textual representation of the job. If its name has been set, it will be returned, otherwise the classname is returned.
-
isBatchIdPassed
public boolean isBatchIdPassed()
Gets the boolean value of batch id passed.- Returns:
- Returns the batchIdPassed.
-
setBatchIdPassed
public void setBatchIdPassed(boolean batchIdPassed)
Sets the batch id passed.- Parameters:
batchIdPassed- The batchIdPassed to set.
-
getSQLStatements
public List<org.pentaho.di.core.SQLStatement> getSQLStatements(Repository repository, org.pentaho.di.core.ProgressMonitorListener monitor) throws org.pentaho.di.core.exception.KettleException
- Throws:
org.pentaho.di.core.exception.KettleException
-
getSQLStatements
public List<org.pentaho.di.core.SQLStatement> getSQLStatements(Repository repository, org.pentaho.metastore.api.IMetaStore metaStore, org.pentaho.di.core.ProgressMonitorListener monitor) throws org.pentaho.di.core.exception.KettleException
Builds a list of all the SQL statements that this transformation needs in order to work properly.- Returns:
- An ArrayList of SQLStatement objects.
- Throws:
org.pentaho.di.core.exception.KettleException
-
getArguments
@Deprecated public String[] getArguments()
Deprecated.Moved to the Job classGets the arguments used for this job.- Returns:
- Returns the arguments.
-
setArguments
@Deprecated public void setArguments(String[] arguments)
Deprecated.moved to the job classSets the arguments.- Parameters:
arguments- The arguments to set.
-
getStringList
public List<StringSearchResult> getStringList(boolean searchSteps, boolean searchDatabases, boolean searchNotes)
Get a list of all the strings used in this job.- Returns:
- A list of StringSearchResult with strings used in the job
-
getUsedVariables
public List<String> getUsedVariables()
Gets the used variables.- Returns:
- the used variables
-
haveJobEntriesChanged
public boolean haveJobEntriesChanged()
Have job entries changed.- Returns:
- true, if successful
-
haveJobHopsChanged
public boolean haveJobHopsChanged()
Have job hops changed.- Returns:
- true, if successful
-
getJobversion
public String getJobversion()
Gets the version of the job.- Returns:
- The version of the job
-
getJobstatus
public int getJobstatus()
Gets the status of the job.- Returns:
- the status of the job
-
setJobversion
public void setJobversion(String jobVersion)
Set the version of the job.- Parameters:
jobVersion- The new version description of the job
-
setJobstatus
public void setJobstatus(int jobStatus)
Set the status of the job.- Parameters:
jobStatus- The new status description of the job
-
findJobEntry
public static final JobEntryInterface findJobEntry(List<JobEntryInterface> jobentries, org.pentaho.di.repository.ObjectId id_jobentry)
Find a jobentry with a certain ID in a list of job entries.- Parameters:
jobentries- The List of jobentriesid_jobentry- The id of the jobentry- Returns:
- The JobEntry object if one was found, null otherwise.
-
findJobEntryCopy
public static final JobEntryCopy findJobEntryCopy(List<JobEntryCopy> jobcopies, org.pentaho.di.repository.ObjectId id_jobentry_copy)
Find a jobentrycopy with a certain ID in a list of job entry copies.- Parameters:
jobcopies- The List of jobentry copiesid_jobentry_copy- The id of the jobentry copy- Returns:
- The JobEntryCopy object if one was found, null otherwise.
-
initializeVariablesFrom
public void initializeVariablesFrom(org.pentaho.di.core.variables.VariableSpace parent)
- Specified by:
initializeVariablesFromin interfaceorg.pentaho.di.core.variables.VariableSpace- Overrides:
initializeVariablesFromin classAbstractMeta
-
setInternalKettleVariables
public void setInternalKettleVariables(org.pentaho.di.core.variables.VariableSpace var)
This method sets various internal kettle variables that can be used by the transformation.- Specified by:
setInternalKettleVariablesin classAbstractMeta
-
updateCurrentDir
protected void updateCurrentDir()
-
setInternalNameKettleVariable
protected void setInternalNameKettleVariable(org.pentaho.di.core.variables.VariableSpace var)
Sets the internal name kettle variable.- Specified by:
setInternalNameKettleVariablein classAbstractMeta- Parameters:
var- the new internal name kettle variable
-
setInternalFilenameKettleVariables
protected void setInternalFilenameKettleVariables(org.pentaho.di.core.variables.VariableSpace var)
Sets the internal filename kettle variables.- Specified by:
setInternalFilenameKettleVariablesin classAbstractMeta- Parameters:
var- the new internal filename kettle variables
-
setInternalEntryCurrentDirectory
protected void setInternalEntryCurrentDirectory()
-
checkJobEntries
@Deprecated public void checkJobEntries(List<org.pentaho.di.core.CheckResultInterface> remarks, boolean only_selected, org.pentaho.di.core.ProgressMonitorListener monitor)
Deprecated.
-
checkJobEntries
public void checkJobEntries(List<org.pentaho.di.core.CheckResultInterface> remarks, boolean only_selected, org.pentaho.di.core.ProgressMonitorListener monitor, org.pentaho.di.core.variables.VariableSpace space, Repository repository, org.pentaho.metastore.api.IMetaStore metaStore)
Check all job entries within the job. Each Job Entry has the opportunity to check their own settings.- Parameters:
remarks- List of CheckResult remarks inserted into by each JobEntryonly_selected- true if you only want to check the selected jobsmonitor- Progress monitor (not presently in use)
-
getResourceDependencies
public List<ResourceReference> getResourceDependencies()
Gets the resource dependencies.- Returns:
- the resource dependencies
-
exportResources
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
Description copied from interface:ResourceExportInterfaceExports the object to a flat-file system, adding content with filename keys to a set of definitions. The supplied resource naming interface allows the object to name appropriately without worrying about those parts of the implementation specific details.- Specified by:
exportResourcesin interfaceResourceExportInterface- Parameters:
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 name appropriatelyrepository- the repository object to load frommetaStore- the central metastore to load non-kettle specific metadata from- Returns:
- The filename for this object. (also contained in the definitions map)
- Throws:
org.pentaho.di.core.exception.KettleException- in case something goes wrong during the export
-
renameJobEntryIfNameCollides
public void renameJobEntryIfNameCollides(JobEntryCopy je)
See if the name of the supplied job entry copy doesn't collide with any other job entry copy in the job.- Parameters:
je- The job entry copy to verify the name for.
-
getJobCopies
public List<JobEntryCopy> getJobCopies()
Gets the job copies.- Returns:
- the job copies
-
getJobhops
public List<JobHopMeta> getJobhops()
Gets the jobhops.- Returns:
- the jobhops
-
getRepositoryElementType
public org.pentaho.di.repository.RepositoryObjectType getRepositoryElementType()
- Specified by:
getRepositoryElementTypein interfaceorg.pentaho.di.repository.RepositoryElementInterface
-
getLogChannel
public org.pentaho.di.core.logging.LogChannelInterface getLogChannel()
Gets the log channel.- Returns:
- the log channel
-
composeJobEntryInterfaceList
public List<JobEntryInterface> composeJobEntryInterfaceList()
Create a unique list of job entry interfaces- Returns:
-
getLogChannelId
public String getLogChannelId()
- Specified by:
getLogChannelIdin interfaceorg.pentaho.di.core.logging.LoggingObjectInterface
-
getObjectType
public org.pentaho.di.core.logging.LoggingObjectType getObjectType()
- Specified by:
getObjectTypein interfaceorg.pentaho.di.core.logging.LoggingObjectInterface
-
getJobEntryLogTable
public JobEntryLogTable getJobEntryLogTable()
Gets the job entry log table.- Returns:
- the jobEntryLogTable
-
setJobEntryLogTable
public void setJobEntryLogTable(JobEntryLogTable jobEntryLogTable)
Sets the job entry log table.- Parameters:
jobEntryLogTable- the jobEntryLogTable to set
-
getLogTables
public List<LogTableInterface> getLogTables()
Gets the log tables.- Returns:
- the log tables
-
hasRepositoryReferences
public boolean hasRepositoryReferences()
Checks whether the job has repository references.- Returns:
- true if the job has repository references, false otherwise
-
lookupRepositoryReferences
public void lookupRepositoryReferences(Repository repository) throws org.pentaho.di.core.exception.KettleException
Look up the references after import- Parameters:
repository- the repository to reference.- Throws:
org.pentaho.di.core.exception.KettleException
-
isGatheringMetrics
public boolean isGatheringMetrics()
Returns whether or not the job is gathering metrics. The job will not gather metrics per se, but can pass this information into executable transformations.- Specified by:
isGatheringMetricsin interfaceorg.pentaho.di.core.logging.LoggingObjectInterface- Returns:
- the gatheringMetrics state
-
setGatheringMetrics
public void setGatheringMetrics(boolean gatheringMetrics)
Sets whether or not the job is gathering metrics.- Specified by:
setGatheringMetricsin interfaceorg.pentaho.di.core.logging.LoggingObjectInterface
-
isForcingSeparateLogging
public boolean isForcingSeparateLogging()
- Specified by:
isForcingSeparateLoggingin interfaceorg.pentaho.di.core.logging.LoggingObjectInterface
-
setForcingSeparateLogging
public void setForcingSeparateLogging(boolean forcingSeparateLogging)
- Specified by:
setForcingSeparateLoggingin interfaceorg.pentaho.di.core.logging.LoggingObjectInterface
-
getExtraLogTables
public List<LogTableInterface> getExtraLogTables()
-
setExtraLogTables
public void setExtraLogTables(List<LogTableInterface> extraLogTables)
-
containsJobCopy
public boolean containsJobCopy(JobEntryCopy jobCopy)
-
getMissingEntries
public List<MissingEntry> getMissingEntries()
-
addMissingEntry
public void addMissingEntry(MissingEntry missingEntry)
-
removeMissingEntry
public void removeMissingEntry(MissingEntry missingEntry)
-
hasMissingPlugins
public boolean hasMissingPlugins()
- Overrides:
hasMissingPluginsin classAbstractMeta
-
getNamedClusterEmbedManager
public NamedClusterEmbedManager getNamedClusterEmbedManager()
- Overrides:
getNamedClusterEmbedManagerin classAbstractMeta
-
getStartCopyName
public String getStartCopyName()
-
setStartCopyName
public void setStartCopyName(String startCopyName)
-
isExpandingRemoteJob
public boolean isExpandingRemoteJob()
-
setExpandingRemoteJob
public void setExpandingRemoteJob(boolean expandingRemoteJob)
-
-