Examples of suspend()


Examples of org.jboss.as.ejb3.timerservice.TimerImpl.suspend()

        resourceRegistration.registerOperationHandler(SUSPEND, new AbstractTimerHandler() {

            @Override
            void executeRuntime(OperationContext context, ModelNode operation) throws OperationFailedException {
                final TimerImpl timer = getTimer(context, operation);
                timer.suspend();
                context.completeStep(new OperationContext.RollbackHandler() {

                    @Override
                    public void handleRollback(OperationContext context, ModelNode operation) {
                        timer.scheduleTimeout(true);
View Full Code Here

Examples of org.jboss.cache.transaction.DummyTransactionManager.suspend()

        Transaction tx = mgr.getTransaction();
        System.out.println("Current TX " + mgr.getTransaction());
        assertEquals(pojo1, cache.get("/one/two", "key1"));

        // start another
        mgr.suspend();

        mgr.begin();
        System.out.println("Current TX " + mgr.getTransaction());
        cache.put("/one/two", "key2", pojo2);
View Full Code Here

Examples of org.jboss.resteasy.spi.ResteasyAsynchronousContext.suspend()

   }

   public Object inject(HttpRequest request, HttpResponse response)
   {
      final ResteasyAsynchronousContext asynchronousContext = request.getAsyncContext();
      final ResteasyAsynchronousResponse asynchronousResponse = asynchronousContext.suspend(suspend);
      ResourceMethodInvoker invoker = (ResourceMethodInvoker)request.getAttribute(ResourceMethodInvoker.class.getName());
      invoker.initializeAsync(asynchronousResponse);
      return new AsynchronousResponse()
      {
         @Override
View Full Code Here

Examples of org.jbpm.graph.exe.ProcessInstance.suspend()

    JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
    TestSchedulerService testSchedulerService = (TestSchedulerService) jbpmContext.getServices().getSchedulerService();
    ProcessInstance processInstance = new ProcessInstance(processDefinition);
    try {
      processInstance.signal();
      processInstance.suspend();
      jbpmContext.save(processInstance);
    } finally {
      jbpmContext.close();
    }
View Full Code Here

Examples of org.jbpm.pvm.internal.repository.DeploymentImpl.suspend()

    DeploymentImpl deployment = (DeploymentImpl) repositorySession.getDeployment(deploymentId);
    if (deployment==null) {
      throw new JbpmException("deployment "+deploymentId+" doesn't exist");
    }
   
    deployment.suspend();
   
    // removing deployment from the cache
    // next time it's used, it will be redeployed
    // at that time, the suspended property will be propagated to the
    // process definitions
View Full Code Here

Examples of org.jbpm.task.service.TaskClient.suspend()

        if (taskSummary == null) {
            return;
        }

        BlockingTaskOperationResponseHandler responseHandler = new BlockingTaskOperationResponseHandler();
        client.suspend(taskSummary.getId(), userId, responseHandler);
        responseHandler.waitTillDone(3000);
        refresh();
    }

    public void resume() {
View Full Code Here

Examples of org.jbpm.taskmgmt.exe.TaskInstance.suspend()

    public void unlockTaskInstance(final long taskInstanceId) {
        if (taskInstanceId != 0) {
            getJbpmTemplate().execute(new JbpmCallback() {
                public Object doInJbpm(JbpmContext jbpmContext) throws JbpmException {
                    TaskInstance ti = getTaskInstance(taskInstanceId);
                    ti.suspend();
                    jbpmContext.save(ti);
                    return null;
                }
            });
        }
View Full Code Here

Examples of org.jbpm.taskmgmt.exe.TaskMgmtInstance.suspend()

  void suspendTaskInstances()
  {
    TaskMgmtInstance taskMgmtInstance = (processInstance != null ? processInstance.getTaskMgmtInstance() : null);
    if (taskMgmtInstance != null)
    {
      taskMgmtInstance.suspend(this);
    }
  }

  /**
   * resumes a process execution.
View Full Code Here

Examples of org.libvirt.Domain.suspend()

    }

    public int domainSuspend(String domainName) throws LibvirtException {
        Domain domain = getDomain(domainName);
        try {
            domain.suspend();
            return SUCCESS;
        } finally {
            domain.free();
        }
    }
View Full Code Here

Examples of org.mortbay.jetty.nio.SelectChannelConnector.RetryContinuation.suspend()

          @Override
          public void onChange() {
            continuation.resume();
          }
        });
        continuation.suspend(60 * 1000);
      }
    }
   
    resp.getWriter().println(gson.toJson(new LogResponse(marker, log.toString())));
  }
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.