Package org.pentaho.di.job

Examples of org.pentaho.di.job.Job.waitUntilFinished()


    Thread jobRunner = new Thread(new Runnable(){

      @Override
      public void run() {
        job.start();
        job.waitUntilFinished();
        
      }
    });;
   
    // start the job and wait for it to finish
View Full Code Here


    Thread jobRunner = new Thread(new Runnable(){

      @Override
      public void run() {
        job.start();
        job.waitUntilFinished();
        
      }
    });;
   
    // start the job and wait for it to finish
View Full Code Here

    if ( jobMeta != null ) {
      Job job = new Job( null, jobMeta );
      Result result = new Result();
      try {
        job.execute( 0, result );
        job.waitUntilFinished();
      } catch ( KettleException ke ) {
        Logger.error( "Error executing " + jobFileFullPath, ke.getMessage() );
        return false;
      }
View Full Code Here

        // It's running in a separate tread to allow monitoring,
        // etc.
        if ( ComponentBase.debug ) {
          debug( Messages.getInstance().getString( "Kettle.DEBUG_JOB_RUNNING" ) ); //$NON-NLS-1$
        }
        job.waitUntilFinished();
        if ( job.getResult().getNrErrors() > 0 ) {
          debug( getKettleLog( true ) );
          throw new KettleComponentException( Messages.getInstance().getErrorString(
              "Kettle.ERROR_0014_ERROR_DURING_EXECUTE" ) ); //$NON-NLS-1$
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.