Examples of suspend()


Examples of de.scoopgmbh.copper.tranzient.TransientProcessorPool.suspend()

    try {
      final BlockingResponseReceiver<Integer> brr = new BlockingResponseReceiver<Integer>();
      Thread.sleep(10);
      assertFalse(brr.isResponseReceived());
     
      processorPool.suspend();
     
      engine.run("de.scoopgmbh.copper.test.tranzient.simple.NopTransientWorkflow", brr);

      brr.wait4response(100L);
     
View Full Code Here

Examples of gnu.hylafax.HylaFAXClient.suspend()

        HylaFAXClient client = JHylaFAX.getInstance().getConnection(monitor);
        monitor.work(1);

        monitor.setText(i18n.tr("Retrying job"));
        gnu.hylafax.Job editJob = client.getJob(jobID);
        client.suspend(editJob);
        editJob.setProperty("SENDTIME", "NOW");
        monitor.work(1);
       
        client.submit(editJob);
        monitor.work(1);
View Full Code Here

Examples of hudson.plugins.libvirt.lib.IDomain.suspend()

                    } else {
                      taskListener.getLogger().println("Shutting down.");

                        System.err.println("method: " + slave.getShutdownMethod());
                        if (slave.getShutdownMethod().equals("suspend")) {
                            domain.suspend();
                        } else if (slave.getShutdownMethod().equals("destroy")) {
                            domain.destroy();
                        } else {
                      domain.shutdown();
                    }
View Full Code Here

Examples of javax.transaction.TransactionManager.suspend()

                    }
                    manager.begin();
                    m_owned.put(Thread.currentThread(), manager.getTransaction());
                } else {
                    if (suspended == null) {
                        suspended = manager.suspend();
                        if (timeout > 0) {
                            manager.setTransactionTimeout(timeout);
                        }
                        manager.begin();
                        m_owned.put(Thread.currentThread(), manager.getTransaction());
View Full Code Here

Examples of javax.transaction.TransactionManager.suspend()

            return store.getConnection();
        else if (suspendInJTA()) {
            try {
                TransactionManager tm = getConfiguration()
                    .getManagedRuntimeInstance().getTransactionManager();
                _outerTransaction = tm.suspend();
                tm.begin();
                return store.getConnection();
            } catch (Exception e) {
                throw new StoreException(e);
            }
View Full Code Here

Examples of juzu.impl.request.Request.suspend()

    AbstractRunnableAsyncTestCase.requestURL = "" + A_.index();
    AbstractRunnableAsyncTestCase.requestDestroyed = AbstractRunnableAsyncTestCase.destroyed.get();
    final ChunkBuffer content = new ChunkBuffer();
    Runnable task = new Runnable() {
      public void run() {
        ContextLifeCycle lf = request.suspend();
        try {
          Thread.sleep(500);
          AbstractRunnableAsyncTestCase.runnableURL = "" + A_.index();
          AbstractRunnableAsyncTestCase.runnableDestroyed = AbstractRunnableAsyncTestCase.destroyed.get();
          AbstractRunnableAsyncTestCase.runnableActive = controller.isActive();
View Full Code Here

Examples of net.cakenet.jsaton.script.Script.suspend()

        public void actionPerformed(ActionEvent e) {
            if (currentEditor == null)
                return;
            Script script = currentEditor.script;
            script.suspend();
        }
    }

    private class StopAction extends AbstractAction {
        private StopAction() {
View Full Code Here

Examples of org.apache.avalon.excalibur.testcase.FullLifecycleComponent.suspend()

        component.service( new DefaultServiceManager() );
        component.configure( new DefaultConfiguration( "", "" ) );
        component.parameterize( new Parameters() );
        component.initialize();
        component.start();
        component.suspend();
        component.resume();
        component.stop();
        component.dispose();
    }
View Full Code Here

Examples of org.apache.camel.CamelContext.suspend()

        sendAndAssertOneMessage();
    }

    private void stopCamelActivator() throws Exception {
        CamelContext context = (CamelContext) _domain.getProperty(SwitchYardCamelContext.CAMEL_CONTEXT_PROPERTY);
        context.suspend();
    }

    private void startCamelActivator() throws Exception {
        CamelContext context = (CamelContext) _domain.getProperty(SwitchYardCamelContext.CAMEL_CONTEXT_PROPERTY);
        context.resume();
View Full Code Here

Examples of org.apache.camel.SuspendableService.suspend()

    public static boolean suspendService(Service service) throws Exception {
        if (service instanceof SuspendableService) {
            SuspendableService ss = (SuspendableService) service;
            if (!ss.isSuspended()) {
                LOG.trace("Suspending service {}", service);
                ss.suspend();
                return true;
            } else {
                return false;
            }
        } else {
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.