Codota Logo
JobEntryResult
Code IndexAdd Codota to your IDE (free)

How to use
JobEntryResult
in
org.pentaho.di.job

Best Java code snippets using org.pentaho.di.job.JobEntryResult (Showing top 15 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: pentaho/pentaho-kettle

if ( jer != null ) {
 messageText.append( " : " );
 if ( jer.getJobEntryName() != null ) {
  messageText.append( " : " );
  messageText.append( jer.getJobEntryName() );
 if ( jer.getResult() != null ) {
  messageText.append( " : " );
  messageText.append( "[" + jer.getResult().toString() + "]" );
 if ( jer.getReason() != null ) {
  messageText.append( " : " );
  messageText.append( jer.getReason() );
 if ( jer.getComment() != null ) {
  messageText.append( " : " );
  messageText.append( jer.getComment() );
 if ( jer.getLogDate() != null ) {
  messageText.append( " (" );
  messageText.append( XMLHandler.date2string( jer.getLogDate() ) );
  messageText.append( ')' );
origin: pentaho/pentaho-kettle

@Override
public int compare( JobEntryResult one, JobEntryResult two ) {
 if ( one == null && two != null ) {
  return -1;
 }
 if ( one != null && two == null ) {
  return 1;
 }
 if ( one == null && two == null ) {
  return 0;
 }
 if ( one.getJobEntryName() == null && two.getJobEntryName() != null ) {
  return -1;
 }
 if ( one.getJobEntryName() != null && two.getJobEntryName() == null ) {
  return 1;
 }
 if ( one.getJobEntryName() == null && two.getJobEntryName() == null ) {
  return 0;
 }
 int cmp = one.getJobEntryName().compareTo( two.getJobEntryName() );
 if ( cmp != 0 ) {
  return cmp;
 }
 return Integer.valueOf( one.getJobEntryNr() ).compareTo( Integer.valueOf( two.getJobEntryNr() ) );
}
origin: pentaho/pentaho-kettle

@Override
public int compareTo( JobEntryResult two ) {
 return compare( this, two );
}
origin: pentaho/pentaho-kettle

@Override
public Object clone() {
 try {
  JobEntryResult jobEntryResult = (JobEntryResult) super.clone();
  if ( getResult() != null ) {
   jobEntryResult.setResult( getResult().clone() );
  }
  return jobEntryResult;
 } catch ( CloneNotSupportedException e ) {
  return null;
 }
}
origin: pentaho/pentaho-kettle

 @Override
 public Exception call() throws Exception {
  Exception exception = null;
  try {
   for ( int i = 0; i < cycles; i++ ) {
    int id = idGenerator.getAndIncrement();
    JobEntryResult result = new JobEntryResult();
    result.setJobEntryName( String.format( resultNameTemplate, id ) );
    result.setJobEntryNr( id );
    JobTracker child = new JobTracker( mockJobMeta( "child-" + id ), result );
    tracker.addJobTracker( child );
   }
  } catch ( Exception e ) {
   exception = e;
  }
  return exception;
 }
}
origin: pentaho/pentaho-kettle

private void emergencyWriteJobTracker( Result res ) {
 JobEntryResult jerFinalResult =
   new JobEntryResult( res, this.getLogChannelId(), BaseMessages.getString( PKG, "Job.Comment.JobFinished" ), null,
     null, 0, null );
 JobTracker finalTrack = new JobTracker( this.getJobMeta(), jerFinalResult );
 // jobTracker is up to date too.
 this.jobTracker.addJobTracker( finalTrack );
}
origin: pentaho/pentaho-kettle

Result result = jobEntryResult.getResult();
int iconX = ( x + iconsize ) - ( MINI_ICON_SIZE / 2 );
int iconY = y - ( MINI_ICON_SIZE / 2 );
if ( jobEntryResult.isCheckpoint() ) {
 gc.drawImage( EImage.CHECKPOINT, iconX, iconY, magnification );
 areaOwners.add( new AreaOwner( AreaType.JOB_ENTRY_RESULT_CHECKPOINT, iconX, iconY, MINI_ICON_SIZE,
origin: pentaho/pentaho-kettle

JobEntryResult jobEntryResult = (JobEntryResult) areaOwner.getOwner();
jobEntryCopy = (JobEntryCopy) areaOwner.getParent();
Result result = jobEntryResult.getResult();
tip.append( "'" ).append( jobEntryCopy.getName() ).append( "' " );
if ( result.getResult() ) {
origin: pentaho/pentaho-kettle

  new JobEntryResult( null, null, BaseMessages.getString( PKG, "Job.Comment.JobStarted" ), reason, jobEntryCopy
    .getName(), jobEntryCopy.getNr(), environmentSubstitute( jobEntryCopy.getEntry().getFilename() ) );
jobTracker.addJobTracker( new JobTracker( jobMeta, jerBefore ) );
  new JobEntryResult( newResult, cloneJei.getLogChannel().getLogChannelId(), BaseMessages.getString( PKG,
    "Job.Comment.JobFinished" ), null, jobEntryCopy.getName(), jobEntryCopy.getNr(), environmentSubstitute(
      jobEntryCopy.getEntry().getFilename() ) );
origin: pentaho/pentaho-kettle

result = jobEntryResult.getResult();
origin: pentaho/pentaho-kettle

JobEntryResult result = jobTracker.getJobEntryResult();
if ( result != null ) {
 String jobEntryName = result.getJobEntryName();
 if ( !Utils.isEmpty( jobEntryName ) ) {
  treeItem.setText( 0, jobEntryName );
  treeItem.setText( 4, Const.NVL( result.getJobEntryFilename(), "" ) );
 } else {
  treeItem.setText( 0, BaseMessages.getString( PKG, "JobLog.Tree.JobPrefix2" )
   + jobTracker.getJobName() );
 String comment = result.getComment();
 if ( comment != null ) {
  treeItem.setText( 1, comment );
 Result res = result.getResult();
 if ( res != null ) {
  treeItem.setText( 2, res.getResult()
 String reason = result.getReason();
 if ( reason != null ) {
  treeItem.setText( 3, reason );
 Date logDate = result.getLogDate();
 if ( logDate != null ) {
  treeItem.setText( 6, new SimpleDateFormat( "yyyy/MM/dd HH:mm:ss" ).format( logDate ) );
origin: pentaho/pentaho-kettle

private JobEntryResult findJobEntryResult( JobEntryCopy jobEntryCopy ) {
 if ( jobEntryResults == null ) {
  return null;
 }
 Iterator<JobEntryResult> iterator = jobEntryResults.iterator();
 while ( iterator.hasNext() ) {
  JobEntryResult jobEntryResult = iterator.next();
  if ( jobEntryResult.getJobEntryName().equals( jobEntryCopy.getName() )
   && jobEntryResult.getJobEntryNr() == jobEntryCopy.getNr() ) {
   return jobEntryResult;
  }
 }
 return null;
}
origin: pentaho/pentaho-kettle

  new JobEntryResult( null, null, BaseMessages.getString( PKG, "Job.Comment.JobStarted" ), BaseMessages
    .getString( PKG, "Job.Reason.Started" ), null, 0, null );
jobTracker.addJobTracker( new JobTracker( jobMeta, jerStart ) );
   new JobEntryResult( res, jes.getLogChannelId(), BaseMessages.getString( PKG, "Job.Comment.JobFinished" ),
     BaseMessages.getString( PKG, "Job.Reason.Finished" ), null, 0, null );
} else {
 res = execute( 0, res, startpoint, null, BaseMessages.getString( PKG, "Job.Reason.Started" ) );
 jerEnd =
   new JobEntryResult( res, startpoint.getEntry().getLogChannel().getLogChannelId(), BaseMessages.getString(
     PKG, "Job.Comment.JobFinished" ), BaseMessages.getString( PKG, "Job.Reason.Finished" ), null, 0, null );
origin: pentaho/pentaho-kettle

/**
 * Finds the JobTracker for the job entry specified. Use this to
 *
 * @param jobEntryCopy
 *          The entry to search the job tracker for
 * @return The JobTracker of null if none could be found...
 */
public JobTracker findJobTracker( JobEntryCopy jobEntryCopy ) {
 if ( jobEntryCopy.getName() == null ) {
  return null;
 }
 lock.readLock().lock();
 try {
  ListIterator<JobTracker> it = jobTrackers.listIterator( jobTrackers.size() );
  while ( it.hasPrevious() ) {
   JobTracker tracker = it.previous();
   JobEntryResult result = tracker.getJobEntryResult();
   if ( result != null ) {
    if ( jobEntryCopy.getName().equals( result.getJobEntryName() )
     && jobEntryCopy.getNr() == result.getJobEntryNr() ) {
     return tracker;
    }
   }
  }
 } finally {
  lock.readLock().unlock();
 }
 return null;
}
origin: pentaho/pentaho-kettle

private static JobTracker createTracker( String jobEntryName, int jobEntryNr ) {
 JobMeta jobMeta = mock( JobMeta.class );
 JobTracker jobTracker = new JobTracker( jobMeta );
 if ( jobEntryName != null ) {
  JobEntryResult result = mock( JobEntryResult.class );
  when( result.getJobEntryName() ).thenReturn( jobEntryName );
  when( result.getJobEntryNr() ).thenReturn( jobEntryNr );
  jobTracker.setJobEntryResult( result );
 }
 return jobTracker;
}
org.pentaho.di.jobJobEntryResult

Javadoc

This class holds the result of a job entry after it was executed. Things we want to keep track of are:

--> result of the execution (Result)

--> ...

Most used methods

  • getJobEntryName
  • <init>
  • getComment
  • getJobEntryNr
  • getLogDate
  • getReason
  • getResult
  • compare
  • getJobEntryFilename
  • isCheckpoint
  • setJobEntryName
  • setJobEntryNr
  • setJobEntryName,
  • setJobEntryNr,
  • setResult

Popular in Java

  • Finding current android device location
  • startActivity (Activity)
  • putExtra (Intent)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Runner (org.openjdk.jmh.runner)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now