Package org.pentaho.di.core

Examples of org.pentaho.di.core.Result


        fail("all tests job seems to be hanging for "+(MAX_RUNTIME/1000)+" seconds");
      }
    }

    // make sure there's no errors when the job finishes
    Result result = job.getResult();
    assertEquals(0, result.getNrErrors());
   
  }
View Full Code Here


        fail("samples job seems to be hanging for "+(MAX_RUNTIME/1000)+" seconds");
      }
    }

    // make sure there's no errors when the job finishes
    Result result = job.getResult();
    assertEquals(0, result.getNrErrors());
   
  }
View Full Code Here

  }

  public Result execute(Result prev_result, int nr, Repository rep, Job parentJob) {
    LogWriter log = LogWriter.getInstance();

    Result result = new Result(nr);
    result.setResult(false);

    log.logDetailed(toString(), "Start of processing");

    // String substitution..
    String realS3Bucket = environmentSubstitute(S3Bucket);
    String realAccessKey = environmentSubstitute(AccessKey);
    String realPrivateKey = environmentSubstitute(PrivateKey);
    String realFilenameToSend = environmentSubstitute(FilenameToSend);
    SendToS3Job proc = new SendToS3Job(realAccessKey, realPrivateKey, realS3Bucket, realFilenameToSend);

    try {
      proc.process()
      result.setResult(true);
    } catch (Exception e) {
      result.setNrErrors(1);
      e.printStackTrace();
      log.logError(toString(), "Error processing SendToS3Job : " + e.getMessage());
    }

    return result;
View Full Code Here

      return false;
    }

    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() );
View Full Code Here

TOP

Related Classes of org.pentaho.di.core.Result

Copyright © 2018 www.massapicom. 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.