|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.di.core.changed.ChangedFlag
org.pentaho.di.job.JobMeta
public class JobMeta
Defines a Job and provides methods to load, save, verify, etc.
| Field Summary | |
|---|---|
boolean[] |
max
|
static org.pentaho.di.repository.RepositoryObjectType |
REPOSITORY_ELEMENT_TYPE
|
static String |
STRING_SPECIAL
|
static String |
STRING_SPECIAL_DUMMY
|
static String |
STRING_SPECIAL_ERROR
|
static String |
STRING_SPECIAL_OK
|
static String |
STRING_SPECIAL_START
|
static int |
TYPE_UNDO_CHANGE
|
static int |
TYPE_UNDO_DELETE
|
static int |
TYPE_UNDO_NEW
|
static int |
TYPE_UNDO_POSITION
|
static String |
XML_TAG
|
| Constructor Summary | |
|---|---|
JobMeta()
|
|
JobMeta(InputStream inputStream,
Repository rep,
org.pentaho.di.core.gui.OverwritePrompter prompter)
|
|
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. |
|
JobMeta(String fname,
Repository rep)
|
|
JobMeta(String fname,
Repository rep,
org.pentaho.di.core.gui.OverwritePrompter prompter)
|
|
JobMeta(org.pentaho.di.core.variables.VariableSpace parentSpace,
String fname,
Repository rep,
org.pentaho.di.core.gui.OverwritePrompter prompter)
Load the job from the XML file specified. |
|
| Method Summary | |
|---|---|
void |
activateParameters()
|
void |
addDatabase(org.pentaho.di.core.database.DatabaseMeta ci)
Add a database connection to the transformation. |
void |
addDatabase(int p,
org.pentaho.di.core.database.DatabaseMeta ci)
Add a database connection to the transformation on a certain location. |
void |
addDefaults()
|
void |
addFilenameChangedListener(FilenameChangedListener listener)
|
void |
addJobEntry(int p,
JobEntryCopy si)
|
void |
addJobEntry(JobEntryCopy je)
|
void |
addJobHop(int p,
JobHopMeta hi)
|
void |
addJobHop(JobHopMeta hi)
|
void |
addNameChangedListener(NameChangedListener listener)
|
void |
addNote(int p,
NotePadMeta ni)
|
void |
addNote(NotePadMeta ni)
|
void |
addOrReplaceDatabase(org.pentaho.di.core.database.DatabaseMeta databaseMeta)
Add a database connection to the transformation if that connection didn't exists yet. |
void |
addOrReplaceSlaveServer(SlaveServer slaveServer)
Add a new slave server to the transformation if that didn't exist yet. |
void |
addParameterDefinition(String key,
String defValue,
String description)
|
void |
addUndo(Object[] from,
Object[] to,
int[] pos,
org.pentaho.di.core.gui.Point[] prev,
org.pentaho.di.core.gui.Point[] curr,
int type_of_change,
boolean nextAlso)
Add an undo operation to the undo list |
boolean |
canSave()
|
void |
checkJobEntries(List<org.pentaho.di.core.CheckResultInterface> remarks,
boolean only_selected,
org.pentaho.di.core.ProgressMonitorListener monitor)
Check all job entries within the job. |
void |
clear()
|
void |
clearChanged()
|
void |
clearParameters()
|
void |
clearUndo()
|
Object |
clone()
|
int |
compare(JobMeta j1,
JobMeta j2)
Compares two transformation on name, filename |
int |
compareTo(JobMeta o)
|
List<JobEntryInterface> |
composeJobEntryInterfaceList()
Create a unique list of job entry interfaces |
void |
copyParametersFrom(org.pentaho.di.core.parameters.NamedParams params)
|
void |
copyVariablesFrom(org.pentaho.di.core.variables.VariableSpace space)
|
int |
countEntries(String name)
|
static JobEntryCopy |
createDummyEntry()
|
static JobEntryCopy |
createStartEntry()
|
String |
environmentSubstitute(String aString)
|
String[] |
environmentSubstitute(String[] aString)
|
boolean |
equals(Object obj)
|
void |
eraseParameters()
|
String |
exportResources(org.pentaho.di.core.variables.VariableSpace space,
Map<String,ResourceDefinition> definitions,
ResourceNamingInterface namingInterface,
Repository repository)
Exports the object to a flat-file system, adding content with filename keys to a set of definitions. |
org.pentaho.di.core.database.DatabaseMeta |
findDatabase(String name)
Find a database connection by it's name |
static 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. |
JobEntryCopy |
findJobEntry(String full_name_nr)
|
JobEntryCopy |
findJobEntry(String name,
int nr,
boolean searchHiddenToo)
Find an existing JobEntryCopy by it's name and number |
static 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. |
JobHopMeta |
findJobHop(JobEntryCopy from,
JobEntryCopy to)
|
JobHopMeta |
findJobHop(JobEntryCopy from,
JobEntryCopy to,
boolean includeDisabled)
|
JobHopMeta |
findJobHop(String name)
|
JobHopMeta |
findJobHopFrom(JobEntryCopy jge)
|
JobHopMeta |
findJobHopTo(JobEntryCopy jge)
|
int |
findMaxNr(String name)
|
JobEntryCopy |
findNextJobEntry(JobEntryCopy from,
int cnt)
|
int |
findNrNextJobEntries(JobEntryCopy from)
|
int |
findNrPrevJobEntries(JobEntryCopy from)
|
int |
findNrPrevJobEntries(JobEntryCopy to,
boolean info)
|
JobEntryCopy |
findPrevJobEntry(JobEntryCopy to,
int nr)
|
JobEntryCopy |
findPrevJobEntry(JobEntryCopy to,
int nr,
boolean info)
|
SlaveServer |
findSlaveServer(String serverString)
Find a slave server using the name |
JobEntryCopy |
findStart()
|
int |
findUnusedNr(String name)
|
JobEntryCopy[] |
getAllJobGraphEntries(String name)
|
JobHopMeta[] |
getAllJobHopsUsing(String name)
|
String |
getAlternativeJobentryName(String entryname)
Proposes an alternative job entry name when the original already exists... |
String[] |
getArguments()
|
boolean |
getBooleanValueOfVariable(String variableName,
boolean defaultValue)
|
ChannelLogTable |
getChannelLogTable()
|
String |
getContainerObjectId()
|
Date |
getCreatedDate()
|
String |
getCreatedUser()
|
org.pentaho.di.core.database.DatabaseMeta |
getDatabase(int i)
Retrieves a database connection information a a certain location. |
String[] |
getDatabaseNames()
|
List<org.pentaho.di.core.database.DatabaseMeta> |
getDatabases()
Get an ArrayList of defined DatabaseInfo objects. |
String |
getDefaultExtension()
|
String |
getDescription()
|
JobEntryCopy |
getDummy()
|
int[] |
getEntryIndexes(List<JobEntryCopy> entries)
|
String |
getExtendedDescription()
|
String |
getFilename()
|
String |
getFileType()
|
String[] |
getFilterExtensions()
|
String[] |
getFilterNames()
|
List<JobEntryCopy> |
getJobCopies()
|
JobEntryCopy |
getJobEntry(int i)
|
JobEntryCopy |
getJobEntryCopy(int x,
int y,
int iconsize)
|
JobEntryLogTable |
getJobEntryLogTable()
|
JobHopMeta |
getJobHop(int i)
|
List<JobHopMeta> |
getJobhops()
|
JobLogTable |
getJobLogTable()
|
int |
getJobstatus()
Get the status of the job |
String |
getJobversion()
|
String |
getLogChannelId()
|
org.pentaho.di.core.logging.LogLevel |
getLogLevel()
|
List<org.pentaho.di.core.logging.LogTableInterface> |
getLogTables()
|
org.pentaho.di.core.gui.Point |
getMaximum()
|
int |
getMaxUndo()
Get the maximum number of undo operations possible |
org.pentaho.di.core.gui.Point |
getMinimum()
Get the minimum point on the canvas of a job |
Date |
getModifiedDate()
|
String |
getModifiedUser()
|
String |
getName()
|
NotePadMeta |
getNote(int i)
|
NotePadMeta |
getNote(int x,
int y)
|
int[] |
getNoteIndexes(List<NotePadMeta> notes)
Get an array of the locations of an array of notes |
List<NotePadMeta> |
getNotes()
|
String |
getObjectCopy()
|
org.pentaho.di.repository.ObjectId |
getObjectId()
|
String |
getObjectName()
|
org.pentaho.di.repository.ObjectRevision |
getObjectRevision()
|
org.pentaho.di.core.logging.LoggingObjectType |
getObjectType()
|
String |
getParameterDefault(String key)
|
String |
getParameterDescription(String key)
|
String |
getParameterValue(String key)
|
org.pentaho.di.core.logging.LoggingObjectInterface |
getParent()
|
org.pentaho.di.core.variables.VariableSpace |
getParentVariableSpace()
|
Date |
getRegistrationDate()
Stub |
Repository |
getRepository()
|
org.pentaho.di.repository.RepositoryDirectoryInterface |
getRepositoryDirectory()
|
org.pentaho.di.repository.RepositoryObjectType |
getRepositoryElementType()
|
List<ResourceReference> |
getResourceDependencies()
|
List<JobEntryCopy> |
getSelectedEntries()
|
org.pentaho.di.core.gui.Point[] |
getSelectedLocations()
|
org.pentaho.di.core.gui.Point[] |
getSelectedNoteLocations()
Get all the selected note locations |
List<NotePadMeta> |
getSelectedNotes()
|
SharedObjects |
getSharedObjects()
|
String |
getSharedObjectsFile()
|
String[] |
getSlaveServerNames()
|
List<SlaveServer> |
getSlaveServers()
|
List<org.pentaho.di.core.SQLStatement> |
getSQLStatements(Repository repository,
org.pentaho.di.core.ProgressMonitorListener monitor)
Builds a list of all the SQL statements that this transformation needs in order to work properly. |
JobEntryCopy |
getStart()
|
List<StringSearchResult> |
getStringList(boolean searchSteps,
boolean searchDatabases,
boolean searchNotes)
Get a list of all the strings used in this job. |
int |
getUndoSize()
|
List<String> |
getUsedVariables()
|
String |
getVariable(String variableName)
|
String |
getVariable(String variableName,
String defaultValue)
|
String |
getXML()
|
boolean |
hasChanged()
|
boolean |
hasLoop(JobEntryCopy entry)
|
boolean |
hasLoop(JobEntryCopy entry,
JobEntryCopy lookup)
|
boolean |
hasRepositoryReferences()
|
boolean |
haveConnectionsChanged()
Checks whether or not the connections have changed. |
boolean |
haveJobEntriesChanged()
|
boolean |
haveJobHopsChanged()
|
boolean |
haveNotesChanged()
|
int |
indexOfDatabase(org.pentaho.di.core.database.DatabaseMeta di)
Find the location of database |
int |
indexOfJobEntry(JobEntryCopy ge)
|
int |
indexOfJobHop(JobHopMeta he)
|
int |
indexOfNote(NotePadMeta ni)
|
void |
initializeVariablesFrom(org.pentaho.di.core.variables.VariableSpace parent)
|
void |
injectVariables(Map<String,String> prop)
|
boolean |
isBatchIdPassed()
|
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. |
boolean |
isEntryUsedInHops(JobEntryCopy jge)
|
boolean |
isFileReference()
|
static boolean |
isFileReference(String fileName,
String transName)
|
boolean |
isRepReference()
|
static boolean |
isRepReference(String fileName,
String transName)
|
String[] |
listParameters()
|
String[] |
listVariables()
|
void |
loadXML(Node jobnode,
Repository rep,
boolean ignoreRepositorySharedObjects,
org.pentaho.di.core.gui.OverwritePrompter prompter)
Load a block of XML from an DOM node. |
void |
loadXML(Node jobnode,
Repository rep,
org.pentaho.di.core.gui.OverwritePrompter prompter)
|
void |
lookupRepositoryReferences(Repository repository)
Look up the references after import |
void |
lowerNote(int p)
|
void |
nameFromFilename()
Builds a name - if no name is set, yet - from the filename |
TransAction |
nextUndo()
Get the next undo transaction on the list. |
int |
nrDatabases()
Count the nr of databases in the transformation. |
int |
nrJobEntries()
|
int |
nrJobHops()
|
int |
nrNotes()
|
TransAction |
previousUndo()
Get the previous undo operation and change the undo pointer |
void |
raiseNote(int p)
|
SharedObjects |
readSharedObjects()
|
Object |
realClone(boolean doClear)
|
void |
removeDatabase(int i)
Removes a database from the transformation on a certain location. |
void |
removeFilenameChangedListener(FilenameChangedListener listener)
|
void |
removeJobEntry(int i)
|
void |
removeJobHop(int i)
|
void |
removeNameChangedListener(NameChangedListener listener)
|
void |
removeNote(int i)
|
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. |
void |
saveSharedObjects()
|
void |
selectAll()
|
void |
setArguments(String[] arguments)
|
void |
setBatchIdPassed(boolean batchIdPassed)
|
void |
setCarteObjectId(String containerObjectId)
|
void |
setChanged(boolean ch)
|
void |
setChannelLogTable(ChannelLogTable channelLogTable)
|
void |
setCreatedDate(Date createdDate)
|
void |
setCreatedUser(String createdUser)
|
void |
setDatabases(List<org.pentaho.di.core.database.DatabaseMeta> databases)
|
void |
setDescription(String description)
Set the description of the job. |
void |
setExtendedDescription(String extendedDescription)
Set the description of the job. |
void |
setFilename(String newFilename)
Set the filename of the job |
void |
setInternalKettleVariables()
Calls setInternalKettleVariables on the default object. |
void |
setInternalKettleVariables(org.pentaho.di.core.variables.VariableSpace var)
This method sets various internal kettle variables that can be used by the transformation. |
void |
setJobEntry(int idx,
JobEntryCopy jec)
|
void |
setJobEntryLogTable(JobEntryLogTable jobEntryLogTable)
|
void |
setJobLogTable(JobLogTable jobLogTable)
|
void |
setJobstatus(int jobStatus)
Set the status of the job. |
void |
setJobversion(String jobVersion)
Set the version of the job. |
void |
setLogLevel(org.pentaho.di.core.logging.LogLevel logLevel)
|
void |
setMaxUndo(int mu)
Sets the maximum number of undo operations that are allowed. |
void |
setModifiedDate(Date modifiedDate)
|
void |
setModifiedUser(String modifiedUser)
|
void |
setName(String newName)
Set the name of the job. |
void |
setObjectId(org.pentaho.di.repository.ObjectId objectId)
|
void |
setObjectRevision(org.pentaho.di.repository.ObjectRevision objectRevision)
|
void |
setParameterValue(String key,
String value)
|
void |
setParentVariableSpace(org.pentaho.di.core.variables.VariableSpace parent)
|
void |
setRepository(Repository repository)
|
void |
setRepositoryDirectory(org.pentaho.di.repository.RepositoryDirectoryInterface directory)
|
void |
setSharedObjects(SharedObjects sharedObjects)
|
void |
setSharedObjectsFile(String sharedObjectsFile)
|
void |
setSlaveServers(List<SlaveServer> slaveServers)
|
void |
setVariable(String variableName,
String variableValue)
|
void |
shareVariablesWith(org.pentaho.di.core.variables.VariableSpace space)
|
String |
toString()
|
void |
unselectAll()
|
TransAction |
viewNextUndo()
Get the next undo transaction on the list. |
TransAction |
viewPreviousUndo()
View previous undo, don't change undo position |
TransAction |
viewThisUndo()
View current undo, don't change undo position |
| Methods inherited from class org.pentaho.di.core.changed.ChangedFlag |
|---|
addObserver, deleteObserver, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String XML_TAG
public static final org.pentaho.di.repository.RepositoryObjectType REPOSITORY_ELEMENT_TYPE
public static final int TYPE_UNDO_CHANGE
public static final int TYPE_UNDO_NEW
public static final int TYPE_UNDO_DELETE
public static final int TYPE_UNDO_POSITION
public static final String STRING_SPECIAL
public static final String STRING_SPECIAL_START
public static final String STRING_SPECIAL_DUMMY
public static final String STRING_SPECIAL_OK
public static final String STRING_SPECIAL_ERROR
public boolean[] max
| Constructor Detail |
|---|
public JobMeta()
public JobMeta(String fname,
Repository rep)
throws org.pentaho.di.core.exception.KettleXMLException
org.pentaho.di.core.exception.KettleXMLException
public JobMeta(String fname,
Repository rep,
org.pentaho.di.core.gui.OverwritePrompter prompter)
throws org.pentaho.di.core.exception.KettleXMLException
org.pentaho.di.core.exception.KettleXMLException
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
log - the logging channelfname - The filename to load as a jobrep - The repository to bind againt, null if there is no repository
available.
org.pentaho.di.core.exception.KettleXMLException
public JobMeta(InputStream inputStream,
Repository rep,
org.pentaho.di.core.gui.OverwritePrompter prompter)
throws org.pentaho.di.core.exception.KettleXMLException
org.pentaho.di.core.exception.KettleXMLException
public JobMeta(Node jobnode,
Repository rep,
org.pentaho.di.core.gui.OverwritePrompter prompter)
throws org.pentaho.di.core.exception.KettleXMLException
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
org.pentaho.di.core.exception.KettleXMLException
public JobMeta(Node jobnode,
Repository rep,
boolean ignoreRepositorySharedObjects,
org.pentaho.di.core.gui.OverwritePrompter prompter)
throws org.pentaho.di.core.exception.KettleXMLException
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
org.pentaho.di.core.exception.KettleXMLException| Method Detail |
|---|
public org.pentaho.di.repository.ObjectId getObjectId()
getObjectId in interface org.pentaho.di.core.logging.LoggingObjectInterfacegetObjectId in interface org.pentaho.di.repository.RepositoryElementInterfacegetObjectId in interface org.pentaho.di.repository.RepositoryObjectInterfacepublic void setObjectId(org.pentaho.di.repository.ObjectId objectId)
setObjectId in interface EngineMetaInterfacesetObjectId in interface org.pentaho.di.repository.RepositoryElementInterfacepublic void clear()
public void addDefaults()
public static final JobEntryCopy createStartEntry()
public static final JobEntryCopy createDummyEntry()
public JobEntryCopy getStart()
public JobEntryCopy getDummy()
public int compare(JobMeta j1,
JobMeta j2)
public int compareTo(JobMeta o)
compareTo in interface Comparable<JobMeta>public boolean equals(Object obj)
equals in class Objectpublic Object clone()
clone in class Objectpublic Object realClone(boolean doClear)
public String getName()
getName in interface EngineMetaInterfacegetName in interface org.pentaho.di.repository.RepositoryElementInterfacegetName in interface org.pentaho.di.repository.RepositoryObjectInterfacepublic void setName(String newName)
setName in interface org.pentaho.di.repository.RepositoryElementInterfacenewName - The new name of the jobpublic void nameFromFilename()
nameFromFilename in interface EngineMetaInterfacepublic org.pentaho.di.repository.RepositoryDirectoryInterface getRepositoryDirectory()
getRepositoryDirectory in interface EngineMetaInterfacegetRepositoryDirectory in interface org.pentaho.di.core.logging.LoggingObjectInterfacegetRepositoryDirectory in interface org.pentaho.di.repository.RepositoryElementInterfacepublic void setRepositoryDirectory(org.pentaho.di.repository.RepositoryDirectoryInterface directory)
setRepositoryDirectory in interface org.pentaho.di.repository.RepositoryElementInterfacedirectory - The directory to set.public String getFilename()
getFilename in interface EngineMetaInterfacegetFilename in interface org.pentaho.di.core.logging.LoggingObjectInterfacepublic void setFilename(String newFilename)
setFilename in interface EngineMetaInterfacenewFilename - The new filename of the jobpublic JobLogTable getJobLogTable()
public void setJobLogTable(JobLogTable jobLogTable)
public List<org.pentaho.di.core.database.DatabaseMeta> getDatabases()
HasDatabasesInterface
getDatabases in interface HasDatabasesInterfacepublic String[] getDatabaseNames()
public void setDatabases(List<org.pentaho.di.core.database.DatabaseMeta> databases)
setDatabases in interface HasDatabasesInterfacedatabases - The databases to set.public void setChanged(boolean ch)
setChanged in interface ChangedFlagInterfacesetChanged in class ChangedFlagpublic void clearChanged()
clearChanged in interface ChangedFlagInterfaceclearChanged in interface EngineMetaInterfaceclearChanged in class ChangedFlagpublic boolean hasChanged()
hasChanged in interface ChangedFlagInterfacehasChanged in class ChangedFlagpublic boolean isDatabaseConnectionUsed(org.pentaho.di.core.database.DatabaseMeta databaseMeta)
databaseMeta - The connection to check
public String getFileType()
getFileType in interface EngineMetaInterfacepublic String[] getFilterNames()
getFilterNames in interface EngineMetaInterfacepublic String[] getFilterExtensions()
getFilterExtensions in interface EngineMetaInterfacepublic String getDefaultExtension()
getDefaultExtension in interface EngineMetaInterfacepublic String getXML()
getXML in interface EngineMetaInterfacegetXML in interface org.pentaho.di.core.xml.XMLInterfacepublic boolean isRepReference()
public boolean isFileReference()
public static boolean isRepReference(String fileName,
String transName)
public static boolean isFileReference(String fileName,
String transName)
public void loadXML(Node jobnode,
Repository rep,
org.pentaho.di.core.gui.OverwritePrompter prompter)
throws org.pentaho.di.core.exception.KettleXMLException
org.pentaho.di.core.exception.KettleXMLException
public void loadXML(Node jobnode,
Repository rep,
boolean ignoreRepositorySharedObjects,
org.pentaho.di.core.gui.OverwritePrompter prompter)
throws org.pentaho.di.core.exception.KettleXMLException
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
org.pentaho.di.core.exception.KettleXMLException
public SharedObjects readSharedObjects()
throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleException
public void saveSharedObjects()
throws org.pentaho.di.core.exception.KettleException
saveSharedObjects in interface EngineMetaInterfaceorg.pentaho.di.core.exception.KettleExceptionpublic org.pentaho.di.core.database.DatabaseMeta findDatabase(String name)
findDatabase in interface HasDatabasesInterfacename - The database name to look for
public JobEntryCopy getJobEntryCopy(int x,
int y,
int iconsize)
public int nrJobEntries()
public int nrJobHops()
public int nrNotes()
public int nrDatabases()
HasDatabasesInterface
nrDatabases in interface HasDatabasesInterfacepublic JobHopMeta getJobHop(int i)
public JobEntryCopy getJobEntry(int i)
public NotePadMeta getNote(int i)
public org.pentaho.di.core.database.DatabaseMeta getDatabase(int i)
HasDatabasesInterface
getDatabase in interface HasDatabasesInterfacei - The database number.
public void addJobEntry(JobEntryCopy je)
public void addJobHop(JobHopMeta hi)
public void addNote(NotePadMeta ni)
public void addDatabase(org.pentaho.di.core.database.DatabaseMeta ci)
HasDatabasesInterface
addDatabase in interface HasDatabasesInterfaceci - The database connection information.
public void addJobEntry(int p,
JobEntryCopy si)
public void addJobHop(int p,
JobHopMeta hi)
public void addNote(int p,
NotePadMeta ni)
public void addDatabase(int p,
org.pentaho.di.core.database.DatabaseMeta ci)
HasDatabasesInterface
addDatabase in interface HasDatabasesInterfacep - The locationci - The database connection information.public void addOrReplaceDatabase(org.pentaho.di.core.database.DatabaseMeta databaseMeta)
HasDatabasesInterface
addOrReplaceDatabase in interface HasDatabasesInterfacedatabaseMeta - The database connection information.public void addOrReplaceSlaveServer(SlaveServer slaveServer)
slaveServer - The slave server to be added.public void removeJobEntry(int i)
public void removeJobHop(int i)
public void removeNote(int i)
public void raiseNote(int p)
public void lowerNote(int p)
public void removeDatabase(int i)
HasDatabasesInterface
removeDatabase in interface HasDatabasesInterfacei - The locationpublic int indexOfJobHop(JobHopMeta he)
public int indexOfNote(NotePadMeta ni)
public int indexOfJobEntry(JobEntryCopy ge)
public int indexOfDatabase(org.pentaho.di.core.database.DatabaseMeta di)
HasDatabasesInterface
indexOfDatabase in interface HasDatabasesInterfacedi - The database queried
public void setJobEntry(int idx,
JobEntryCopy jec)
public JobEntryCopy findJobEntry(String name,
int nr,
boolean searchHiddenToo)
name - The name of the job entry copynr - The number of the job entry copy
public JobEntryCopy findJobEntry(String full_name_nr)
public JobHopMeta findJobHop(String name)
public JobHopMeta findJobHopFrom(JobEntryCopy jge)
public JobHopMeta findJobHop(JobEntryCopy from,
JobEntryCopy to)
public JobHopMeta findJobHop(JobEntryCopy from,
JobEntryCopy to,
boolean includeDisabled)
public JobHopMeta findJobHopTo(JobEntryCopy jge)
public int findNrPrevJobEntries(JobEntryCopy from)
public JobEntryCopy findPrevJobEntry(JobEntryCopy to,
int nr)
public int findNrPrevJobEntries(JobEntryCopy to,
boolean info)
public JobEntryCopy findPrevJobEntry(JobEntryCopy to,
int nr,
boolean info)
public int findNrNextJobEntries(JobEntryCopy from)
public JobEntryCopy findNextJobEntry(JobEntryCopy from,
int cnt)
public boolean hasLoop(JobEntryCopy entry)
public boolean hasLoop(JobEntryCopy entry,
JobEntryCopy lookup)
public boolean isEntryUsedInHops(JobEntryCopy jge)
public int countEntries(String name)
public int findUnusedNr(String name)
public int findMaxNr(String name)
public String getAlternativeJobentryName(String entryname)
entryname - The job entry name to find an alternative for..
public JobEntryCopy[] getAllJobGraphEntries(String name)
public JobHopMeta[] getAllJobHopsUsing(String name)
public NotePadMeta getNote(int x,
int y)
public void selectAll()
public void unselectAll()
public int getMaxUndo()
UndoInterface
getMaxUndo in interface UndoInterfacepublic void setMaxUndo(int mu)
UndoInterface
setMaxUndo in interface UndoInterfacemu - The maximum number of undo operations that are allowed.public int getUndoSize()
public void clearUndo()
public void addUndo(Object[] from,
Object[] to,
int[] pos,
org.pentaho.di.core.gui.Point[] prev,
org.pentaho.di.core.gui.Point[] curr,
int type_of_change,
boolean nextAlso)
UndoInterface
addUndo in interface UndoInterfacefrom - array of objects representing the old stateto - array of objectes representing the new statepos - An array of object locationsprev - An array of points representing the old positionscurr - An array of points representing the new positionstype_of_change - The type of change that's being done to the transformation.nextAlso - indicates that the next undo operation needs to follow this one.public TransAction previousUndo()
UndoInterface
previousUndo in interface UndoInterfacepublic TransAction viewThisUndo()
viewThisUndo in interface UndoInterfacepublic TransAction viewPreviousUndo()
UndoInterface
viewPreviousUndo in interface UndoInterfacepublic TransAction nextUndo()
UndoInterface
nextUndo in interface UndoInterfacepublic TransAction viewNextUndo()
UndoInterface
viewNextUndo in interface UndoInterfacepublic org.pentaho.di.core.gui.Point getMaximum()
public org.pentaho.di.core.gui.Point getMinimum()
public org.pentaho.di.core.gui.Point[] getSelectedLocations()
public org.pentaho.di.core.gui.Point[] getSelectedNoteLocations()
public List<JobEntryCopy> getSelectedEntries()
public List<NotePadMeta> getSelectedNotes()
public int[] getEntryIndexes(List<JobEntryCopy> entries)
public int[] getNoteIndexes(List<NotePadMeta> notes)
notes - An array of notes
public JobEntryCopy findStart()
public String toString()
toString in class Objectpublic boolean isBatchIdPassed()
public void setBatchIdPassed(boolean batchIdPassed)
batchIdPassed - The batchIdPassed to set.
public List<org.pentaho.di.core.SQLStatement> getSQLStatements(Repository repository,
org.pentaho.di.core.ProgressMonitorListener monitor)
throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleExceptionpublic String[] getArguments()
public void setArguments(String[] arguments)
arguments - The arguments to set.
public List<StringSearchResult> getStringList(boolean searchSteps,
boolean searchDatabases,
boolean searchNotes)
public List<String> getUsedVariables()
public boolean haveConnectionsChanged()
HasDatabasesInterface
haveConnectionsChanged in interface HasDatabasesInterfacepublic boolean haveJobEntriesChanged()
public boolean haveJobHopsChanged()
public boolean haveNotesChanged()
public String getSharedObjectsFile()
public void setSharedObjectsFile(String sharedObjectsFile)
sharedObjectsFile - the sharedObjectsFile to setpublic void setModifiedUser(String modifiedUser)
setModifiedUser in interface EngineMetaInterfacemodifiedUser - The modifiedUser to set.public String getModifiedUser()
getModifiedUser in interface EngineMetaInterfacepublic void setModifiedDate(Date modifiedDate)
setModifiedDate in interface EngineMetaInterfacemodifiedDate - The modifiedDate to set.public Date getModifiedDate()
getModifiedDate in interface EngineMetaInterfacepublic String getDescription()
getDescription in interface org.pentaho.di.repository.RepositoryElementInterfacepublic String getExtendedDescription()
public String getJobversion()
public int getJobstatus()
public void setDescription(String description)
setDescription in interface org.pentaho.di.repository.RepositoryElementInterfacedescription - The new description of the jobpublic void setExtendedDescription(String extendedDescription)
extendedDescription - The new extended description of the jobpublic void setJobversion(String jobVersion)
jobVersion - The new version description of the jobpublic void setJobstatus(int jobStatus)
jobStatus - The new status description of the jobpublic Date getCreatedDate()
getCreatedDate in interface EngineMetaInterfacepublic void setCreatedDate(Date createdDate)
setCreatedDate in interface EngineMetaInterfacecreatedDate - The createdDate to set.public void setCreatedUser(String createdUser)
setCreatedUser in interface EngineMetaInterfacecreatedUser - The createdUser to set.public String getCreatedUser()
getCreatedUser in interface EngineMetaInterface
public static final JobEntryInterface findJobEntry(List<JobEntryInterface> jobentries,
org.pentaho.di.repository.ObjectId id_jobentry)
jobentries - The List of jobentriesid_jobentry - The id of the jobentry
public static final JobEntryCopy findJobEntryCopy(List<JobEntryCopy> jobcopies,
org.pentaho.di.repository.ObjectId id_jobentry_copy)
jobcopies - The List of jobentry copiesid_jobentry_copy - The id of the jobentry copy
public void setInternalKettleVariables()
setInternalKettleVariables in interface EngineMetaInterfacepublic void setInternalKettleVariables(org.pentaho.di.core.variables.VariableSpace var)
public void copyVariablesFrom(org.pentaho.di.core.variables.VariableSpace space)
copyVariablesFrom in interface org.pentaho.di.core.variables.VariableSpacepublic String environmentSubstitute(String aString)
environmentSubstitute in interface org.pentaho.di.core.variables.VariableSpacepublic String[] environmentSubstitute(String[] aString)
environmentSubstitute in interface org.pentaho.di.core.variables.VariableSpacepublic org.pentaho.di.core.variables.VariableSpace getParentVariableSpace()
getParentVariableSpace in interface org.pentaho.di.core.variables.VariableSpacepublic void setParentVariableSpace(org.pentaho.di.core.variables.VariableSpace parent)
setParentVariableSpace in interface org.pentaho.di.core.variables.VariableSpace
public String getVariable(String variableName,
String defaultValue)
getVariable in interface org.pentaho.di.core.variables.VariableSpacepublic String getVariable(String variableName)
getVariable in interface org.pentaho.di.core.variables.VariableSpace
public boolean getBooleanValueOfVariable(String variableName,
boolean defaultValue)
getBooleanValueOfVariable in interface org.pentaho.di.core.variables.VariableSpacepublic void initializeVariablesFrom(org.pentaho.di.core.variables.VariableSpace parent)
initializeVariablesFrom in interface org.pentaho.di.core.variables.VariableSpacepublic String[] listVariables()
listVariables in interface org.pentaho.di.core.variables.VariableSpace
public void setVariable(String variableName,
String variableValue)
setVariable in interface org.pentaho.di.core.variables.VariableSpacepublic void shareVariablesWith(org.pentaho.di.core.variables.VariableSpace space)
shareVariablesWith in interface org.pentaho.di.core.variables.VariableSpacepublic void injectVariables(Map<String,String> prop)
injectVariables in interface org.pentaho.di.core.variables.VariableSpace
public void checkJobEntries(List<org.pentaho.di.core.CheckResultInterface> remarks,
boolean only_selected,
org.pentaho.di.core.ProgressMonitorListener monitor)
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)public List<ResourceReference> getResourceDependencies()
public String exportResources(org.pentaho.di.core.variables.VariableSpace space,
Map<String,ResourceDefinition> definitions,
ResourceNamingInterface namingInterface,
Repository repository)
throws org.pentaho.di.core.exception.KettleException
ResourceExportInterface
exportResources in interface ResourceExportInterfacespace - 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 from
org.pentaho.di.core.exception.KettleException - in case something goes wrong during the exportpublic List<SlaveServer> getSlaveServers()
getSlaveServers in interface HasSlaveServersInterfacepublic void setSlaveServers(List<SlaveServer> slaveServers)
slaveServers - the slaveServers to setpublic SlaveServer findSlaveServer(String serverString)
serverString - the name of the slave server
public String[] getSlaveServerNames()
public void renameJobEntryIfNameCollides(JobEntryCopy je)
je - The job entry copy to verify the name for.public SharedObjects getSharedObjects()
public void setSharedObjects(SharedObjects sharedObjects)
sharedObjects - the sharedObjects to setpublic void addNameChangedListener(NameChangedListener listener)
public void removeNameChangedListener(NameChangedListener listener)
public void addFilenameChangedListener(FilenameChangedListener listener)
public void removeFilenameChangedListener(FilenameChangedListener listener)
public void activateParameters()
activateParameters in interface org.pentaho.di.core.parameters.NamedParams
public void addParameterDefinition(String key,
String defValue,
String description)
throws org.pentaho.di.core.parameters.DuplicateParamException
addParameterDefinition in interface org.pentaho.di.core.parameters.NamedParamsorg.pentaho.di.core.parameters.DuplicateParamException
public String getParameterDescription(String key)
throws org.pentaho.di.core.parameters.UnknownParamException
getParameterDescription in interface org.pentaho.di.core.parameters.NamedParamsorg.pentaho.di.core.parameters.UnknownParamException
public String getParameterDefault(String key)
throws org.pentaho.di.core.parameters.UnknownParamException
getParameterDefault in interface org.pentaho.di.core.parameters.NamedParamsorg.pentaho.di.core.parameters.UnknownParamException
public String getParameterValue(String key)
throws org.pentaho.di.core.parameters.UnknownParamException
getParameterValue in interface org.pentaho.di.core.parameters.NamedParamsorg.pentaho.di.core.parameters.UnknownParamExceptionpublic String[] listParameters()
listParameters in interface org.pentaho.di.core.parameters.NamedParams
public void setParameterValue(String key,
String value)
throws org.pentaho.di.core.parameters.UnknownParamException
setParameterValue in interface org.pentaho.di.core.parameters.NamedParamsorg.pentaho.di.core.parameters.UnknownParamExceptionpublic void eraseParameters()
eraseParameters in interface org.pentaho.di.core.parameters.NamedParamspublic void clearParameters()
clearParameters in interface org.pentaho.di.core.parameters.NamedParamspublic void copyParametersFrom(org.pentaho.di.core.parameters.NamedParams params)
copyParametersFrom in interface org.pentaho.di.core.parameters.NamedParamspublic List<JobEntryCopy> getJobCopies()
public List<NotePadMeta> getNotes()
public List<JobHopMeta> getJobhops()
public org.pentaho.di.repository.RepositoryObjectType getRepositoryElementType()
getRepositoryElementType in interface org.pentaho.di.repository.RepositoryElementInterfacepublic org.pentaho.di.repository.ObjectRevision getObjectRevision()
getObjectRevision in interface org.pentaho.di.core.logging.LoggingObjectInterfacegetObjectRevision in interface org.pentaho.di.repository.RepositoryElementInterfacepublic void setObjectRevision(org.pentaho.di.repository.ObjectRevision objectRevision)
setObjectRevision in interface org.pentaho.di.repository.RepositoryElementInterfacepublic List<JobEntryInterface> composeJobEntryInterfaceList()
public String getLogChannelId()
getLogChannelId in interface org.pentaho.di.core.logging.LoggingObjectInterfacepublic String getObjectName()
getObjectName in interface org.pentaho.di.core.logging.LoggingObjectInterfacepublic String getObjectCopy()
getObjectCopy in interface org.pentaho.di.core.logging.LoggingObjectInterfacepublic org.pentaho.di.core.logging.LoggingObjectType getObjectType()
getObjectType in interface org.pentaho.di.core.logging.LoggingObjectInterfacepublic org.pentaho.di.core.logging.LoggingObjectInterface getParent()
getParent in interface org.pentaho.di.core.logging.LoggingObjectInterfacepublic org.pentaho.di.core.logging.LogLevel getLogLevel()
getLogLevel in interface org.pentaho.di.core.logging.LoggingObjectInterfacepublic void setLogLevel(org.pentaho.di.core.logging.LogLevel logLevel)
public ChannelLogTable getChannelLogTable()
public void setChannelLogTable(ChannelLogTable channelLogTable)
channelLogTable - the channelLogTable to setpublic JobEntryLogTable getJobEntryLogTable()
public void setJobEntryLogTable(JobEntryLogTable jobEntryLogTable)
jobEntryLogTable - the jobEntryLogTable to setpublic List<org.pentaho.di.core.logging.LogTableInterface> getLogTables()
public boolean canSave()
canSave in interface EngineMetaInterfacepublic String getContainerObjectId()
getContainerObjectId in interface org.pentaho.di.core.logging.LoggingObjectInterfacepublic void setCarteObjectId(String containerObjectId)
containerObjectId - the execution container Object id to setpublic Date getRegistrationDate()
getRegistrationDate in interface org.pentaho.di.core.logging.LoggingObjectInterfacepublic boolean hasRepositoryReferences()
public void lookupRepositoryReferences(Repository repository)
throws org.pentaho.di.core.exception.KettleException
repository - the repository to reference.
org.pentaho.di.core.exception.KettleExceptionpublic Repository getRepository()
getRepository in interface HasRepositoryInterfacepublic void setRepository(Repository repository)
setRepository in interface HasRepositoryInterfacerepository - the repository to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||