Examples of stop()


Examples of org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntity.stop()

        User user = _userDao.findById(userId);
        Account account = _accountDao.findById(user.getAccountId());

        try {
            VirtualMachineEntity vmEntity = _orchSrvc.getVirtualMachine(vm.getUuid());
            status = vmEntity.stop(new Long(userId).toString());
        } catch (ResourceUnavailableException e) {
            s_logger.debug("Unable to stop due to ", e);
            status = false;
        } catch (CloudException e) {
            throw new CloudRuntimeException(
View Full Code Here

Examples of org.apache.commons.io.input.Tailer.stop()

            @Override
            public void handle(String line) {
                if (line.contains(message)) {
                    found.set(true);
                    tailer.stop();
                }
            }
        }, 500);

        Thread tailerThread = new Thread(tailer);
View Full Code Here

Examples of org.apache.commons.lang.time.StopWatch.stop()

    StopWatch timer = new StopWatch();
    timer.start();
    for (int i = 0; i < numIters; i++) {
      mapper.map(src, destClass);
    }
    timer.stop();
    log.info("Total time for additional " + numIters + " mappings: " + timer.getTime() + " milliseconds");
    log.info("avg time for " + numIters + " mappings: " + (timer.getTime() / numIters) + " milliseconds");
  }

}
View Full Code Here

Examples of org.apache.commons.lang3.time.StopWatch.stop()

    // System.out.println("\t\t6: " + hierRenumber.renumber(6));
    // System.out.println("\t\t6: " + hierRenumber.renumber(6));
    // System.out.println("\t\t6: " + hierRenumber.renumber(6));
    // System.out.println("\t\t\t7: " + hierRenumber.renumber(7));
    // System.out.println("\t\t\t7: " + hierRenumber.renumber(7));
    sw.stop();
    System.out.println(sw.toString());
    sw.reset();
    hierRenumber = RenumberUtils.getIncrementRenumber("[###]", 0);
    System.out.println("\t\t\t7: " + hierRenumber.renumber());
    System.out.println("\t\t\t7: " + hierRenumber.renumber());
View Full Code Here

Examples of org.apache.commons.math.ode.events.CombinedEventsManager.stop()

            // the step has been accepted (may have been truncated)
            final double nextStep = stepStart + stepSize;
            System.arraycopy(yTmp, 0, y, 0, n);
            interpolator.storeTime(nextStep);
            manager.stepAccepted(nextStep, y);
            lastStep = manager.stop();

            // provide the step data to the step handler
            for (StepHandler handler : stepHandlers) {
                interpolator.setInterpolatedTime(nextStep);
                handler.handleStep(interpolator, lastStep);
View Full Code Here

Examples of org.apache.commons.math.ode.events.EventState.stop()

                // trigger the event
                interpolator.setInterpolatedTime(eventT);
                final double[] eventY = interpolator.getInterpolatedState();
                currentEvent.stepAccepted(eventT, eventY);
                isLastStep = currentEvent.stop();

                // handle the first part of the step, up to the event
                for (final StepHandler handler : stepHandlers) {
                    handler.handleStep(interpolator, isLastStep);
                }
View Full Code Here

Examples of org.apache.commons.math3.ode.events.EventState.stop()

                // trigger the event
                interpolator.setInterpolatedTime(eventT);
                final double[] eventY = interpolator.getInterpolatedState().clone();
                currentEvent.stepAccepted(eventT, eventY);
                isLastStep = currentEvent.stop();

                // handle the first part of the step, up to the event
                for (final StepHandler handler : stepHandlers) {
                    handler.handleStep(interpolator, isLastStep);
                }
View Full Code Here

Examples of org.apache.commons.vfs2.impl.DefaultFileMonitor.stop()

        monitor.start();
        writeToFile(testFile);
        Thread.sleep(300);
        assertTrue("No event occurred", changeStatus != 0);
        assertTrue("Incorrect event", changeStatus == 3);
        monitor.stop();
    }

    public void testFileDeleted() throws Exception
    {
        writeToFile(testFile);
View Full Code Here

Examples of org.apache.continuum.builder.distributed.executor.ThreadedDistributedBuildTaskQueueExecutor.stop()

            return;
        }

        try
        {
            executor.stop();
            container.release( executor );
        }
        catch ( StoppingException e )
        {
            throw new ContinuumException( "Error while stopping task queue executor", e );
View Full Code Here

Examples of org.apache.curator.test.TestingCluster.stop()

            {
                throw new AssertionError(error.get());
            }

            Collection<InstanceSpec>    instances = cluster.getInstances();
            cluster.stop();

            Assert.assertTrue(timing.multiple(4).awaitLatch(lostLatch));
            timing.sleepABit();
            Assert.assertFalse(selector.hasLeadership());
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.