Main Page | Modules | Data Structures | File List | Data Fields | Globals

jobstat.h

Go to the documentation of this file.
00001 #ifndef __EDG_WORKLOAD_LOGGING_CLIENT_JOBSTAT_H__
00002 #define __EDG_WORKLOAD_LOGGING_CLIENT_JOBSTAT_H__
00003 
00004 /* 
00005 
00006   !! Automatically generated file
00007   !! Do not edit, your changes will be discarded upon build
00008   !! Change the corresponding template file ../interface/jobstat.h.T
00009 
00010 */
00011 
00017 #ident "$Header: /cvs/glite/org.glite.lb.client-interface/interface/Attic/jobstat.h.T,v 1.4.2.5 2010/03/16 09:12:22 zsustr Exp $"
00018 /*
00019 Copyright (c) Members of the EGEE Collaboration. 2004-2010.
00020 See http://www.eu-egee.org/partners for details on the copyright holders.
00021 
00022 Licensed under the Apache License, Version 2.0 (the "License");
00023 you may not use this file except in compliance with the License.
00024 You may obtain a copy of the License at
00025 
00026     http://www.apache.org/licenses/LICENSE-2.0
00027 
00028 Unless required by applicable law or agreed to in writing, software
00029 distributed under the License is distributed on an "AS IS" BASIS,
00030 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00031 See the License for the specific language governing permissions and
00032 limitations under the License.
00033 */
00034 
00035 
00036 #ifdef __cplusplus
00037 extern "C" {
00038 #endif
00039 
00050 enum edg_wll_StatJobtype {
00051         EDG_WLL_STAT_SIMPLE,            
00052         EDG_WLL_STAT_DAG,               
00053         EDG_WLL_STAT__PARTITIONABLE_UNUSED,             
00054         EDG_WLL_STAT__PARTITIONED_UNUSED,               
00055         EDG_WLL_STAT_COLLECTION,                
00056         EDG_WLL_STAT_PBS,               
00057         EDG_WLL_STAT_CONDOR,            
00058         EDG_WLL_NUMBER_OF_JOBTYPES      
00059 };
00060 enum edg_wll_StatDone_code {
00061         EDG_WLL_STAT_OK,                
00062         EDG_WLL_STAT_FAILED,            
00063         EDG_WLL_STAT_CANCELLED,         
00064         EDG_WLL_NUMBER_OF_DONE_CODES    
00065 };
00066 
00067 
00073 typedef enum _edg_wll_JobStatCode {
00075         EDG_WLL_JOB_UNDEF = 0,
00076         EDG_WLL_JOB_SUBMITTED,  
00077         EDG_WLL_JOB_WAITING,    
00078         EDG_WLL_JOB_READY,      
00079         EDG_WLL_JOB_SCHEDULED,  
00080         EDG_WLL_JOB_RUNNING,    
00081         EDG_WLL_JOB_DONE,       
00082         EDG_WLL_JOB_CLEARED,    
00083         EDG_WLL_JOB_ABORTED,    
00084         EDG_WLL_JOB_CANCELLED,  
00085         EDG_WLL_JOB_UNKNOWN,    
00086         EDG_WLL_JOB_PURGED,     
00087         EDG_WLL_NUMBER_OF_STATCODES 
00088 } edg_wll_JobStatCode;
00089 
00094 typedef struct _edg_wll_TagValue {
00095         char *  tag;    
00096         char *  value;  
00097 } edg_wll_TagValue;
00098 
00099 
00106 struct _pad_JobStatus_0_dont_use { edg_wll_JobStatCode state;edg_wlc_JobId jobId; char * owner; int jobtype; edg_wlc_JobId parent_job; char * seed; int children_num; char ** children; int * children_hist; struct _edg_wll_JobStat * children_states; char * condorId; char * globusId; char * localId; char * jdl; char * matched_jdl; char * destination; char * condor_jdl; char * rsl; char * reason; char * location; char * ce_node; char * network_server; int subjob_failed; int done_code; int exit_code; int resubmitted; int cancelling; char * cancelReason; int cpuTime; edg_wll_TagValue * user_tags; struct timeval stateEnterTime; struct timeval lastUpdateTime; int * stateEnterTimes; int expectUpdate; char * expectFrom; char * acl; int payload_running; char ** possible_destinations; char ** possible_ce_nodes; int suspended; char * suspend_reason; char * failure_reasons; char * ui_host;  };
00107 struct _pad_JobStatus_1_dont_use { char * pbs_state; char * pbs_queue; char * pbs_owner; char * pbs_name; char * pbs_reason; char * pbs_scheduler; char * pbs_dest_host; int pbs_pid; char * pbs_resource_usage; int pbs_exit_status; char * pbs_error_desc;  };
00108 struct _pad_JobStatus_2_dont_use { char * condor_status; char * condor_universe; char * condor_owner; char * condor_preempting; int condor_shadow_pid; int condor_shadow_exit_status; int condor_starter_pid; int condor_starter_exit_status; int condor_job_pid; int condor_job_exit_status; char * condor_dest_host; char * condor_reason; char * condor_error_desc;  };
00109 
00110 typedef struct _edg_wll_JobStat {
00111         edg_wll_JobStatCode     state;          
00112         edg_wlc_JobId   jobId;  
00113         char *  owner;  
00114         enum edg_wll_StatJobtype        jobtype;        
00115         edg_wlc_JobId   parent_job;     
00116         char *  seed;   
00117         int     children_num;   
00118         char ** children;       
00119         int *   children_hist;  
00120         struct _edg_wll_JobStat *       children_states;        
00121         char *  condorId;       
00122         char *  globusId;       
00123         char *  localId;        
00124         char *  jdl;    
00125         char *  matched_jdl;    
00126         char *  destination;    
00127         char *  condor_jdl;     
00128         char *  rsl;    
00129         char *  reason; 
00130         char *  location;       
00131         char *  ce_node;        
00132         char *  network_server; 
00133         int     subjob_failed;  
00134         enum edg_wll_StatDone_code      done_code;      
00135         int     exit_code;      
00136         int     resubmitted;    
00137         int     cancelling;     
00138         char *  cancelReason;   
00139         int     cpuTime;        
00140         edg_wll_TagValue *      user_tags;      
00141         struct timeval  stateEnterTime; 
00142         struct timeval  lastUpdateTime; 
00143         int *   stateEnterTimes;        
00144         int     expectUpdate;   
00145         char *  expectFrom;     
00146         char *  acl;    
00147         int     payload_running;        
00148         char ** possible_destinations;  
00149         char ** possible_ce_nodes;      
00150         int     suspended;      
00151         char *  suspend_reason; 
00152         char *  failure_reasons;        
00153         char *  ui_host;        
00155         char    _pad_0[sizeof(void *) * 55 - sizeof(struct _pad_JobStatus_0_dont_use)];
00156 
00157         char *  pbs_state;      
00158         char *  pbs_queue;      
00159         char *  pbs_owner;      
00160         char *  pbs_name;       
00161         char *  pbs_reason;     
00162         char *  pbs_scheduler;  
00163         char *  pbs_dest_host;  
00164         int     pbs_pid;        
00165         char *  pbs_resource_usage;     
00166         int     pbs_exit_status;        
00167         char *  pbs_error_desc; 
00169         char    _pad_1[sizeof(void *) * 20 - sizeof(struct _pad_JobStatus_1_dont_use)];
00170 
00171         char *  condor_status;  
00172         char *  condor_universe;        
00173         char *  condor_owner;   
00174         char *  condor_preempting;      
00175         int     condor_shadow_pid;      
00176         int     condor_shadow_exit_status;      
00177         int     condor_starter_pid;     
00178         int     condor_starter_exit_status;     
00179         int     condor_job_pid; 
00180         int     condor_job_exit_status; 
00181         char *  condor_dest_host;       
00182         char *  condor_reason;  
00183         char *  condor_error_desc;      
00185         char    _pad_2[sizeof(void *) * 25 - sizeof(struct _pad_JobStatus_2_dont_use)];
00186 
00187 
00188 } edg_wll_JobStat;
00189 
00199 extern int edg_wll_InitStatus(edg_wll_JobStat *);
00200 
00205 extern edg_wll_JobStat *edg_wll_CpyStatus(const edg_wll_JobStat *,edg_wll_JobStat *);
00206 
00211 extern void edg_wll_FreeStatus(edg_wll_JobStat *);
00212 
00216 extern edg_wll_JobStatCode edg_wll_StringToStat(const char *);
00217 
00221 extern char *edg_wll_StatToString(edg_wll_JobStatCode);
00222 
00225 /*
00226  *@} end of group
00227  */
00228 
00229 #ifdef __cplusplus
00230 }
00231 #endif
00232 
00233 #endif /* __EDG_WORKLOAD_LOGGING_CLIENT_JOBSTAT_H__ */

Generated on Fri Aug 20 13:06:40 2010 for Glite LB Client: C - Interface by  doxygen 1.3.9.1