Examples of execute()


Examples of org.apache.cloudstack.api.command.user.vm.AddIpToVmNicCmd.execute()

        NicSecondaryIpResponse ipres = Mockito.mock(NicSecondaryIpResponse.class);
        Mockito.when(responseGenerator.createSecondaryIPToNicResponse(secIp)).thenReturn(ipres);

        ipTonicCmd._responseGenerator = responseGenerator;
        ipTonicCmd.execute();
    }

    @Test
    public void testCreateFailure() throws ResourceAllocationException, ResourceUnavailableException, ConcurrentOperationException, InsufficientCapacityException {
View Full Code Here

Examples of org.apache.cloudstack.api.command.user.vm.RemoveIpFromVmNicCmd.execute()

                networkService.releaseSecondaryIpFromNic(Mockito.anyInt())).thenReturn(true);

        removeIpFromNic._networkService = networkService;
        successResponseGenerator = Mockito.mock(SuccessResponse.class);

        removeIpFromNic.execute();
    }

    @Test
    public void testRemoveIpFromVmNicFailure() throws InsufficientAddressCapacityException {
        NetworkService networkService = Mockito.mock(NetworkService.class);
View Full Code Here

Examples of org.apache.cocoon.components.cron.ConfigurableCronJob.execute()

        ConfigurableCronJob t = null;
        final String name = cacheKey.getKey();
        try {
            t = (ConfigurableCronJob)this.manager.lookup(this.schedulerTarget);
            t.setup(conf.parameters, conf.map);
            t.execute(name);
        } catch (ServiceException se) {
            throw new SourceException("Unable to lookup target " + this.schedulerTarget, se);
        } finally {
            this.manager.release(t);
        }
View Full Code Here

Examples of org.apache.cocoon.components.thread.RunnableManager.execute()

        final Configuration expireConf = config.getChild("expirations-check");
        final long initialDelay = expireConf.getChild("offset", true).getValueAsLong(180000);
        final long interval = expireConf.getChild("period", true).getValueAsLong(180000);
        try {
            final RunnableManager runnableManager = (RunnableManager)serviceManager.lookup(RunnableManager.ROLE);
            runnableManager.execute( new Runnable() {
                    public void run()
                    {
                        expireContinuations();
                    }
                }, initialDelay, interval);
View Full Code Here

Examples of org.apache.cocoon.mail.command.MailCommands.execute()

     *@return        Description of the Return Value
     */
    public List execute(List aList) {
        MailCommands folderCommands = new MailCommands(aList);
        try {
            folderCommands.execute();
        } catch (MessagingException me) {
            // log exception
            getLogger().error("Cannot execute", me);
        }
        return folderCommands.getResults();
View Full Code Here

Examples of org.apache.cocoon.pipeline.NonCachingPipeline.execute()

        pipeline.addComponent(profilingGenerator);
        pipeline.addComponent(new XMLSerializer());

        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        pipeline.setup(baos, configuration);
        pipeline.execute();

        String s = baos.toString();

        assertTrue(s.contains("<cocoon-profiling id=\"42\">"));
        assertTrue(s.contains("<component"));
View Full Code Here

Examples of org.apache.cocoon.pipeline.Pipeline.execute()

        pipeline.addComponent(profilingGenerator);
        pipeline.addComponent(new XMLSerializer());

        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        pipeline.setup(baos, configuration);
        pipeline.execute();

        String s = baos.toString();

        assertTrue(s.contains("<cocoon-profiling id=\"42\">"));
        assertTrue(s.contains("<component"));
View Full Code Here

Examples of org.apache.cocoon.pipeline.component.Starter.execute()

            this.logger.debug("Invoking first component of " + this);
        }

        try {
            Starter starter = (Starter) this.components.getFirst();
            starter.execute();
        } finally {
            for (PipelineComponent pipelineComponent : this.getComponents()) {
                pipelineComponent.finish();
            }
        }
View Full Code Here

Examples of org.apache.cocoon.rest.controller.response.RestResponse.execute()

            // invoke the appropriate method
            HttpServletRequest request = HttpContextHelper.getRequest(inputParameters);
            RestResponse restResponse = this.methodDelegator.delegate(request, controller);

            // execute the rest response
            RestResponseMetaData restResponseMetaData = restResponse.execute(outputStream, inputParameters);

            // set the status-code with the result produced by the restResponse execution
            ResponseHeaderCollector.setStatusCode(restResponseMetaData.getStatusCode());

            // set the content type with the result produced by the restResponse execution
View Full Code Here

Examples of org.apache.cocoon.template.instruction.Call.execute()

                            executionContext, macroContext, namespaces, startEvent, endEvent);
                    continue;
                }

                Call call = new Call( def, startElement );
                ev = call.execute(consumer, objectModel,
                        executionContext, macroContext, namespaces, startEvent, endEvent);
            } else
                ev = ev.execute(consumer, objectModel, executionContext,
                        macroContext, namespaces, startEvent, endEvent);
        }
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.