org.globus.exec.monitoring
Interface JobStateChangeListener
- public interface JobStateChangeListener
Job State Change notification listener.
The Managed Job Service implements this interface to receive job
state change notifications which are related to a particular Managed Job
Resource.
jobStateChanged
public void jobStateChanged(ResourceKey resourceKey,
String localJobId,
Date timestamp,
StateEnumeration state,
int exitCode)
- Method called by the JobStateMonitor when a job changes state.
- Parameters:
resourceKey - Resource key associated with the job that changed state.localJobId - Local Job ID for the job which changed state. There may be multiple
local job IDs for a single job for some schedulers.timestamp - Time when the job state change occurred.state - New job state.exitCode - Integer code inidicating the job exit condition (if the state value
is the done or failed job state.