Examples of suspend()


Examples of com.caucho.transaction.TransactionManagerImpl.suspend()

  public Transaction beginRequiresNew()
  {
    try {
      TransactionManagerImpl tm = TransactionManagerImpl.getLocal();

      Transaction xa = tm.suspend();

      _ut.begin();

      return xa;
    } catch (RuntimeException e) {
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.runtime.ProcessInstanceEntity.suspend()

    if(processInstanceImpl.hasEnded()){
      throw new FixFlowException("流程实例已经结束,不能暂停");
    }
   
    //暂停流程实例
    processInstanceImpl.suspend();
 
    try {
      // 持久化实例
      processInstanceManager.saveProcessInstance(processInstanceImpl);
    } catch (Exception e) {
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.runtime.TokenEntity.suspend()

    runCommandExpression();

    // 获取当前操作任务的令牌
    TokenEntity token = getTaskInstanceEntity().getToken();
    // 恢复令牌
    token.suspend();

    try {
      // 保存流程实例
      saveProcessInstance(commandContext);
View Full Code Here

Examples of com.founder.fix.fixflow.core.task.TaskInstance.suspend()

  }

  public void suspendTask(String taskId) {
    TaskService taskService=getProcessEngine().getTaskService();
    TaskInstance taskInstance=taskService.createTaskQuery().taskId(taskId).singleResult();
    taskInstance.suspend();
    taskService.saveTask(taskInstance);
  }


 
View Full Code Here

Examples of com.founder.fix.fixflow.core.task.TaskMgmtInstance.suspend()

  }

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

  void resumeTaskInstances() {
    TaskMgmtInstance taskMgmtInstance = (getProcessInstance() != null ? getProcessInstance().getTaskMgmtInstance() : null);
View Full Code Here

Examples of com.lightcrafts.utils.directory.DirectoryMonitor.suspend()

        tree.dispose();
    }

    public void pauseFolderMonitor() {
        DirectoryMonitor monitor = tree.getDirectoryMonitor();
        monitor.suspend();
    }

    public void resumeFolderMonitor() {
        DirectoryMonitor monitor = tree.getDirectoryMonitor();
        monitor.resume(false);
View Full Code Here

Examples of com.linkedin.databus.core.util.RateMonitor.suspend()

    RateMonitor seedingRate = new RateMonitor("Seeding Rate");
    RateMonitor queryRate = new RateMonitor("Query Rate");
    seedingRate.start();
    seedingRate.suspend();
    queryRate.start();
    queryRate.suspend();
    boolean isException = false;
    long totProcessTime =0;
    try
    {
      conn  = _dataSource.getConnection();
View Full Code Here

Examples of com.linkedin.databus.core.util.RateMonitor.suspend()

      long commitInterval = _config.getCommitInterval();
      long totLatency = 0;
      GenericRecord record = null;
      RateMonitor seedingRate = new RateMonitor("Seeding Rate");
      seedingRate.start();   
      seedingRate.suspend();
     
      long startRowId = _lastRows.get(sourceInfo.getEventView());
     
      LOG.info("Last Known Row Id is :" + startRowId);
     
View Full Code Here

Examples of com.sun.grid.jgrid.Job.suspend()

     
      throw new CommandFailedException (jobId, "No such job");
    }
    else if (job.getState () == Job.RUNNING) {
      try {
        job.suspend ();
       
        log.fine ("Job has been suspended: " + jobId);
      }
      catch (NotInterruptableException e) {
        log.finer ("Suspend command failed for job " + jobId + ": Job cannot be interrupted");
View Full Code Here

Examples of com.sun.jdi.ThreadReference.suspend()

                            DroolsThread th2 = (DroolsThread) tharr[i];
                            ThreadReference th2real = ((DroolsThread) tharr[i]).getUnderlyingThread();
                            if (th2real.suspendCount() == 1    && th2.getName().equals("main")) {
                                t = th2real;
                                t2 = (DroolsThread) th2;
                                th2real.suspend();
                                th2.setRunning(false);
                                th2.fireSuspendEvent(DebugEvent.CLIENT_REQUEST);
                                return true;
                            }
                        }
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.