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.
pathogenomics_service_data.h
Go to the documentation of this file.
1 /*
2 ** Copyright 2014-2016 The Earlham Institute
3 **
4 ** Licensed under the Apache License, Version 2.0 (the "License");
5 ** you may not use this file except in compliance with the License.
6 ** You may obtain a copy of the License at
7 **
8 ** http://www.apache.org/licenses/LICENSE-2.0
9 **
10 ** Unless required by applicable law or agreed to in writing, software
11 ** distributed under the License is distributed on an "AS IS" BASIS,
12 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 ** See the License for the specific language governing permissions and
14 ** limitations under the License.
15 */
16 
21 /*
22  * pathogenomics_service_data.h
23  *
24  * Created on: 28 Sep 2015
25  * Author: tyrrells
26  */
27 
28 #ifndef PATHOGENOMICS_SERVICE_DATA_H_
29 #define PATHOGENOMICS_SERVICE_DATA_H_
30 
31 #include "jansson.h"
32 
33 #include "service.h"
34 #include "mongodb_tool.h"
36 
37 
38 typedef enum
39 {
46 
48 
54 struct /*PATHOGENOMICS_SERVICE_LOCAL*/ PathogenomicsServiceData
55 {
58 
64  MongoTool *psd_tool_p;
65 
66 
72  const char *psd_database_s;
73 
79  const char *psd_collection_ss [PD_NUM_TYPES];
80 
81 
87  const char *psd_files_download_root_uri_s;
88 
94  json_int_t psd_default_stage_time;
95 };
96 
97 
98 #endif /* PATHOGENOMICS_SERVICE_DATA_H_ */
PD_FILES
Definition: pathogenomics_service_data.h:43
service.h
PathogenomicsServiceData::psd_base_data
ServiceData psd_base_data
The base ServiceData.
Definition: pathogenomics_service_data.h:57
MongoTool
A MongoTool is a datatype that allows access to the data stored within a MongoDB instance.
Definition: mongodb_tool.h:159
PD_SAMPLE
Definition: pathogenomics_service_data.h:40
PD_GENOTYPE
Definition: pathogenomics_service_data.h:42
PD_NUM_TYPES
Definition: pathogenomics_service_data.h:44
PD_PHENOTYPE
Definition: pathogenomics_service_data.h:41
ServiceData
A datatype for holding the configuration data for a Service.
Definition: service.h:126
pathogenomics_service_library.h
PathogenomicsData
PathogenomicsData
Definition: pathogenomics_service_data.h:38
PathogenomicsServiceData
The configuration data used by the Pathogenomics Service.
Definition: pathogenomics_service_data.h:54
mongodb_tool.h