2006-09-08 07:53:32 +00:00
|
|
|
/*
|
|
|
|
* condor/condor_defs.h
|
|
|
|
*
|
|
|
|
* DC-API type definitions for master side
|
|
|
|
*
|
|
|
|
* (c) Daniel Drotos, 2006
|
|
|
|
*/
|
|
|
|
|
2006-05-17 12:12:09 +00:00
|
|
|
|
2006-05-09 11:06:29 +00:00
|
|
|
#ifndef __DC_API_CONDOR_DEFS_H_
|
|
|
|
#define __DC_API_CONDOR_DEFS_H_
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2006-06-07 12:56:14 +00:00
|
|
|
#include <time.h>
|
|
|
|
#include <sys/time.h>
|
2006-05-09 11:06:29 +00:00
|
|
|
#include <uuid/uuid.h>
|
2006-06-08 12:22:12 +00:00
|
|
|
#include "glib.h"
|
2006-05-09 11:06:29 +00:00
|
|
|
|
|
|
|
#include "dc.h"
|
|
|
|
#include "dc_internal.h"
|
|
|
|
|
2006-06-21 09:58:33 +00:00
|
|
|
|
2006-05-11 11:44:03 +00:00
|
|
|
extern char project_uuid_str[37];
|
|
|
|
|
2006-06-07 12:56:14 +00:00
|
|
|
struct _DC_condor_event
|
|
|
|
{
|
|
|
|
int event;
|
|
|
|
int cluster;
|
|
|
|
int proc;
|
|
|
|
int subproc;
|
2006-06-08 06:32:46 +00:00
|
|
|
time_t time;
|
2006-08-24 13:01:03 +00:00
|
|
|
gboolean reported;
|
2006-06-23 11:21:04 +00:00
|
|
|
union
|
|
|
|
{
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
gboolean normal;
|
|
|
|
int exit_code;
|
|
|
|
} exit_info;
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
char *reason;
|
|
|
|
} abort_info;
|
2006-08-25 11:04:02 +00:00
|
|
|
struct
|
|
|
|
{
|
|
|
|
char *host;
|
|
|
|
} exec_info;
|
2006-06-23 11:21:04 +00:00
|
|
|
};
|
2006-06-07 12:56:14 +00:00
|
|
|
};
|
|
|
|
|
2006-06-08 08:46:24 +00:00
|
|
|
struct _DC_wu_data
|
2006-05-11 11:44:03 +00:00
|
|
|
{
|
2012-07-24 14:19:06 +00:00
|
|
|
char *name; // generated by Create
|
2006-08-23 07:56:23 +00:00
|
|
|
char *client_name; // reference to the config file group
|
|
|
|
char *tag; // Parameter from the app
|
2006-06-08 09:11:57 +00:00
|
|
|
int argc;
|
2006-08-23 07:56:23 +00:00
|
|
|
int subresults;
|
|
|
|
/*uuid_t uuid;*/
|
|
|
|
char *uuid_str;
|
|
|
|
char *workdir;
|
2006-08-25 11:04:02 +00:00
|
|
|
DC_WUState state;
|
2006-06-08 08:46:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct _DC_Workunit
|
|
|
|
{
|
|
|
|
int magic;
|
|
|
|
struct _DC_wu_data data;
|
2006-05-11 11:44:03 +00:00
|
|
|
char **argv;
|
2006-05-09 11:06:29 +00:00
|
|
|
|
2006-08-24 13:01:03 +00:00
|
|
|
gboolean asked_to_suspend;
|
|
|
|
|
2006-06-07 12:56:14 +00:00
|
|
|
/*char *condor_id;*/
|
|
|
|
GArray *condor_events;
|
2006-05-09 11:06:29 +00:00
|
|
|
|
2006-05-11 11:44:03 +00:00
|
|
|
GList *input_files;
|
|
|
|
GList *output_files;
|
2006-06-21 09:58:33 +00:00
|
|
|
int chk;
|
2006-05-11 11:44:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct _DC_Result
|
|
|
|
{
|
|
|
|
DC_Workunit *wu;
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
FILE_IN,
|
|
|
|
FILE_OUT,
|
|
|
|
FILE_CKPT,
|
|
|
|
FILE_DCAPI
|
|
|
|
} WorkdirFile;
|
2006-05-09 11:06:29 +00:00
|
|
|
|
|
|
|
|
2006-09-06 12:47:29 +00:00
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
st_name= 0,
|
|
|
|
st_workdir,
|
|
|
|
st_tag,
|
|
|
|
st_client_name,
|
|
|
|
st_argc,
|
|
|
|
st_argv,
|
|
|
|
st_state,
|
2006-09-08 10:48:24 +00:00
|
|
|
st_state_name,
|
|
|
|
st_nuof_reported,
|
2007-01-15 13:37:50 +00:00
|
|
|
st_reported,
|
|
|
|
st_uuid_str
|
2006-09-06 12:47:29 +00:00
|
|
|
} _DC_serialized_token;
|
|
|
|
|
|
|
|
|
2006-08-24 13:01:03 +00:00
|
|
|
/*#define DC_LABEL_INTLOG "internal_log.txt"*/
|
2006-06-21 09:58:33 +00:00
|
|
|
|
|
|
|
|
2006-05-09 11:06:29 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* End of condor/condor_defs.h */
|
2006-09-08 07:53:32 +00:00
|
|
|
|
|
|
|
/* Local variables: */
|
|
|
|
/* c-file-style: "linux" */
|
|
|
|
/* End: */
|