JavaGramTest (Java Globus API)

org.globus.example
Class JavaGramTest

java.lang.Object
  |
  +--org.globus.example.JavaGramTest
All Implemented Interfaces:
GramJobListener

public class JavaGramTest
extends java.lang.Object
implements GramJobListener


Constructor Summary
JavaGramTest(java.lang.String contact)
          Creates a new instance of this class.
 
Method Summary
static void main(java.lang.String[] args)
          main function - creates an instance of this class and starts the program.
 void printResults()
          Prints the status of this program as to whether it sucessfully completed or failed.
 void run()
          Initiates the process of job submission.
 void statusChanged(GramJob job)
          Prints the changed status of the job alongwith it's ID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaGramTest

public JavaGramTest(java.lang.String contact)
Creates a new instance of this class.

Parameters:
contact - - String - Name of the remote host on which the gatekeeper is running.
Method Detail

run

public void run()
Initiates the process of job submission. Prior to submitting a job the program will ping the contact (gatekeeper) so as to ensure that it is up and running in order to accept jobs. This demo program then creates 2 jobs and submits them to the gatekeeper for execution on remote machine. After submission, of both the job's, the program issues a cancel job request for job #2.


printResults

public void printResults()
Prints the status of this program as to whether it sucessfully completed or failed.


statusChanged

public void statusChanged(GramJob job)
Prints the changed status of the job alongwith it's ID.

Specified by:
statusChanged in interface GramJobListener
Parameters:
job - The GramJob whose status has changed.

main

public static void main(java.lang.String[] args)
main function - creates an instance of this class and starts the program.