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.

137<br />

}<br />

}<br />

if ( m_gassServer != null ) {<br />

// unregister from gass server<br />

m_gassServer.unregisterJobOutputStream("err-" + m_jobid);<br />

m_gassServer.unregisterJobOutputStream("out-" + m_jobid);<br />

}<br />

m_jobOutput = "Error submitting job: " + ex.getClass() + ":"<br />

+ ex.getMessage();<br />

}<br />

// cleanup<br />

//Deactivator.deactivateAll();<br />

return m_jobOutput;<br />

InteractiveJobListener.java<br />

import java.io.*;<br />

import org.globus.gram.Gram;<br />

import org.globus.gram.GramJob;<br />

import org.globus.gram.GramException;<br />

import org.globus.gram.WaitingForCommitException;<br />

import org.globus.gram.GramJobListener;<br />

class InteractiveJobListener extends JobListener {<br />

private boolean quiet;<br />

private boolean finished = false;<br />

private boolean fail=false;<br />

private String strStatus="";<br />

public InteractiveJobListener(boolean quiet) {<br />

this.quiet = quiet;<br />

}<br />

public boolean stillActive() {<br />

}<br />

return !this.finished;<br />

public boolean fail(){<br />

}<br />

return this.fail;

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

Saved successfully!

Ooh no, something went wrong!