/** * Checks if is file reference. * * @return true, if is file reference */ public boolean isFileReference() { return !isRepReference( getFilename(), this.getName() ); }
public void setEvaluation() { if ( !evaluation ) { setChanged(); } setEvaluation( true ); }
/** * Create a new JobMeta object by loading it from a a DOM node. * * @param jobnode The node to load from * @param rep The reference to a repository to load additional information from * @param prompter The prompter to use in case a shared object gets overwritten * @throws KettleXMLException */ public JobMeta( Node jobnode, Repository rep, OverwritePrompter prompter ) throws KettleXMLException { this(); loadXML( jobnode, rep, false, prompter ); }
private boolean testEquals( String name, RepositoryDirectoryInterface repDirectory, ObjectRevision revision, String filename ) { JobMeta jobMeta2 = new JobMeta(); jobMeta2.setName( name ); jobMeta2.setRepositoryDirectory( repDirectory ); jobMeta2.setObjectRevision( revision ); jobMeta2.setFilename( filename ); return jobMeta.equals( jobMeta2 ); }
/** * Gets the job meta's repository directory interface. * * @return RepositoryDirectoryInterface */ public RepositoryDirectoryInterface getRepositoryDirectory() { if ( jobMeta == null ) { return null; } return jobMeta.getRepositoryDirectory(); }
/** * Gets the jobMeta's object id. * * @return ObjectId */ public ObjectId getObjectId() { if ( jobMeta == null ) { return null; } return jobMeta.getObjectId(); }
protected void runJob( Job job ) { // Execute the transformation... // job.start(); }
public void stopRunning( StepMetaInterface stepMetaInterface, StepDataInterface stepDataInterface ) throws KettleException { if ( data.executorJob != null ) { data.executorJob.stopAll(); } }
/** * Wait until this job has finished. */ public void waitUntilFinished() { waitUntilFinished( -1L ); }
public void setUnconditional() { if ( !unconditional ) { setChanged(); } unconditional = true; }
/** * Find prev job entry. * * @param to the to * @param nr the nr * @return the job entry copy */ public JobEntryCopy findPrevJobEntry( JobEntryCopy to, int nr ) { return findPrevJobEntry( to, nr, false ); }
/** * Clones the job meta-data object. * * @return a clone of the job meta-data object * @see java.lang.Object#clone() */ public Object clone() { return realClone( true ); }
/** * Sets the finished flag.<b> Then launch all the job listeners and call the jobFinished method for each.<br> * * @see JobListener#jobFinished(Job) */ public void fireJobFinishListeners() throws KettleException { synchronized ( jobListeners ) { for ( JobListener jobListener : jobListeners ) { jobListener.jobFinished( this ); } } }
/** * Compares this job's meta-data to the specified job's meta-data. This method simply calls compare(this, o) * * @param o the o * @return the int * @see #compare(JobMeta, JobMeta) * @see java.lang.Comparable#compareTo(java.lang.Object) */ public int compareTo( JobMeta o ) { return compare( this, o ); }
/** * Call all the jobStarted method for each listener.<br> * * @see JobListener#jobStarted(Job) */ public void fireJobStartListeners() throws KettleException { synchronized ( jobListeners ) { for ( JobListener jobListener : jobListeners ) { jobListener.jobStarted( this ); } } }
/** * Checks if is file reference. * * @param fileName the file name * @param transName the trans name * @return true, if is file reference */ public static boolean isFileReference( String fileName, String transName ) { return !isRepReference( fileName, transName ); }
/** * Checks if is rep reference. * * @return true, if is rep reference */ public boolean isRepReference() { return isRepReference( getFilename(), this.getName() ); }
/** * Load xml. * * @param jobnode the jobnode * @param rep the rep * @param prompter the prompter * @throws KettleXMLException the kettle xml exception */ public void loadXML( Node jobnode, Repository rep, OverwritePrompter prompter ) throws KettleXMLException { loadXML( jobnode, rep, false, prompter ); }
protected void runJob( Job job ) { // Execute the job... // job.start(); }
/** * @param unconditional * the unconditional to set */ public void setUnconditional( boolean unconditional ) { if ( this.unconditional != unconditional ) { setChanged(); } this.unconditional = unconditional; }