Package org.apache.airavata.gfac.utils

Examples of org.apache.airavata.gfac.utils.GramJobSubmissionListener


    private GramJobSubmissionListener listener;

    // This method precpare the environment before the application invocation.
    public void initialize(JobExecutionContext jobExecutionContext) throws GFacProviderException {
        job = GramProviderUtils.setupEnvironment(jobExecutionContext);
        listener = new GramJobSubmissionListener(job, jobExecutionContext);
        job.addListener(listener);
    }
View Full Code Here


        } catch (ApplicationSettingsException e) {
            log.warn("Error reading TwoPhase property from configurations.", e);
        }

        job = GramProviderUtils.setupEnvironment(jobExecutionContext, twoPhase);
        listener = new GramJobSubmissionListener(job, jobExecutionContext);
        job.addListener(listener);
    }
View Full Code Here

                    + job.getIDAsString(), e);
            log.info("Attempting to renew credentials and re-submit jobs...");

            // Remove existing listener and register a new listener
            job.removeListener(listener);
            listener = new GramJobSubmissionListener(job, jobExecutionContext);

            job.addListener(listener);

            renewCredentials(jobExecutionContext);
View Full Code Here

        // User credentials are invalid
        log.info("Attempting to renew credentials and re-submit jobs...");

        // Remove existing listener and register a new listener
        job.removeListener(listener);
        listener = new GramJobSubmissionListener(job, jobExecutionContext);

        job.addListener(listener);

        renewCredentials(jobExecutionContext);
View Full Code Here

    private GramJobSubmissionListener listener;

    // This method prepare the environment before the application invocation.
    public void initialize(JobExecutionContext jobExecutionContext) throws GFacProviderException {
        job = GramProviderUtils.setupEnvironment(jobExecutionContext);
        listener = new GramJobSubmissionListener(job, jobExecutionContext);
        job.addListener(listener);
    }
View Full Code Here

        } catch (ApplicationSettingsException e) {
            log.warn("Error reading TwoPhase property from configurations.", e);
        }

        job = GramProviderUtils.setupEnvironment(jobExecutionContext, twoPhase);
        listener = new GramJobSubmissionListener(job, jobExecutionContext);
        job.addListener(listener);
    }
View Full Code Here

                    + job.getIDAsString(), e);
            log.info("Attempting to renew credentials and re-submit jobs...");

            // Remove existing listener and register a new listener
            job.removeListener(listener);
            listener = new GramJobSubmissionListener(job, jobExecutionContext);

            job.addListener(listener);

            renewCredentials(jobExecutionContext);
View Full Code Here

        // User credentials are invalid
        log.info("Attempting to renew credentials and re-submit jobs...");

        // Remove existing listener and register a new listener
        job.removeListener(listener);
        listener = new GramJobSubmissionListener(job, jobExecutionContext);

        job.addListener(listener);

        renewCredentials(jobExecutionContext);
View Full Code Here

TOP

Related Classes of org.apache.airavata.gfac.utils.GramJobSubmissionListener

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.