org.gridbus.broker.farming.globus
Class GlobusJobMonitor

java.lang.Object
  extended byorg.gridbus.broker.farming.globus.GlobusJobMonitor
All Implemented Interfaces:
java.lang.Runnable

public class GlobusJobMonitor
extends java.lang.Object
implements java.lang.Runnable

This class contains methods to monitor a job running on a Globus node

Author:
Jia Yu (jiayu@cs.mu.oz.au), Srikumar Venugopal (srikumar@cs.mu.oz.au)

Constructor Summary
GlobusJobMonitor(Job job)
           
 
Method Summary
 boolean isRunning()
          Returns if the monitor is still running
 void run()
          The run method allows the GlobusJobMonitor to run as a seperate thread.
 void setRunning(boolean b)
          Sets the running state of the monitor
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlobusJobMonitor

public GlobusJobMonitor(Job job)
Parameters:
job -
Method Detail

run

public void run()
The run method allows the GlobusJobMonitor to run as a seperate thread. Polls the job periodically and detemines its status.

Specified by:
run in interface java.lang.Runnable
See Also:
Runnable.run()

isRunning

public boolean isRunning()
Returns if the monitor is still running

Returns:
boolean

setRunning

public void setRunning(boolean b)
Sets the running state of the monitor

Parameters:
b -