|
||||||||||
| 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
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.
| Field Summary | |
|---|---|
boolean[] |
max
List of booleans indicating whether or not to remember the size and position of the different windows... |
static RepositoryObjectType |
REPOSITORY_ELEMENT_TYPE
A constant specifying the repository element type as a Job. |
static String |
STRING_SPECIAL
Constant = "SPECIAL" |
static String |
STRING_SPECIAL_DUMMY
Constant = "DUMMY" |
static String |
STRING_SPECIAL_ERROR
Constant = "ERROR" |
static String |
STRING_SPECIAL_OK
Constant = "OK" |
static String |
STRING_SPECIAL_START
Constant = "START" |
static int |
TYPE_UNDO_CHANGE
Constant = 1 |
static int |
TYPE_UNDO_DELETE
Constant = 3 |
static int |
TYPE_UNDO_NEW
Constant = 2 |
static int |
TYPE_UNDO_POSITION
Constant = 4 |
static String |
XML_TAG
|
| Constructor Summary | |
|---|---|
JobMeta()
Instantiates a new job meta. |
|
JobMeta(InputStream inputStream,
Repository rep,
OverwritePrompter prompter)
Instantiates a new job meta. |
|
JobMeta(Node jobnode,
Repository rep,
boolean ignoreRepositorySharedObjects,
OverwritePrompter prompter)
Create a new JobMeta object by loading it from a a DOM node. |
|
JobMeta(Node jobnode,
Repository rep,
OverwritePrompter prompter)
Create a new JobMeta object by loading it from a a DOM node. |
|
JobMeta(String fname,
Repository rep)
Instantiates a new job meta. |
|
JobMeta(String fname,
Repository rep,
OverwritePrompter prompter)
Instantiates a new job meta. |
|
JobMeta(VariableSpace parentSpace,
String fname,
Repository rep,
OverwritePrompter prompter)
Load the job from the XML file specified. |
|
| Method Summary | |
|---|---|
void |
activateParameters()
Activate the currently set parameters |
void |
addDatabase(DatabaseMeta ci)
Add a database connection to the transformation. |
void |
addDatabase(int p,
DatabaseMeta ci)
Add a database connection to the transformation on a certain location. |
void |
addDefaults()
Adds the defaults. |
void |
addFilenameChangedListener(FilenameChangedListener listener)
Adds the filename changed listener. |
void |
addJobEntry(int p,
JobEntryCopy si)
Adds the job entry. |
void |
addJobEntry(JobEntryCopy je)
Adds the job entry. |
void |
addJobHop(int p,
JobHopMeta hi)
Adds the job hop. |
void |
addJobHop(JobHopMeta hi)
Adds the job hop. |
void |
addNameChangedListener(NameChangedListener listener)
Adds the name changed listener. |
void |
addNote(int p,
NotePadMeta ni)
Adds the note. |
void |
addNote(NotePadMeta ni)
Adds the note. |
void |
addOrReplaceDatabase(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)
Add a parameter definition to this set. |
void |
addUndo(Object[] from,
Object[] to,
int[] pos,
Point[] prev,
Point[] curr,
int type_of_change,
boolean nextAlso)
Add an undo operation to the undo list |
boolean |
canSave()
Checks whether the job can be saved. |
void |
checkJobEntries(List<CheckResultInterface> remarks,
boolean only_selected,
ProgressMonitorListener monitor)
Check all job entries within the job. |
void |
clear()
Clears or reinitializes many of the JobMeta properties. |
void |
clearChanged()
Clears the different changed flags of the job. |
void |
clearParameters()
Clear all parameters |
void |
clearUndo()
Clear undo. |
Object |
clone()
Clones the job meta-data object. |
int |
compare(JobMeta j1,
JobMeta j2)
Compares two transformation on name, filename |
int |
compareTo(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 interfaces |
void |
copyParametersFrom(NamedParams params)
Copy params to these named parameters (clearing out first). |
void |
copyVariablesFrom(VariableSpace space)
Copy the variables from another space, without initializing with the defaults. |
int |
countEntries(String name)
Count entries. |
static JobEntryCopy |
createDummyEntry()
Creates the dummy entry. |
static JobEntryCopy |
createStartEntry()
Creates the start entry. |
String |
environmentSubstitute(String aString)
Substitute the string using the current variable space. |
String[] |
environmentSubstitute(String[] aString)
Replaces environment variables in an array of strings. |
boolean |
equals(Object obj)
Checks whether this job's meta-data object is equal to the specified object. |
void |
eraseParameters()
Clear the values. |
String |
exportResources(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. |
DatabaseMeta |
findDatabase(String name)
Find a database connection by it's name |
static JobEntryInterface |
findJobEntry(List<JobEntryInterface> jobentries,
ObjectId id_jobentry)
Find a jobentry with a certain ID in a list of job entries. |
JobEntryCopy |
findJobEntry(String full_name_nr)
Find job entry. |
JobEntryCopy |
findJobEntry(String name,
int nr,
boolean searchHiddenToo)
Find an existing JobEntryCopy by it's name and number |
static JobEntryCopy |
findJobEntryCopy(List<JobEntryCopy> jobcopies,
ObjectId id_jobentry_copy)
Find a jobentrycopy with a certain ID in a list of job entry copies. |
JobHopMeta |
findJobHop(JobEntryCopy from,
JobEntryCopy to)
Find job hop. |
JobHopMeta |
findJobHop(JobEntryCopy from,
JobEntryCopy to,
boolean includeDisabled)
Find job hop. |
JobHopMeta |
findJobHop(String name)
Find job hop. |
JobHopMeta |
findJobHopFrom(JobEntryCopy jge)
Find job hop from. |
JobHopMeta |
findJobHopTo(JobEntryCopy jge)
Find job hop to. |
int |
findMaxNr(String name)
Find max nr. |
JobEntryCopy |
findNextJobEntry(JobEntryCopy from,
int cnt)
Find next job entry. |
int |
findNrNextJobEntries(JobEntryCopy from)
Find nr next job entries. |
int |
findNrPrevJobEntries(JobEntryCopy from)
Find nr prev job entries. |
int |
findNrPrevJobEntries(JobEntryCopy to,
boolean info)
Find nr prev job entries. |
JobEntryCopy |
findPrevJobEntry(JobEntryCopy to,
int nr)
Find prev job entry. |
JobEntryCopy |
findPrevJobEntry(JobEntryCopy to,
int nr,
boolean info)
Find prev job entry. |
SlaveServer |
findSlaveServer(String serverString)
Find a slave server using the name |
JobEntryCopy |
findStart()
Find start. |
int |
findUnusedNr(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. |
String |
getAlternativeJobentryName(String entryname)
Proposes an alternative job entry name when the original already exists... |
String[] |
getArguments()
Gets the arguments used for this job. |
boolean |
getBooleanValueOfVariable(String variableName,
boolean defaultValue)
This method returns a boolean for the new variable check boxes. |
ChannelLogTable |
getChannelLogTable()
Gets the channel log table for the job. |
String |
getContainerObjectId()
Gets the container object id. |
Date |
getCreatedDate()
Gets the date the job was created. |
String |
getCreatedUser()
Gets the user by whom the job was created. |
DatabaseMeta |
getDatabase(int i)
Retrieves a database connection information a a certain location. |
String[] |
getDatabaseNames()
Gets the database names. |
List<DatabaseMeta> |
getDatabases()
Returns a list of the databases. |
String |
getDefaultExtension()
Gets the default extension for a job. |
String |
getDescription()
Gets the description of the job. |
JobEntryCopy |
getDummy()
Gets the dummy. |
int[] |
getEntryIndexes(List<JobEntryCopy> entries)
Gets the entry indexes. |
String |
getExtendedDescription()
Gets the extended description of the job. |
String |
getFilename()
Gets the filename. |
String |
getFileType()
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. |
JobEntryCopy |
getJobEntry(int i)
Gets the job entry. |
JobEntryCopy |
getJobEntryCopy(int x,
int y,
int iconsize)
Gets the job entry copy. |
JobEntryLogTable |
getJobEntryLogTable()
Gets the job entry log table. |
JobHopMeta |
getJobHop(int i)
Gets the job hop. |
List<JobHopMeta> |
getJobhops()
Gets the jobhops. |
JobLogTable |
getJobLogTable()
Gets the job log table. |
int |
getJobstatus()
Gets the status of the job. |
String |
getJobversion()
Gets the version of the job. |
String |
getLogChannelId()
Gets the log channel id. |
LogLevel |
getLogLevel()
Gets the logging level of the log channel of this logging object. |
List<LogTableInterface> |
getLogTables()
Gets the log tables. |
Point |
getMaximum()
Gets the maximum. |
int |
getMaxUndo()
Get the maximum number of undo operations possible |
Point |
getMinimum()
Get the minimum point on the canvas of a job |
Date |
getModifiedDate()
Gets the date the job was last modified. |
String |
getModifiedUser()
Gets the user who last modified the job. |
String |
getName()
Gets the name. |
NotePadMeta |
getNote(int i)
Gets the note. |
NotePadMeta |
getNote(int x,
int y)
Gets the note. |
int[] |
getNoteIndexes(List<NotePadMeta> notes)
Get an array of the locations of an array of notes |
List<NotePadMeta> |
getNotes()
Gets the notes. |
String |
getObjectCopy()
Gets a string identifying a copy in a series of steps. |
ObjectId |
getObjectId()
Get the database ID in the repository for this object. |
String |
getObjectName()
Gets the object name. |
ObjectRevision |
getObjectRevision()
Gets the object revision. |
LoggingObjectType |
getObjectType()
Gets the object type. |
String |
getParameterDefault(String key)
Get the default value of a parameter. |
String |
getParameterDescription(String key)
Get the description of a parameter. |
String |
getParameterValue(String key)
Get the value of a parameter. |
LoggingObjectInterface |
getParent()
Gets the parent. |
VariableSpace |
getParentVariableSpace()
Get the parent of the variable space. |
Date |
getRegistrationDate()
Gets the registration date for the transformation. |
Repository |
getRepository()
Gets the repository. |
RepositoryDirectoryInterface |
getRepositoryDirectory()
Gets the directory. |
RepositoryObjectType |
getRepositoryElementType()
Gets the repository element type. |
List<ResourceReference> |
getResourceDependencies()
Gets the resource dependencies. |
List<JobEntryCopy> |
getSelectedEntries()
Gets the selected entries. |
Point[] |
getSelectedLocations()
Gets the selected locations. |
Point[] |
getSelectedNoteLocations()
Get all the selected note locations |
List<NotePadMeta> |
getSelectedNotes()
Gets a list of all selected notes. |
SharedObjects |
getSharedObjects()
Gets the shared objects. |
String |
getSharedObjectsFile()
Gets the shared objects file. |
String[] |
getSlaveServerNames()
Gets an array of slave server names. |
List<SlaveServer> |
getSlaveServers()
Gets a list of slave servers. |
List<SQLStatement> |
getSQLStatements(Repository repository,
ProgressMonitorListener monitor)
Builds a list of all the SQL statements that this transformation needs in order to work properly. |
JobEntryCopy |
getStart()
Gets the start. |
List<StringSearchResult> |
getStringList(boolean searchSteps,
boolean searchDatabases,
boolean searchNotes)
Get a list of all the strings used in this job. |
int |
getUndoSize()
Gets the undo size. |
List<String> |
getUsedVariables()
Gets the used variables. |
String |
getVariable(String variableName)
Get the value of a variable. |
String |
getVariable(String variableName,
String defaultValue)
Get the value of a variable with a default in case the variable is not found. |
String |
getXML()
Describes the Object implementing this interface as XML |
boolean |
hasChanged()
Checks whether or not this has changed. |
boolean |
hasLoop(JobEntryCopy entry)
Checks for loop. |
boolean |
hasLoop(JobEntryCopy entry,
JobEntryCopy lookup)
Checks for loop. |
boolean |
hasRepositoryReferences()
Checks whether the job has repository references. |
boolean |
haveConnectionsChanged()
Checks whether or not the connections have changed. |
boolean |
haveJobEntriesChanged()
Have job entries changed. |
boolean |
haveJobHopsChanged()
Have job hops changed. |
boolean |
haveNotesChanged()
Have notes changed. |
int |
indexOfDatabase(DatabaseMeta di)
Find the location of database |
int |
indexOfJobEntry(JobEntryCopy ge)
Index of job entry. |
int |
indexOfJobHop(JobHopMeta he)
Index of job hop. |
int |
indexOfNote(NotePadMeta ni)
Index of note. |
void |
initializeVariablesFrom(VariableSpace parent)
Initialize variable space using the defaults, copy over the variables from the parent (using copyVariablesFrom()), after this the "injected" variables should be inserted (injectVariables()). |
void |
injectVariables(Map<String,String> prop)
Inject variables. |
boolean |
isBatchIdPassed()
Gets the boolean value of batch id passed. |
boolean |
isDatabaseConnectionUsed(DatabaseMeta databaseMeta)
This method asks all steps in the transformation whether or not the specified database connection is used. |
boolean |
isEntryUsedInHops(JobEntryCopy jge)
Checks if is entry used in hops. |
boolean |
isFileReference()
Checks if is file reference. |
static boolean |
isFileReference(String fileName,
String transName)
Checks if is file reference. |
boolean |
isRepReference()
Checks if is rep reference. |
static boolean |
isRepReference(String fileName,
String transName)
Checks if is rep reference. |
String[] |
listParameters()
List the parameters. |
String[] |
listVariables()
List the variables (not the values) that are currently in the variable space. |
void |
loadXML(Node jobnode,
Repository rep,
boolean ignoreRepositorySharedObjects,
OverwritePrompter prompter)
Load a block of XML from an DOM node. |
void |
loadXML(Node jobnode,
Repository rep,
OverwritePrompter prompter)
Load xml. |
void |
lookupRepositoryReferences(Repository repository)
Look up the references after import |
void |
lowerNote(int p)
Lower note. |
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()
Nr job entries. |
int |
nrJobHops()
Nr job hops. |
int |
nrNotes()
Nr notes. |
TransAction |
previousUndo()
Get the previous undo operation and change the undo pointer |
void |
raiseNote(int p)
Raise note. |
SharedObjects |
readSharedObjects()
Read shared objects. |
Object |
realClone(boolean doClear)
Perform a real clone of the job meta-data object, including cloning all lists and copying all values. |
void |
removeDatabase(int i)
Removes a database from the transformation on a certain location. |
void |
removeFilenameChangedListener(FilenameChangedListener listener)
Removes the filename changed listener. |
void |
removeJobEntry(int i)
Removes the job entry. |
void |
removeJobHop(int i)
Removes the job hop. |
void |
removeNameChangedListener(NameChangedListener listener)
Removes the name changed listener. |
void |
removeNote(int i)
Removes the note. |
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()
Saves shared objects, including databases, steps, partition schemas, slave servers, and cluster schemas, to a file. |
void |
selectAll()
Select all. |
void |
setArguments(String[] arguments)
Sets the arguments. |
void |
setBatchIdPassed(boolean batchIdPassed)
Sets the batch id passed. |
void |
setCarteObjectId(String containerObjectId)
Sets the carte object id. |
void |
setChanged(boolean ch)
Sets whether or not this has changed. |
void |
setChannelLogTable(ChannelLogTable channelLogTable)
Sets the channel log table for the job. |
void |
setCreatedDate(Date createdDate)
Sets the date the transformation was created. |
void |
setCreatedUser(String createdUser)
Sets the user by whom this was created. |
void |
setDatabases(List<DatabaseMeta> databases)
Sets the 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(VariableSpace var)
This method sets various internal kettle variables that can be used by the transformation. |
void |
setJobEntry(int idx,
JobEntryCopy jec)
Sets the job entry. |
void |
setJobEntryLogTable(JobEntryLogTable jobEntryLogTable)
Sets the job entry log table. |
void |
setJobLogTable(JobLogTable jobLogTable)
Sets the job log table. |
void |
setJobstatus(int jobStatus)
Set the status of the job. |
void |
setJobversion(String jobVersion)
Set the version of the job. |
void |
setLogLevel(LogLevel logLevel)
Sets the log level. |
void |
setMaxUndo(int mu)
Sets the maximum number of undo operations that are allowed. |
void |
setModifiedDate(Date modifiedDate)
Sets the date the job was modified. |
void |
setModifiedUser(String modifiedUser)
Sets the user who last modified the job. |
void |
setName(String newName)
Set the name of the job. |
void |
setObjectId(ObjectId objectId)
Set the database ID for this in the repository. |
void |
setObjectRevision(ObjectRevision objectRevision)
Sets the object revision. |
void |
setParameterValue(String key,
String value)
Set the value of a parameter. |
void |
setParentVariableSpace(VariableSpace parent)
Set the parent variable space |
void |
setRepository(Repository repository)
Sets the repository. |
void |
setRepositoryDirectory(RepositoryDirectoryInterface directory)
Sets the directory. |
void |
setSharedObjects(SharedObjects sharedObjects)
Sets the shared objects. |
void |
setSharedObjectsFile(String sharedObjectsFile)
Sets the shared objects file. |
void |
setSlaveServers(List<SlaveServer> slaveServers)
Sets the slave servers. |
void |
setVariable(String variableName,
String variableValue)
Sets a variable in the Kettle Variables list. |
void |
shareVariablesWith(VariableSpace space)
Share a variable space from another variable space. |
String |
toString()
Gets a textual representation of the job. |
void |
unselectAll()
Unselect all. |
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 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 KettleXMLException
fname - the fnamerep - the rep
KettleXMLException - the kettle xml exception
public JobMeta(String fname,
Repository rep,
OverwritePrompter prompter)
throws KettleXMLException
fname - the fnamerep - the repprompter - the prompter
KettleXMLException - the kettle xml exception
public JobMeta(VariableSpace parentSpace,
String fname,
Repository rep,
OverwritePrompter prompter)
throws KettleXMLException
log - the logging channelfname - The filename to load as a jobrep - The repository to bind againt, null if there is no repository
available.
KettleXMLException
public JobMeta(InputStream inputStream,
Repository rep,
OverwritePrompter prompter)
throws KettleXMLException
inputStream - the input streamrep - the repprompter - the prompter
KettleXMLException - the kettle xml exception
public JobMeta(Node jobnode,
Repository rep,
OverwritePrompter prompter)
throws 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
KettleXMLException
public JobMeta(Node jobnode,
Repository rep,
boolean ignoreRepositorySharedObjects,
OverwritePrompter prompter)
throws 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
KettleXMLException| Method Detail |
|---|
public ObjectId getObjectId()
RepositoryElementInterface
getObjectId in interface LoggingObjectInterfacegetObjectId in interface RepositoryElementInterfacegetObjectId in interface RepositoryObjectInterfacepublic void setObjectId(ObjectId objectId)
EngineMetaInterface
setObjectId in interface EngineMetaInterfacesetObjectId in interface RepositoryElementInterfaceobjectId - the database ID for this in the repositorypublic 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>o - the o
compare(JobMeta, JobMeta),
Comparable.compareTo(java.lang.Object)public boolean equals(Object obj)
equals in class Objectobj - the obj
compare(JobMeta, JobMeta),
Object.equals(java.lang.Object)public Object clone()
clone in class ObjectObject.clone()public Object realClone(boolean doClear)
doClear - Whether to clear all of the clone's data before copying from the source object
public String getName()
EngineMetaInterface
getName in interface EngineMetaInterfacegetName in interface RepositoryElementInterfacegetName in interface RepositoryObjectInterfacepublic void setName(String newName)
setName in interface RepositoryElementInterfacenewName - The new name of the jobpublic void nameFromFilename()
nameFromFilename in interface EngineMetaInterfacepublic RepositoryDirectoryInterface getRepositoryDirectory()
getRepositoryDirectory in interface EngineMetaInterfacegetRepositoryDirectory in interface LoggingObjectInterfacegetRepositoryDirectory in interface RepositoryElementInterfacepublic void setRepositoryDirectory(RepositoryDirectoryInterface directory)
setRepositoryDirectory in interface RepositoryElementInterfacedirectory - The directory to set.public String getFilename()
getFilename in interface EngineMetaInterfacegetFilename in interface LoggingObjectInterfaceEngineMetaInterface.getFilename()public void setFilename(String newFilename)
setFilename in interface EngineMetaInterfacenewFilename - The new filename of the jobpublic JobLogTable getJobLogTable()
public void setJobLogTable(JobLogTable jobLogTable)
jobLogTable - the new job log tablepublic List<DatabaseMeta> getDatabases()
getDatabases in interface HasDatabasesInterfacepublic String[] getDatabaseNames()
public void setDatabases(List<DatabaseMeta> databases)
setDatabases in interface HasDatabasesInterfacedatabases - The databases to set.public void setChanged(boolean ch)
ChangedFlag
setChanged in interface ChangedFlagInterfacesetChanged in class ChangedFlagpublic void clearChanged()
clearChanged in interface ChangedFlagInterfaceclearChanged in interface EngineMetaInterfaceclearChanged in class ChangedFlagpublic boolean hasChanged()
ChangedFlag
hasChanged in interface ChangedFlagInterfacehasChanged in class ChangedFlagpublic boolean isDatabaseConnectionUsed(DatabaseMeta databaseMeta)
databaseMeta - The connection to check
public String getFileType()
EngineMetaInterface
getFileType in interface EngineMetaInterfacepublic String[] getFilterNames()
getFilterNames in interface EngineMetaInterfaceEngineMetaInterface.getFilterNames()public String[] getFilterExtensions()
Const.STRING_JOB_FILTER_EXT
getFilterExtensions in interface EngineMetaInterfaceEngineMetaInterface.getFilterExtensions()public String getDefaultExtension()
Const.STRING_JOB_DEFAULT_EXT
getDefaultExtension in interface EngineMetaInterfaceEngineMetaInterface.getDefaultExtension()public String getXML()
XMLInterface
getXML in interface EngineMetaInterfacegetXML in interface XMLInterfaceXMLInterface.getXML()public boolean isRepReference()
public boolean isFileReference()
public static boolean isRepReference(String fileName,
String transName)
fileName - the file nametransName - the trans name
public static boolean isFileReference(String fileName,
String transName)
fileName - the file nametransName - the trans name
public void loadXML(Node jobnode,
Repository rep,
OverwritePrompter prompter)
throws KettleXMLException
jobnode - the jobnoderep - the repprompter - the prompter
KettleXMLException - the kettle xml exception
public void loadXML(Node jobnode,
Repository rep,
boolean ignoreRepositorySharedObjects,
OverwritePrompter prompter)
throws 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
KettleXMLException
public SharedObjects readSharedObjects()
throws KettleException
KettleException - the kettle exception
public void saveSharedObjects()
throws KettleException
EngineMetaInterface
saveSharedObjects in interface EngineMetaInterfaceKettleExceptionpublic DatabaseMeta findDatabase(String name)
findDatabase in interface HasDatabasesInterfacename - The database name to look for
public JobEntryCopy getJobEntryCopy(int x,
int y,
int iconsize)
x - the xy - the yiconsize - the iconsize
public int nrJobEntries()
public int nrJobHops()
public int nrNotes()
public int nrDatabases()
HasDatabasesInterface
nrDatabases in interface HasDatabasesInterfacepublic JobHopMeta getJobHop(int i)
i - the i
public JobEntryCopy getJobEntry(int i)
i - the i
public NotePadMeta getNote(int i)
i - the i
public DatabaseMeta getDatabase(int i)
HasDatabasesInterface
getDatabase in interface HasDatabasesInterfacei - The database number.
public void addJobEntry(JobEntryCopy je)
je - the jepublic void addJobHop(JobHopMeta hi)
hi - the hipublic void addNote(NotePadMeta ni)
ni - the nipublic void addDatabase(DatabaseMeta ci)
HasDatabasesInterface
addDatabase in interface HasDatabasesInterfaceci - The database connection information.
public void addJobEntry(int p,
JobEntryCopy si)
p - the psi - the si
public void addJobHop(int p,
JobHopMeta hi)
p - the phi - the hi
public void addNote(int p,
NotePadMeta ni)
p - the pni - the ni
public void addDatabase(int p,
DatabaseMeta ci)
HasDatabasesInterface
addDatabase in interface HasDatabasesInterfacep - The locationci - The database connection information.public void addOrReplaceDatabase(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)
i - the ipublic void removeJobHop(int i)
i - the ipublic void removeNote(int i)
i - the ipublic void raiseNote(int p)
p - the ppublic void lowerNote(int p)
p - the ppublic void removeDatabase(int i)
HasDatabasesInterface
removeDatabase in interface HasDatabasesInterfacei - The locationpublic int indexOfJobHop(JobHopMeta he)
he - the he
public int indexOfNote(NotePadMeta ni)
ni - the ni
public int indexOfJobEntry(JobEntryCopy ge)
ge - the ge
public int indexOfDatabase(DatabaseMeta di)
HasDatabasesInterface
indexOfDatabase in interface HasDatabasesInterfacedi - The database queried
public void setJobEntry(int idx,
JobEntryCopy jec)
idx - the idxjec - the 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)
full_name_nr - the full_name_nr
public JobHopMeta findJobHop(String name)
name - the name
public JobHopMeta findJobHopFrom(JobEntryCopy jge)
jge - the jge
public JobHopMeta findJobHop(JobEntryCopy from,
JobEntryCopy to)
from - the fromto - the to
public JobHopMeta findJobHop(JobEntryCopy from,
JobEntryCopy to,
boolean includeDisabled)
from - the fromto - the toincludeDisabled - the include disabled
public JobHopMeta findJobHopTo(JobEntryCopy jge)
jge - the jge
public int findNrPrevJobEntries(JobEntryCopy from)
from - the from
public JobEntryCopy findPrevJobEntry(JobEntryCopy to,
int nr)
to - the tonr - the nr
public int findNrPrevJobEntries(JobEntryCopy to,
boolean info)
to - the toinfo - the info
public JobEntryCopy findPrevJobEntry(JobEntryCopy to,
int nr,
boolean info)
to - the tonr - the nrinfo - the info
public int findNrNextJobEntries(JobEntryCopy from)
from - the from
public JobEntryCopy findNextJobEntry(JobEntryCopy from,
int cnt)
from - the fromcnt - the cnt
public boolean hasLoop(JobEntryCopy entry)
entry - the entry
public boolean hasLoop(JobEntryCopy entry,
JobEntryCopy lookup)
entry - the entrylookup - the lookup
public boolean isEntryUsedInHops(JobEntryCopy jge)
jge - the jge
public int countEntries(String name)
name - the name
public int findUnusedNr(String name)
name - the name
public int findMaxNr(String name)
name - the name
public String getAlternativeJobentryName(String entryname)
entryname - The job entry name to find an alternative for..
public JobEntryCopy[] getAllJobGraphEntries(String name)
name - the name
public JobHopMeta[] getAllJobHopsUsing(String name)
name - the name
public NotePadMeta getNote(int x,
int y)
x - the xy - the 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,
Point[] prev,
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 Point getMaximum()
public Point getMinimum()
public Point[] getSelectedLocations()
public Point[] getSelectedNoteLocations()
public List<JobEntryCopy> getSelectedEntries()
public List<NotePadMeta> getSelectedNotes()
public int[] getEntryIndexes(List<JobEntryCopy> entries)
entries - the 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<SQLStatement> getSQLStatements(Repository repository,
ProgressMonitorListener monitor)
throws KettleException
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 RepositoryElementInterfacepublic String getExtendedDescription()
public String getJobversion()
public int getJobstatus()
public void setDescription(String description)
setDescription in interface 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)
EngineMetaInterface
setCreatedDate in interface EngineMetaInterfacecreatedDate - The createdDate to set.public void setCreatedUser(String createdUser)
EngineMetaInterface
setCreatedUser in interface EngineMetaInterfacecreatedUser - The createdUser to set.public String getCreatedUser()
getCreatedUser in interface EngineMetaInterface
public static final JobEntryInterface findJobEntry(List<JobEntryInterface> jobentries,
ObjectId id_jobentry)
jobentries - The List of jobentriesid_jobentry - The id of the jobentry
public static final JobEntryCopy findJobEntryCopy(List<JobEntryCopy> jobcopies,
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(VariableSpace var)
public void copyVariablesFrom(VariableSpace space)
VariableSpace
copyVariablesFrom in interface VariableSpacespace - the space to copy the variables from.public String environmentSubstitute(String aString)
VariableSpace
environmentSubstitute in interface VariableSpaceaString - The string to substitute.
public String[] environmentSubstitute(String[] aString)
VariableSpace
environmentSubstitute in interface VariableSpaceaString - The array of strings that wants its variables to be replaced.
public VariableSpace getParentVariableSpace()
VariableSpace
getParentVariableSpace in interface VariableSpacepublic void setParentVariableSpace(VariableSpace parent)
VariableSpace
setParentVariableSpace in interface VariableSpaceparent - The parent variable space to set
public String getVariable(String variableName,
String defaultValue)
VariableSpace
getVariable in interface VariableSpacevariableName - The name of the variabledefaultValue - The default value in case the variable could not be
found
public String getVariable(String variableName)
VariableSpace
getVariable in interface VariableSpacevariableName - The name of the variable
public boolean getBooleanValueOfVariable(String variableName,
boolean defaultValue)
VariableSpace
getBooleanValueOfVariable in interface VariableSpacevariableName - The variable to look up.defaultValue - The default value to return.
static method ValueMeta.convertStringToBoolean()public void initializeVariablesFrom(VariableSpace parent)
VariableSpace
initializeVariablesFrom in interface VariableSpaceparent - the parent to start from, or null if root.public String[] listVariables()
VariableSpace
listVariables in interface VariableSpace
public void setVariable(String variableName,
String variableValue)
VariableSpace
setVariable in interface VariableSpacevariableName - The name of the variable to setvariableValue - The value of the variable to set. If the
variableValue is null, the variable is cleared
from the list.public void shareVariablesWith(VariableSpace space)
VariableSpace
shareVariablesWith in interface VariableSpacespace - Variable space to be shared.public void injectVariables(Map<String,String> prop)
VariableSpace
injectVariables in interface VariableSpaceprop - Properties object containing key-value pairs.
public void checkJobEntries(List<CheckResultInterface> remarks,
boolean only_selected,
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(VariableSpace space,
Map<String,ResourceDefinition> definitions,
ResourceNamingInterface namingInterface,
Repository repository)
throws 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
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)
listener - the listenerpublic void removeNameChangedListener(NameChangedListener listener)
listener - the listenerpublic void addFilenameChangedListener(FilenameChangedListener listener)
listener - the listenerpublic void removeFilenameChangedListener(FilenameChangedListener listener)
listener - the listenerpublic void activateParameters()
NamedParams
activateParameters in interface NamedParams
public void addParameterDefinition(String key,
String defValue,
String description)
throws DuplicateParamException
NamedParams
addParameterDefinition in interface NamedParamskey - Name of the parameter.defValue - default value.description - Description of the parameter.
DuplicateParamException - Upon duplicate parameter definitions
public String getParameterDescription(String key)
throws UnknownParamException
NamedParams
getParameterDescription in interface NamedParamskey - Key to get value for.
UnknownParamException - Parameter 'key' is unknown.
public String getParameterDefault(String key)
throws UnknownParamException
NamedParams
getParameterDefault in interface NamedParamskey - Key to get value for.
UnknownParamException - Parameter 'key' is unknown.
public String getParameterValue(String key)
throws UnknownParamException
NamedParams
getParameterValue in interface NamedParamskey - Key to get value for.
UnknownParamException - Parameter 'key' is unknown.public String[] listParameters()
NamedParams
listParameters in interface NamedParams
public void setParameterValue(String key,
String value)
throws UnknownParamException
NamedParams
setParameterValue in interface NamedParamskey - key to set value ofvalue - value to set it to.
UnknownParamException - Parameter 'key' is unknown.public void eraseParameters()
NamedParams
eraseParameters in interface NamedParamspublic void clearParameters()
NamedParams
clearParameters in interface NamedParamspublic void copyParametersFrom(NamedParams params)
NamedParams
copyParametersFrom in interface NamedParamsparams - the parameters to copy from.public List<JobEntryCopy> getJobCopies()
public List<NotePadMeta> getNotes()
public List<JobHopMeta> getJobhops()
public RepositoryObjectType getRepositoryElementType()
RepositoryElementInterface
getRepositoryElementType in interface RepositoryElementInterfacepublic ObjectRevision getObjectRevision()
RepositoryElementInterface
getObjectRevision in interface LoggingObjectInterfacegetObjectRevision in interface RepositoryElementInterfacepublic void setObjectRevision(ObjectRevision objectRevision)
RepositoryElementInterface
setObjectRevision in interface RepositoryElementInterfacepublic List<JobEntryInterface> composeJobEntryInterfaceList()
public String getLogChannelId()
LoggingObjectInterface
getLogChannelId in interface LoggingObjectInterfacepublic String getObjectName()
LoggingObjectInterface
getObjectName in interface LoggingObjectInterfacepublic String getObjectCopy()
LoggingObjectInterface
getObjectCopy in interface LoggingObjectInterfacepublic LoggingObjectType getObjectType()
LoggingObjectInterface
getObjectType in interface LoggingObjectInterfacepublic LoggingObjectInterface getParent()
LoggingObjectInterface
getParent in interface LoggingObjectInterfacepublic LogLevel getLogLevel()
LoggingObjectInterface
getLogLevel in interface LoggingObjectInterfacepublic void setLogLevel(LogLevel logLevel)
logLevel - the new log levelpublic 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<LogTableInterface> getLogTables()
public boolean canSave()
canSave in interface EngineMetaInterfaceEngineMetaInterface.canSave()public String getContainerObjectId()
getContainerObjectId in interface LoggingObjectInterfacepublic void setCarteObjectId(String containerObjectId)
containerObjectId - the execution container Object id to setpublic Date getRegistrationDate()
getRegistrationDate in interface LoggingObjectInterfacepublic boolean hasRepositoryReferences()
public void lookupRepositoryReferences(Repository repository)
throws KettleException
repository - the repository to reference.
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 | |||||||||