Examples of waitUntilFinished()


Examples of com.eviware.soapui.model.testsuite.TestCaseRunner.waitUntilFinished()

        properties.put("#TestSuiteRunner#", this);

        TestCaseRunner currentRunner = testCaseAt.run(properties, true);
        activeRunners.add(currentRunner);
        if (!async) {
            currentRunner.waitUntilFinished();
        }

        return currentRunner;
    }
View Full Code Here

Examples of com.eviware.soapui.model.testsuite.TestCaseRunner.waitUntilFinished()

                        result.setStatus(TestStepStatus.FAILED);
                        result.addMessage("Target TestCase is already running");
                        result.stopTimer();
                        runningTestCase = null;
                    } else {
                        targetTestRunner.waitUntilFinished();
                    }
                }
            }

            if (runningTestCase != null) {
View Full Code Here

Examples of org.apache.tools.ant.util.WorkerAnt.waitUntilFinished()

        //do a forced shutdown of the running application, before processing the faults

        try {
            //wait for the worker to have finished
            long shutdownTimeMillis = shutdownTime * shutdownUnitMultiplier;
            worker.waitUntilFinished(shutdownTimeMillis);
            if (worker.isAlive()) {
                //then, if it is still running, interrupt it a second time.
                log(APPLICATION_FORCIBLY_SHUT_DOWN, Project.MSG_WARN);
                worker.interrupt();
                worker.waitUntilFinished(shutdownTimeMillis);
View Full Code Here

Examples of org.apache.tools.ant.util.WorkerAnt.waitUntilFinished()

            worker.waitUntilFinished(shutdownTimeMillis);
            if (worker.isAlive()) {
                //then, if it is still running, interrupt it a second time.
                log(APPLICATION_FORCIBLY_SHUT_DOWN, Project.MSG_WARN);
                worker.interrupt();
                worker.waitUntilFinished(shutdownTimeMillis);
            }
        } catch (InterruptedException e) {
            //success, something interrupted the shutdown. There may be a leaked
            //worker;
            log(SHUTDOWN_INTERRUPTED, e, Project.MSG_VERBOSE);
View Full Code Here

Examples of org.apache.tools.ant.util.WorkerAnt.waitUntilFinished()

        //do a forced shutdown of the running application, before processing the faults

        try {
            //wait for the worker to have finished
            long shutdownTimeMillis = shutdownTime * shutdownUnitMultiplier;
            worker.waitUntilFinished(shutdownTimeMillis);
            if (worker.isAlive()) {
                //then, if it is still running, interrupt it a second time.
                log(APPLICATION_FORCIBLY_SHUT_DOWN, Project.MSG_WARN);
                worker.interrupt();
                worker.waitUntilFinished(shutdownTimeMillis);
View Full Code Here

Examples of org.apache.tools.ant.util.WorkerAnt.waitUntilFinished()

            worker.waitUntilFinished(shutdownTimeMillis);
            if (worker.isAlive()) {
                //then, if it is still running, interrupt it a second time.
                log(APPLICATION_FORCIBLY_SHUT_DOWN, Project.MSG_WARN);
                worker.interrupt();
                worker.waitUntilFinished(shutdownTimeMillis);
            }
        } catch (InterruptedException e) {
            //success, something interrupted the shutdown. There may be a leaked
            //worker;
            log(SHUTDOWN_INTERRUPTED, e, Project.MSG_VERBOSE);
View Full Code Here

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

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

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

    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

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

        // 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.