jdl-api-cpp-3.4.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
jdl_attributes.h
Go to the documentation of this file.
1 /*
2 Copyright (c) Members of the EGEE Collaboration. 2004.
3 See http://www.eu-egee.org/partners/ for details on the
4 copyright holders.
5 
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9 
10  http://www.apache.org/licenses/LICENSE-2.0
11 
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
15 either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18 */
19 
20 #ifndef __JSUIJDLATTRIBUTES_H__
21 #define __JSUIJDLATTRIBUTES_H__
22 
23 namespace glite {
24 namespace jdl {
25 
26 // TBD these attributes have to be moved into a private section of JDLAttributes.def
27 #define JDL_TYPE_JOB "job"
28 #define JDL_TYPE_DAG "dag"
29 #define JDL_TYPE_COLLECTION "collection"
30 // #define JDL_SUBMIT_TO "SubmitTo"
31 
32 #define JDL_JOBTYPE_MPICH "mpich"
33 #define JDL_JOBTYPE_NORMAL "normal"
34 #define JDL_JOBTYPE_PARTITIONABLE "partitionable"
35 #define JDL_JOBTYPE_PARAMETRIC "parametric"
36 #define JDL_JOBTYPE_CHECKPOINTABLE "checkpointable"
37 #define JDL_JOBTYPE_INTERACTIVE "interactive"
38 
39 // Checkpointable JobType values: //TBD where to put them
40 #define JDL_CHKPT_JOBSTATE "JobState"
41 #define JDL_CHKPT_DATA "UserData"
42 #define JDL_CHKPT_STATEID "StateId"
43 #define JDL_CHKPT_STEPS "JobSteps"
44 #define JDL_CHKPT_CURRENTSTEP "CurrentStep"
45 
46 // DagAd attribute names and values://TBD where to put them
47 #define JDL_TYPE_DAGAD "DagAd"
48 #define JDL_DEPENDENCIES "Dependencies"
49 #define JDL_HLR_LOCATION_ENV "HLR_LOCATION"
50 
51 //Interactive Jobtype environment variables:
52 #define JDL_INTERACTIVE_SHADOWHOST "BYPASS_SHADOW_HOST"
53 #define JDL_INTERACTIVE_SHADOWPORT "BYPASS_SHADOW_PORT"
54 #define JDL_INTERACTIVE_STDIN "GRID_CONSOLE_STDIN"
55 #define JDL_INTERACTIVE_STDOUT "GRID_CONSOLE_STDOUT"
56 #define JDL_INTERACTIVE_STDERR "GRID_CONSOLE_STDERR"
57 /*Classical JDL schema:
58 #define JDL_JOBTYPE_MPICH_REQ_RTE "other.RunTimeEnvironment"
59 #define JDL_JOBTYPE_MPICH_REQ_CPU "other.TotalCPUs"
60 #define JDL_JOBTYPE_MPICH_RANK_FREE "other.FreeCPUs"
61 */
64 #define JDL_JOBTYPE_MPICH_REQ_RTE "other.GlueHostApplicationSoftwareRunTimeEnvironment"
65 #define JDL_JOBTYPE_MPICH_REQ_CPU "other.GlueCEInfoTotalCPUs"
66 #define JDL_JOBTYPE_MPICH_RANK_FREE "other.GlueCEStateFreeCPUs"
67 #define JDL_RANK_DATA_ACC_COST "DataAccessCost"
68 
69 //Requirements & Rank default values
70 #define JDL_DEFAULT_RANK "DefaultRank"
71 #define JDL_REQ_DEFAULT "TRUE"
72 #define JDL_RANK_DEFAULT "-other.GlueCEStateEstimatedResponseTime"
73 
74 } // jdl namespace
75 } // glite namespace
76 
77 #endif