Package org.apache.airavata.core.gfac.provider

Examples of org.apache.airavata.core.gfac.provider.Provider


        /*
         * Determine provider
         */
        Scheduler scheduler = getScheduler(context);
        context.getExecutionContext().getNotifier().startSchedule(context);
        Provider provider = scheduler.schedule(context);
        context.getExecutionContext().getNotifier().finishSchedule(context);

        log.debug("After scheduling, try to run data chain");

        /*
         * Load data necessary data
         */
        buildChains(getDataChains(context)).start(context);

        log.debug("After data chain, try to init provider");

        /*
         * Init
         */
        provider.initialize(context);

        log.debug("After provider initialization, try to run pre-execution chain");

        /*
         * Pre-Execution
         */
        buildChains(getPreExecutionSteps(context)).start(context);

        log.debug("After pre-execution chain, try to execute provider");

        try {
            /*
             * Execute
             */
            Map<String, ?> result = provider.execute(context);

            log.debug("After provider execution, try to run post-execution chain");

            /*
             * Fill MessageContext with the output from Provider
             */
            for (Entry<String, ?> entry : result.entrySet()) {
                context.getOutput().setValue(entry.getKey(), entry.getValue());
            }

            /*
             * Post-Execution
             */
            buildChains(getPostExecuteSteps(context)).start(context);

            log.debug("After pre-execution chain, try to dispose provider");

        } finally {
            /*
             * Destroy
             */
            provider.dispose(context);

            log.debug("After provider disposal, try to run postprocess");
        }

        /*
 
View Full Code Here


      // parameter
      ct.setInput(input);
      ct.setOutput(output);
            ct.getExecutionContext().setRegistryService(jcrRegistry);
            Scheduler scheduler = new SchedulerImpl();
            Provider provider = scheduler.schedule(ct);


              if(provider instanceof GramProvider){
                junit.framework.Assert.assertTrue(true);
            }else {
View Full Code Here

      // parameter
      ct.setInput(input);
      ct.setOutput(output);
            ct.getExecutionContext().setRegistryService(jcrRegistry);
            Scheduler scheduler = new SchedulerImpl();
            Provider provider = scheduler.schedule(ct);


              if(provider instanceof GramProvider){
                junit.framework.Assert.assertTrue(true);
            }else {
View Full Code Here

      // parameter
      ct.setInput(input);
      ct.setOutput(output);
            ct.getExecutionContext().setRegistryService(jcrRegistry);
            Scheduler scheduler = new SchedulerImpl();
            Provider provider = scheduler.schedule(ct);


              if(provider instanceof GramProvider){
                junit.framework.Assert.assertTrue(true);
            }else {
View Full Code Here

TOP

Related Classes of org.apache.airavata.core.gfac.provider.Provider

Copyright © 2018 www.massapicom. 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.