Examples of suspend()


Examples of org.apache.geronimo.transaction.context.TransactionContext.suspend()

        ConnectionInfo connectionInfo1 = makeConnectionInfo();
        transactionCachingInterceptor.getConnection(connectionInfo1);
        obtainedConnectionInfo = null;

        //start a second transaction
        transactionContext1.suspend();
        TransactionContext transactionContext2 = transactionContextManager.newContainerTransactionContext();
        ConnectionInfo connectionInfo2 = makeConnectionInfo();
        transactionCachingInterceptor.getConnection(connectionInfo2);
        assertTrue("Expected to get a second connection", obtainedConnectionInfo != null);
        assertTrue("Expected nothing returned yet", returnedConnectionInfo == null);
View Full Code Here

Examples of org.apache.ivory.client.IvoryClient.suspend()

      colo = getColo(colo);
      result = client.schedule(entityType, entityName, colo);
    } else if (optionsList.contains(SUSPEND_OPT)) {
      validateEntityName(optionsList, entityName);
      colo = getColo(colo);
      result = client.suspend(entityType, entityName, colo);
    } else if (optionsList.contains(RESUME_OPT)) {
      validateEntityName(optionsList, entityName);
      colo = getColo(colo);
      result = client.resume(entityType, entityName, colo);
    } else if (optionsList.contains(DELETE_OPT)) {
View Full Code Here

Examples of org.apache.myfaces.trinidad.context.ComponentContextManager.suspend()

      .getComponentContextManager();
    FacesContext facesContext = visitContext.getFacesContext();

    // Suspend any current component context during a visit tree for re-entrant
    // component tree processing
    SuspendedContextChanges suspendedChanges = ctxMgr.suspend(facesContext);

    try
    {
      return super.visitTree(visitContext, callback);
    }
View Full Code Here

Examples of org.apache.ode.bpel.engine.DebuggerSupport.suspend()

        if (debugSupport == null) {
            log.error("Cannot suspend the instance " + iid + ", Debugger support not available");
            throw new InstanceManagementException("Cannot suspend the instance " + iid +
                    ", Debugger support not available");
        }
        debugSupport.suspend(iid);
    }

    /**
     * Terminate an instance
     *
 
View Full Code Here

Examples of org.apache.oozie.BundleEngine.suspend()

    private void suspendBundleJob(HttpServletRequest request, HttpServletResponse response) throws XServletException {
        BundleEngine bundleEngine = Services.get().get(BundleEngineService.class).getBundleEngine(getUser(request),
                getAuthToken(request));
        String jobId = getResourceName(request);
        try {
            bundleEngine.suspend(jobId);
        }
        catch (BundleEngineException ex) {
            throw new XServletException(HttpServletResponse.SC_BAD_REQUEST, ex);
        }
    }
View Full Code Here

Examples of org.apache.oozie.CoordinatorEngine.suspend()

            throws XServletException {
        CoordinatorEngine coordEngine = Services.get().get(CoordinatorEngineService.class).getCoordinatorEngine(
                getUser(request), getAuthToken(request));
        String jobId = getResourceName(request);
        try {
            coordEngine.suspend(jobId);
        }
        catch (CoordinatorEngineException ex) {
            throw new XServletException(HttpServletResponse.SC_BAD_REQUEST, ex);
        }
    }
View Full Code Here

Examples of org.apache.oozie.DagEngine.suspend()

        DagEngine dagEngine = Services.get().get(DagEngineService.class).getDagEngine(getUser(request),
                getAuthToken(request));

        String jobId = getResourceName(request);
        try {
            dagEngine.suspend(jobId);
        }
        catch (DagEngineException ex) {
            throw new XServletException(HttpServletResponse.SC_BAD_REQUEST, ex);
        }
    }
View Full Code Here

Examples of org.apache.oozie.client.OozieClient.suspend()

            wc.start(jobId);
            wf = wc.getJobInfo(jobId);

            Date lastModTime = wf.getLastModifiedTime();

            wc.suspend(jobId);
            wf = wc.getJobInfo(jobId);

            dateTest = wf.getLastModifiedTime().compareTo(lastModTime) >= 0 ? true : false;
            assertEquals(true, dateTest);
View Full Code Here

Examples of org.apache.oozie.client.XOozieClient.suspend()

                    System.out.println("coordAction instance: " + i + ":");
                    System.out.println(dryrunStr[i]);
                }
            }
            else if (options.contains(SUSPEND_OPTION)) {
                wc.suspend(commandLine.getOptionValue(SUSPEND_OPTION));
            }
            else if (options.contains(RESUME_OPTION)) {
                wc.resume(commandLine.getOptionValue(RESUME_OPTION));
            }
            else if (options.contains(KILL_OPTION)) {
View Full Code Here

Examples of org.apache.sling.event.jobs.Queue.suspend()

            // get the queue
            final Queue q = jobManager.getQueue("orderedtest");
            assertNotNull("Queue 'orderedtest' should exist!", q);

            // suspend it
            q.suspend();

            final int NUM_JOBS = 30;

            // we start "some" jobs:
            for(int i = 0; i < NUM_JOBS; i++ ) {
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.