Examples of execute()


Examples of org.apache.stratos.cloud.controller.concurrent.ThreadExecutor.execute()

      ThreadExecutor exec = new ThreadExecutor(3);
      // create Jclouds objects, for each IaaS
      for (Cartridge cartridge : cartridges) {
        // jclouds object building is time consuming, hence I use Java executor framework
        exec.execute(new JcloudsObjectBuilder(cartridge, deploymentFileData));
      }
      exec.shutdown();
      // update map
      fileToCartridgeListMap.put(deploymentFileData.getAbsolutePath(),
                                 new ArrayList<Cartridge>(cartridges));
View Full Code Here

Examples of org.apache.struts.action.Action.execute()

   
    expect(sac.getRequest()).andReturn(request);
    expect(sac.getResponse()).andReturn(response);
    expect(sac.getContext()).andReturn(servletContext);
    expect(factory.createActionContext(request, response, servletContext, actionForm, actionConfig)).andReturn(actionContext);
    expect(action.execute(actionConfig, actionForm, request, response)).andReturn(forwardConfig);
   
    replayMocks();
    executeAction.execute(sac, action, actionConfig, actionForm);
    verifyMocks();
 
View Full Code Here

Examples of org.apache.struts.action.ExceptionHandler.execute()

            assert context.getResponse() instanceof HttpServletResponse : "don't support ServletResponse currently.";
            HttpServletRequest request = ( HttpServletRequest ) context.getRequest();
            HttpServletResponse response = ( HttpServletResponse ) context.getResponse();
            ExceptionHandler handler = ( ExceptionHandler ) RequestUtils.applicationInstance( handlerClassName );
            Exception ex = throwable instanceof Exception ? ( Exception ) throwable : new Exception( throwable );
            ActionForward result = handler.execute( ex, exceptionConfig, actionMapping, form, request, response );
                   
            //
            // See if the path is really relative to the webapp root, not relative to the module.  Struts doesn't by default
            // support paths that are webapp-relative.
            //
View Full Code Here

Examples of org.apache.struts.tiles.Controller.execute()

        }

        // Execute controller associated to definition, if any.
        if (controller != null) {
            log.trace("Execute controller: " + controller);
            controller.execute(
                    tileContext,
                    sacontext.getRequest(),
                    sacontext.getResponse(),
                    sacontext.getContext());
        }
View Full Code Here

Examples of org.apache.struts2.jasper.JspC.execute()

        JspC jspC = new JspC();
        jspC.setClassLoaderInterface(getClassLoaderInterface());
        jspC.setCompile(false);
        jspC.setJspFiles(location);
        jspC.setPackage(DEFAULT_PACKAGE);
        jspC.execute();
        return jspC;
    }

    private ClassLoaderInterface getClassLoaderInterface() {
        ClassLoaderInterface classLoaderInterface = null;
View Full Code Here

Examples of org.apache.struts2.views.freemarker.FreemarkerResult.execute()

                    //we used to add a fake "wait" result here, since the configuration is unmodifiable, that is no longer
                    //an option, see WW-3068
                    FreemarkerResult waitResult = new FreemarkerResult();
                    container.inject(waitResult);
                    waitResult.setLocation("/org/apache/struts2/interceptor/wait.ftl");
                    waitResult.execute(actionInvocation);

                    return Action.NONE;
                }

                return WAIT;
View Full Code Here

Examples of org.apache.synapse.commons.executors.PriorityExecutor.execute()

        Mediator m = synCtx.getSequence(sequenceName);
        if (m != null && m instanceof SequenceMediator) {
            MediatorWorker worker = new MediatorWorker(m, synCtx);
            // execute with the given priority
            executor.execute(worker, priority);

            // with the nio transport, this causes the listener not to write a 202
            // Accepted response, as this implies that Synapse does not yet know if
            // a 202 or 200 response would be written back.
            ((Axis2MessageContext) synCtx).getAxis2MessageContext().getOperationContext().setProperty(
View Full Code Here

Examples of org.apache.synapse.startup.Task.execute()

                ((ManagedLifecycle) task).init(se);
            }
        }

        if (se.isInitialized()) {
            task.execute();
        }
    }

    private void handleException(String msg) throws JobExecutionException {
        log.error(msg);
View Full Code Here

Examples of org.apache.synapse.task.Task.execute()

            ((ManagedLifecycle) task).init(se);
        }

        // 2. Execute
        if (se != null && task != null && se.isInitialized()) {
            task.execute();
        }

        // 3. Destroy
        if (task instanceof ManagedLifecycle && se != null) {
            ((ManagedLifecycle) task).destroy();
View Full Code Here

Examples of org.apache.tapestry.ComponentAction.execute()

                    String componentId = ois.readUTF();
                    ComponentAction action = (ComponentAction) ois.readObject();

                    Component component = _source.getComponent(componentId);

                    action.execute(component);
                }
            }
            catch (EOFException ex)
            {
                // Expected.
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.