Tabnine Logo
JobMeta.findJobEntry
Code IndexAdd Tabnine to your IDE (free)

How to use
findJobEntry
method
in
org.pentaho.di.job.JobMeta

Best Java code snippets using org.pentaho.di.job.JobMeta.findJobEntry (Showing top 17 results out of 315)

origin: pentaho/pentaho-kettle

/**
 * Find unused nr.
 *
 * @param name the name
 * @return the int
 */
public int findUnusedNr( String name ) {
 int nr = 1;
 JobEntryCopy je = findJobEntry( name, nr, true );
 while ( je != null ) {
  nr++;
  // log.logDebug("findUnusedNr()", "Trying unused nr: "+nr);
  je = findJobEntry( name, nr, true );
 }
 return nr;
}
origin: pentaho/pentaho-kettle

/**
 * Proposes an alternative job entry name when the original already exists...
 *
 * @param entryname The job entry name to find an alternative for..
 * @return The alternative stepname.
 */
public String getAlternativeJobentryName( String entryname ) {
 String newname = entryname;
 JobEntryCopy jec = findJobEntry( newname );
 int nr = 1;
 while ( jec != null ) {
  nr++;
  newname = entryname + " " + nr;
  jec = findJobEntry( newname );
 }
 return newname;
}
origin: pentaho/pentaho-kettle

public JobHopMeta( Node hopnode, JobMeta job ) throws KettleXMLException {
 try {
  String from_name = XMLHandler.getTagValue( hopnode, "from" );
  String to_name = XMLHandler.getTagValue( hopnode, "to" );
  String sfrom_nr = XMLHandler.getTagValue( hopnode, "from_nr" );
  String sto_nr = XMLHandler.getTagValue( hopnode, "to_nr" );
  String senabled = XMLHandler.getTagValue( hopnode, "enabled" );
  String sevaluation = XMLHandler.getTagValue( hopnode, "evaluation" );
  String sunconditional = XMLHandler.getTagValue( hopnode, "unconditional" );
  int from_nr, to_nr;
  from_nr = Const.toInt( sfrom_nr, 0 );
  to_nr = Const.toInt( sto_nr, 0 );
  this.from = job.findJobEntry( from_name, from_nr, true );
  this.to = job.findJobEntry( to_name, to_nr, true );
  if ( senabled == null ) {
   enabled = true;
  } else {
   enabled = "Y".equalsIgnoreCase( senabled );
  }
  if ( sevaluation == null ) {
   evaluation = true;
  } else {
   evaluation = "Y".equalsIgnoreCase( sevaluation );
  }
  unconditional = "Y".equalsIgnoreCase( sunconditional );
 } catch ( Exception e ) {
  throw new KettleXMLException(
   BaseMessages.getString( PKG, "JobHopMeta.Exception.UnableToLoadHopInfoXML" ), e );
 }
}
origin: pentaho/pentaho-kettle

private void setupJobMockExecution() {
 setInternalState( mockedJob, "jobMeta", mockedJobMeta );
 setInternalState( mockedJob, "log", mockedLogChannel );
 setInternalState( mockedJob, "jobTracker", new JobTracker( mockedJobMeta ) );
 setInternalState( mockedJob, "jobEntryListeners", new ArrayList<>(  ) );
 setInternalState( mockedJob, "jobEntryResults", new LinkedList<>(  ) );
 setInternalState( mockedJob, "status", new AtomicInteger( 0 ) );
 when( mockedJobMeta.findJobEntry( JobMeta.STRING_SPECIAL_START, 0, false ) ).thenReturn( mockedJobEntryCopy );
 when( mockedJobEntryCopy.getEntry() ).thenReturn( mockedJobEntrySpecial );
 when( mockedJobEntrySpecial.getLogChannel() ).thenReturn( mockedLogChannel );
 when( mockedJobEntrySpecial.clone() ).thenReturn( mockedJobEntrySpecial );
 when( mockedJob.isStopped() ).thenCallRealMethod();
 doCallRealMethod().when( mockedJob ).setStopped( anyBoolean() );
 KettleLogStore.init();
}
origin: pentaho/pentaho-kettle

object = new TreeSelection( path[3], jobMeta.findJobEntry( path[3] ), jobMeta );
origin: pentaho/pentaho-kettle

if ( startCopyName != null && !startCopyName.isEmpty() ) {
 int startCopyNr = jobExecutionConfiguration.getStartCopyNr();
 JobEntryCopy startJobEntryCopy = jobMeta.findJobEntry( startCopyName, startCopyNr, false );
 job.setStartJobEntryCopy( startJobEntryCopy );
origin: pentaho/pentaho-kettle

if ( !Utils.isEmpty( getConfiguration().getStartCopyName() ) ) {
 JobEntryCopy copy =
   ( (JobMeta) abstractMeta ).findJobEntry( getConfiguration().getStartCopyName(), getConfiguration()
     .getStartCopyNr(), false );
 if ( copy != null ) {
origin: pentaho/pentaho-kettle

if ( lastChained != null && jobMeta.findJobEntry( lastChained.getName(), lastChained.getNr(), false ) == null ) {
 lastChained = null;
origin: pentaho/pentaho-kettle

JobEntryCopy check = jobMeta.findJobEntry( entry_name, 0, true );
while ( check != null ) {
 entry_name = type_desc + " " + nr++;
 check = jobMeta.findJobEntry( entry_name, 0, true );
origin: pentaho/pentaho-kettle

startpoint = jobMeta.findJobEntry( JobMeta.STRING_SPECIAL_START, 0, false );
if ( startpoint == null ) {
 throw new KettleJobException( BaseMessages.getString( PKG, "Job.Log.CounldNotFindStartingPoint" ) );
origin: pentaho/pentaho-kettle

if ( startCopyName != null && !startCopyName.isEmpty() ) {
 int startCopyNr = jobExecutionConfiguration.getStartCopyNr();
 JobEntryCopy startJobEntryCopy = jobMeta.findJobEntry( startCopyName, startCopyNr, false );
 job.setStartJobEntryCopy( startJobEntryCopy );
origin: pentaho/pentaho-kettle

JobEntryCopy copyFrom = jobMeta.findJobEntry( copyFromName, copyFromNr, true );
JobEntryCopy copyTo = jobMeta.findJobEntry( copyToName, copyToNr, true );
origin: pentaho/pentaho-kettle

 addMissingEntry( (MissingEntry) je.getEntry() );
JobEntryCopy prev = findJobEntry( je.getName(), 0, true );
if ( prev != null ) {
  prev = findJobEntry( je.getName(), je.getNr(), true );
  if ( prev != null ) {
origin: pentaho/pentaho-kettle

 runJobMeta.findJobEntry( executionConfiguration.getStartCopyName(), executionConfiguration
  .getStartCopyNr(), false );
job.setStartJobEntryCopy( startJobEntryCopy );
origin: pentaho/pentaho-kettle

jobEntryCopy.setEntry( JobMeta.findJobEntry( jobentries, jobEntryId ) );
if ( jobEntryCopy.getEntry() == null ) {
origin: pentaho/pentaho-kettle

jge = jobMeta.findJobEntry( entry, 0, true );
if ( jge != null ) {
origin: pentaho/pentaho-kettle

 startpoint = jobMeta.findJobEntry( JobMeta.STRING_SPECIAL_START, 0, false );
} else {
 startpoint = startJobEntryCopy;
org.pentaho.di.jobJobMetafindJobEntry

Javadoc

Find job entry.

Popular methods of JobMeta

  • environmentSubstitute
  • <init>
    Create a new JobMeta object by loading it from a a DOM node.
  • getName
  • findDatabase
  • getDatabases
  • getJobCopies
    Gets the job copies.
  • getParameterDefault
  • getXML
  • setName
  • addDatabase
  • addJobEntry
    Adds the job entry.
  • addJobHop
    Adds the job hop.
  • addJobEntry,
  • addJobHop,
  • addNote,
  • addParameterDefinition,
  • clearChanged,
  • getCreatedDate,
  • getCreatedUser,
  • getDatabase,
  • getExtendedDescription

Popular in Java

  • Finding current android device location
  • setRequestProperty (URLConnection)
  • getContentResolver (Context)
  • onCreateOptionsMenu (Activity)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • JComboBox (javax.swing)
  • JFileChooser (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now