03.01.2015 Views

a multi-objective bisexual reproduction genetic algorithm for ...

a multi-objective bisexual reproduction genetic algorithm for ...

a multi-objective bisexual reproduction genetic algorithm for ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

136<br />

// Start GASS server<br />

if (! startGassServer(m_proxy)) {<br />

throw new Exception("Unable to stat GASS server.");<br />

}<br />

// setup Job Output listeners<br />

initJobOutListeners();<br />

// Append GASS URL to job String so we can get some output back<br />

String newRSL = null;<br />

// if non-batch, then get some output back<br />

if ( !m_batch) {<br />

newRSL = "&" + RSL.substring(0, RSL.indexOf('&')) +<br />

"(rsl_substitution=(GLOBUSRUN_GASS_URL " + m_gassURL + "))" +<br />

RSL.substring(RSL.indexOf('&') + 1, RSL.length()) +<br />

"(stdout=$(GLOBUSRUN_GASS_URL)/dev/stdout-" + m_jobid + ")" +<br />

"(stderr=$(GLOBUSRUN_GASS_URL)/dev/stderr-" + m_jobid + ")";<br />

}<br />

else {<br />

// <strong>for</strong>mat batching RSL so output can be retrieved later on using any GTK commands<br />

newRSL = RSL +<br />

"(stdout=x-gass-cache://$(GLOBUS_GRAM_JOB_CONTACT)stdout anExtraTag)"<br />

+ "(stderr=x-gass-cache://$(GLOBUS_GRAM_JOB_CONTACT)stderr anExtraTag)";<br />

}<br />

m_job = new GramJob(newRSL);<br />

// set proxy. CoG kit and user credentials must be installed and set<br />

// up properly<br />

m_job.setCredentials(m_proxy);<br />

// if non-batch then listen <strong>for</strong> output<br />

jobListeners=new InteractiveJobListener(false);<br />

m_job.addListener(jobListeners);<br />

System.out.println("Sending job request to: " + m_remoteHost);<br />

m_job.request(m_remoteHost, m_batch, false);<br />

m_jobOutput = "Job sent. url=" + m_job.getIDAsString();<br />

}<br />

catch (Exception ex) {

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!