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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

133<br />

private String m_jobOutput = "";<br />

private boolean m_batch = false;<br />

private String m_remoteHost = null;<br />

private GSSCredential m_proxy=null;<br />

// job output as string<br />

// Submission modes: batch=do not wait <strong>for</strong> output<br />

// non-batch=wait <strong>for</strong> output.<br />

// host where job will run<br />

InteractiveJobListener jobListeners;<br />

// Globus proxy used <strong>for</strong> authentication against gatekeeper<br />

// Job output variables:<br />

// Used <strong>for</strong> non-batch mode jobs to receive output from<br />

// gatekeeper through the GASS server<br />

private JobOutputStream m_stdoutStream = null;<br />

private JobOutputStream m_stderrStream = null;<br />

private String m_jobid = null; // Globus job id on the <strong>for</strong>m:<br />

//https://server.com:39374/15621/1021382777/<br />

public GassJob(String Contact, boolean batch) {<br />

m_remoteHost = Contact; // remote host<br />

m_batch = batch; // submission mode<br />

}<br />

/**<br />

* Start the Globus GASS Server. Used to get the output from the server<br />

* back to the client.<br />

*/<br />

private boolean startGassServer(GSSCredential proxy) {<br />

if (m_gassServer != null) return true;<br />

try {<br />

m_gassServer = new GassServer(proxy, 0);<br />

m_gassURL = m_gassServer.getURL();<br />

} catch(Exception e) {<br />

System.err.println("gass server failed to start!");<br />

e.printStackTrace();<br />

return false;<br />

}<br />

m_gassServer.registerDefaultDeactivator();<br />

return true;<br />

}

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

Saved successfully!

Ooh no, something went wrong!