Examples of suspend()


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

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

            // suspend it
            q.suspend();

            // we start "some" jobs:
            // first jobs without id
            for(int i = 0; i < NUM_JOBS; i++ ) {
                final String subTopic = TOPIC + "/sub" + (i % 10);
View Full Code Here

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

        String msg = null;
        final String cmd = req.getParameter("action");
        if ( "suspend".equals(cmd) ) {
            final Queue q = this.getQueue(req);
            if ( q != null ) {
                q.suspend();
            } else {
                msg = this.getQueueErrorMessage(req, "suspend");
            }
        } else if ( "resume".equals(cmd) ) {
            final Queue q = this.getQueue(req);
View Full Code Here

Examples of org.atmosphere.cpr.AtmosphereResource.suspend()

                e.getBroadcaster().getBroadcasterConfig().addFilter(new GWTBroadcasterFilter());
            }
        }

        sendKeepAlive(response.getOutputStream());
        e.suspend();
    }

    private static final class GWTBroadcasterFilter implements BroadcastFilter {

        public BroadcastAction filter(Object originalMsg, Object message) {
View Full Code Here

Examples of org.atmosphere.cpr.AtmosphereResourceImpl.suspend()

                                }

                                if (!resume) {
                                    resource.disableSuspend(false);
                                    resource.suspend(session.getRequestSuspendTime());
                                    resource.disableSuspend(true);
                                }
                            }
                        } else {
                            // won't happend, by should be for xhr-streaming transport
View Full Code Here

Examples of org.atmosphere.cpr.Meteor.suspend()

    public ActionForward openCometChannel(ActionMapping mapping, ActionForm _form, HttpServletRequest req, HttpServletResponse res) throws Exception {
        logger.info("BEGIN SimpleAction.openCometChannel()");
        Meteor m = Meteor.build(req, list, null);
        m.setBroadcaster(b);
        req.getSession().setAttribute("meteor", m);
        m.suspend(-1);
        m.broadcast(req.getServerName()
                + "__has suspended a connection from " + req.getRemoteAddr());
        return null;
    }
View Full Code Here

Examples of org.camunda.bpm.engine.impl.cmmn.execution.CmmnActivityExecution.suspend()

    // a case execution associated with Stage X
    CmmnActivityExecution stageX = caseInstance.findCaseExecution("X");

    stageX.manualStart();
    stageX.suspend();

    // a case execution associated with Task A
    CmmnActivityExecution taskA = caseInstance.findCaseExecution("A");
    assertTrue(taskA.isSuspended());
View Full Code Here

Examples of org.camunda.bpm.engine.impl.cmmn.execution.CmmnCaseInstance.suspend()

    // a case execution associated with Task B
    CmmnActivityExecution taskB = caseInstance.findCaseExecution("B");

    // when

    caseInstance.suspend();

    // then
    assertTrue(caseInstance.isSuspended());
    assertTrue(stageX.isSuspended());
    assertTrue(taskA.isSuspended());
View Full Code Here

Examples of org.codehaus.plexus.component.manager.ComponentManager.suspend()

            return;
        }

        ComponentManager componentManager = componentManagerManager.findComponentManagerByComponentInstance( component );

        componentManager.suspend( component );
    }

    public void resume( Object component )
        throws ComponentLifecycleException
    {
View Full Code Here

Examples of org.eclim.plugin.jdt.command.debug.context.DebuggerContext.suspend()

      return Services.getMessage("debugging.session.absent");
    }

    String threadId = commandLine.getValue(Options.THREAD_ID_OPTION);
    if (threadId == null) {
      ctx.suspend();
      return Services.getMessage("debugging.session.suspended");
    } else {
      ctx.getThreadContext().suspend(Long.parseLong(threadId));
      return Services.getMessage("debugging.thread.suspended");
    }
View Full Code Here

Examples of org.eclipse.debug.core.model.IDebugTarget.suspend()

      IDebugTarget target = getRunningTarget();

      if (target != null)
      {

        target.suspend();

      }
    } catch (DebugException e)
    {
      Activator.log(e);
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.