Grassroots Infrastructure
The Grassroots Infrastructure is a suite of computing tools to help users and developers use scientific data infrastructure that can easily be interconnected.
|
Go to the documentation of this file.
28 #ifndef BLAST_SERVICE_JOB_H_
29 #define BLAST_SERVICE_JOB_H_
40 #ifndef DOXYGEN_SHOULD_SKIP_THIS
42 #ifdef ALLOCATE_BLAST_SERVICE_JOB_TAGS
43 #define BLAST_SERVICE_JOB_PREFIX BLAST_SERVICE_API
44 #define BLAST_SERVICE_JOB_VAL(x) = x
46 #define BLAST_SERVICE_JOB_PREFIX extern
47 #define BLAST_SERVICE_JOB_VAL(x)
57 BLAST_SERVICE_JOB_PREFIX
const char *
BSJ_TYPE_S BLAST_SERVICE_JOB_VAL (
"blast_service_job");
BlastTool * bsj_tool_p
The BlastTool.
Definition: blast_service_job.h:72
This datatype stores the ServiceJob and its associated BlastTool.
Definition: blast_service_job.h:66
char * GetPreviousJobFilename(const BlastServiceData *data_p, const char *job_id_s, const char *suffix_s)
Get the filename with the data for a previously-ran BlastServiceJob.
const char * BSJ_LINKED_SERVICE_SCAFFOLD_S
The name of the exposed scaffold output parameter for LinkedServices.
Definition: blast_service_job.h:82
BlastServiceJob * AllocateBlastServiceJob(Service *service_p, const char *job_name_s, const char *job_description_s, const char *tool_name_s, BlastServiceData *data_p)
Create a BlastServiceJob.
A datatype to represent a running task.
Definition: service_job.h:72
ServiceJob * CloneBlastServiceJob(const ServiceJob *src_p)
ServiceJob bsj_job
The ServiceJob.
Definition: blast_service_job.h:69
The configuration data for the Blast Service.
Definition: blast_service.h:143
bool ProcessLinkedServiceForBlastServiceJobOutput(Service *service_p, ServiceJob *job_p, LinkedService *linked_service_p)
Process a LinkedService for a given BlastServiceJob.
bool AddErrorToBlastServiceJob(BlastServiceJob *job_p)
Add the logged information from a failed BlastServiceJob to its list of stored errors.
json_t * ConvertBlastServiceJobToJSON(BlastServiceJob *job_p, bool omit_results_flag)
Serialise a BlastServiceJob into a JSON fragment.
BlastServiceJob * GetBlastServiceJobFromJSON(const json_t *blast_job_json_p, BlastServiceData *config_p)
Deserialise a BlastServiceJob from a JSON fragment.
bool UpdateBlastServiceJob(ServiceJob *job_p)
Update the running status of BlastServiceJob if needed.
BlastServiceJob * AllocateBlastServiceJobForDatabase(Service *service_p, const DatabaseInfo *db_p, struct BlastServiceData *data_p)
Create a BlastServiceJob.
A datatype which defines an available service, its capabilities and its parameters.
Definition: service.h:153
#define BLAST_SERVICE_LOCAL
Definition: blast_service_api.h:48
This datatype stores the data needed to get the required information from the output of one Service t...
Definition: linked_service.h:50
const char * BSJ_TYPE_S
The type for BlastServiceJobs.
Definition: blast_service_job.h:57
void BlastServiceJobCompleted(ServiceJob *job_p)
This is the callback function used by an AsyncTask that is called when a BlastServiceJob has complete...
A datatype describing the details of each database available to search against.
Definition: blast_service.h:83
void FreeBlastServiceJob(ServiceJob *job_p)
Free the BlastServiceJob.
const char * BSJ_LINKED_SERVICE_DATABASE_S
The name of the exposed database output parameter for LinkedServices.
Definition: blast_service_job.h:78