Examples of startAsync()


Examples of de.jochenbrissier.backyard.core.Backyard.startAsync()

      }

      if (function.matches("comet")) {
        log.debug("comet");

        backyard.startAsync();

      }

      // if the json obj contains the function listen
      if (function.matches("listen")) {
View Full Code Here

Examples of de.jochenbrissier.backyard.core.Backyard.startAsync()

        // if the implementation is a non Tomcat implementation invoke
        // the normal
        if (req.getAttribute("de.jochenbrissier.byw.comet") != null
            && req.getAttribute("de.jochenbrissier.byw.comet")
                .equals("nonTomcat")) {
          backyard.startAsync();
        } else {
          backyard.startAsync(ev);
        }
      }
View Full Code Here

Examples of de.jochenbrissier.backyard.core.Backyard.startAsync()

        if (req.getAttribute("de.jochenbrissier.byw.comet") != null
            && req.getAttribute("de.jochenbrissier.byw.comet")
                .equals("nonTomcat")) {
          backyard.startAsync();
        } else {
          backyard.startAsync(ev);
        }
      }

      if (function.matches("listen")) {
        log.debug("listen");
View Full Code Here

Examples of de.jochenbrissier.backyard.core.Backyard.startAsync()

     
      if (function.matches("comet")) {
        log.debug("comet");

       
          backyard.startAsync();

      }
     
     
     
View Full Code Here

Examples of javax.servlet.http.HttpServletRequest.startAsync()

    }

    HttpServletRequest servletRequest = this.request.getServletRequest();
    HttpServletResponse servletResponse = this.response.getServletResponse();

    this.asyncContext = servletRequest.startAsync(servletRequest, servletResponse);
    this.asyncContext.addListener(this);

    if (timeout != NO_TIMEOUT_VALUE) {
      this.asyncContext.setTimeout(timeout);
    }
View Full Code Here

Examples of javax.servlet.http.HttpServletRequest.startAsync()

        RequestContext rc = getRequestContext(this.request);
        final HttpServletRequest request = rc.getRequest();
        HttpServletResponse response = rc.getResponse();

        final AsyncContext asyncContext = request.startAsync(request, response);

        final AsyncCallbackAdapter callback = new AsyncCallbackAdapter(resultObject, asyncContext, getDefaultTimeout(), getDefaultCancelingTimeout());
        setOutputValue(pipelineContext, callback);

        asyncContext.setTimeout(callback.getTimeout());
View Full Code Here

Examples of javax.servlet.http.HttpServletRequest.startAsync()

    @Override
    public void initiate(C context)
    {
        HttpServletRequest request = context.getEndpointRequest().getHttpServletRequest();
        AsyncContext asyncContext = request.startAsync();
        asyncContext.setTimeout(timeout);
        asyncContext.addListener(new EndpointAsyncListener<C>(context));
        context.setEndpointAsyncContext(new ServletEndpointAsyncContext(asyncContext));

        initialPhaseSelector.getNextPhase(context).execute(context);
View Full Code Here

Examples of org.apache.helix.HelixController.startAsync()

    updateParticipant(participant, clusterId, connection);

    // start the controller
    ControllerId controllerId = ControllerId.from("exampleController");
    HelixController helixController = connection.createController(clusterId, controllerId);
    helixController.startAsync();

    // start the specified participant
    HelixParticipant helixParticipant =
        connection.createParticipant(clusterId, participant.getId());
    helixParticipant.getStateMachineEngine().registerStateModelFactory(
View Full Code Here

Examples of org.apache.helix.HelixController.startAsync()

        rebalancerCtx).build());
    clusterAccessor.addParticipantToCluster(new ParticipantConfig.Builder(participantId).build());

    // start controller
    HelixController controller = connection.createController(clusterId, controllerId);
    controller.startAsync();

    // start participant
    HelixParticipant participant = connection.createParticipant(clusterId, participantId);
    participant.getStateMachineEngine().registerStateModelFactory(
        StateModelDefId.from("MasterSlave"), new MockStateModelFactory());
View Full Code Here

Examples of org.apache.helix.HelixController.startAsync()

    // start controller
    ClusterId clusterId = ClusterId.from(clusterName);
    ControllerId controllerId = ControllerId.from("controller");
    HelixController controller = connection.createController(clusterId, controllerId);
    controller.startAsync();

    // check leader znode exists
    HelixDataAccessor accessor = connection.createDataAccessor(clusterId);
    PropertyKey.Builder keyBuilder = accessor.keyBuilder();
    LiveInstance leader = accessor.getProperty(keyBuilder.controllerLeader());
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.