Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add state check
  • Loading branch information
graingert committed May 16, 2012
1 parent f4b78eb commit cb3a82f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions GridSAMExample.java
Expand Up @@ -56,7 +56,13 @@ public static void main(String[] args)
// Get and report the status of job until complete
System.out.println("Job ID: " + jobID);

// ...

while (true){
System.out.println(jobManager.findJobInstance(jobID).getLastKnownStage().getState());
}



}

private static String createJSDLDescription(String execName, String args) {
Expand All @@ -70,7 +76,7 @@ private static String createJSDLDescription(String execName, String args) {

$(jsdl).find("#execName").text(execName).removeAttr("id");
$(jsdl).find("#args").text(args).removeAttr("id");

DOMImplementationLS domImplementation = (DOMImplementationLS) jsdl.getImplementation();
LSSerializer lsSerializer = domImplementation.createLSSerializer();
s_jsdl = lsSerializer.writeToString(jsdl);
Expand Down

0 comments on commit cb3a82f

Please sign in to comment.