Package net.sf.basedb.opengrid.service
Interface JobStatusUpdater
public interface JobStatusUpdater
Defines an interface for hooking non-grid jobs into the async feature
of status updates made by
OpenGridService
. Implementors may register
with the OpenGridService.asyncJobStatusUpdate(JobIdentifier, JobStatusUpdater)
and they will get called during the next job status update.
If the JobIdentifier
specifies an existing cluster, the implementor will be
provided with an open SSH session to that cluster. Otherwise the session parameter is
null.
All other information that the updater is needing must be taken care of externally.
If the job identifier also identifies a BASE job and a status update is returned that
service will make sure that the job is updates and that the JobCompletionHandler
extension is invoked.- Since:
- 1.0
- Author:
- nicklas
-
Method Summary
Modifier and TypeMethodDescriptiongetJobStatus
(OpenGridSession session, JobIdentifier jobId) A request for status information about the identified job.
-
Method Details
-
getJobStatus
A request for status information about the identified job.- Parameters:
session
- A connected session to an Open Grid Cluster (or null if the jobId doesn't specify a cluster)jobId
- An identifier for the job
-